-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdisasm_ui.py
executable file
·27 lines (22 loc) · 955 Bytes
/
disasm_ui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import platform
from PyQt6 import QtWidgets, QtCore, QtGui
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(550, 300)
self.gridLayout = QtWidgets.QGridLayout(Form)
self.gridLayout.setObjectName("gridLayout")
self.disasmBrowser = QtWidgets.QTextEdit(Form)
self.disasmBrowser.setReadOnly(True)
font = QtGui.QFont()
font.setFamily("Courier New")
fontsize = 13 if platform.system() == 'Darwin' else 10
font.setPointSize(fontsize)
self.disasmBrowser.setFont(font)
self.disasmBrowser.setObjectName("disasmBrowser")
self.gridLayout.addWidget(self.disasmBrowser, 0, 0, 1, 1)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Disassemble"))