def setupUi(self, Form): Form.setObjectName("Form") Form.resize(558, 322) self.verticalLayoutWidget = QtWidgets.QWidget(Form) self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 81, 112)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.pushButton = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton.setObjectName("pushButton") self.verticalLayout.addWidget(self.pushButton) self.pushButton_2 = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton_2.setObjectName("pushButton_2") self.verticalLayout.addWidget(self.pushButton_2) self.pushButton_3 = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton_3.setObjectName("pushButton_3") self.verticalLayout.addWidget(self.pushButton_3) self.pushButton_4 = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton_4.setObjectName("pushButton_4") self.verticalLayout.addWidget(self.pushButton_4) self.scrollArea = QtWidgets.QScrollArea(Form) self.scrollArea.setGeometry(QtCore.QRect(110, 10, 436, 232)) self.scrollArea.setFrameShape(QtWidgets.QFrame.WinPanel) self.scrollArea.setWidgetResizable(True) self.scrollArea.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 432, 228)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setGeometry(QtCore.QRect(445, 257, 100, 23)) self.label_2.setFrameShape(QtWidgets.QFrame.Box) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.label_3 = ColorLabel(Form) self.label_3.setGeometry(QtCore.QRect(110, 255, 40, 40)) self.label_3.setStyleSheet("background-color:black;") self.label_3.setFrameShape(QtWidgets.QFrame.Box) self.label_3.setText("") self.label_3.setObjectName("label_3") self.label_4 = QtWidgets.QLabel(Form) self.label_4.setGeometry(QtCore.QRect(167, 264, 38, 13)) self.label_4.setObjectName("label_4") self.spinBox = QtWidgets.QSpinBox(Form) self.spinBox.setGeometry(QtCore.QRect(211, 260, 42, 22)) self.spinBox.setMinimum(1) self.spinBox.setMaximum(22) self.spinBox.setSingleStep(3) self.spinBox.setObjectName("spinBox") self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(558, 322) self.verticalLayoutWidget = QtWidgets.QWidget(Form) self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 81, 112)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.pushButton = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton.setObjectName("pushButton") self.verticalLayout.addWidget(self.pushButton) self.pushButton_2 = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton_2.setObjectName("pushButton_2") self.verticalLayout.addWidget(self.pushButton_2) self.pushButton_3 = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton_3.setObjectName("pushButton_3") self.verticalLayout.addWidget(self.pushButton_3) self.pushButton_4 = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton_4.setObjectName("pushButton_4") self.verticalLayout.addWidget(self.pushButton_4) self.scrollArea = QtWidgets.QScrollArea(Form) self.scrollArea.setGeometry(QtCore.QRect(110, 10, 436, 232)) self.scrollArea.setFrameShape(QtWidgets.QFrame.WinPanel) self.scrollArea.setWidgetResizable(True) self.scrollArea.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 432, 228)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setGeometry(QtCore.QRect(445, 257, 100, 23)) self.label_2.setFrameShape(QtWidgets.QFrame.Box) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.label_3 = ColorLabel(Form) self.label_3.setGeometry(QtCore.QRect(110, 255, 40, 40)) self.label_3.setStyleSheet("background-color:rgb(0, 0, 0)") self.label_3.setFrameShape(QtWidgets.QFrame.Box) self.label_3.setText("") self.label_3.setObjectName("label_3") self.label_4 = QtWidgets.QLabel(Form) self.label_4.setGeometry(QtCore.QRect(177, 264, 38, 13)) self.label_4.setObjectName("label_4") self.spinBox = QtWidgets.QSpinBox(Form) self.spinBox.setGeometry(QtCore.QRect(216, 260, 42, 22)) self.spinBox.setMinimum(1) self.spinBox.setMaximum(22) self.spinBox.setSingleStep(3) self.spinBox.setObjectName("spinBox") self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setGeometry(QtCore.QRect(10, 130, 79, 74)) self.groupBox.setObjectName("groupBox") self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.groupBox) self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(10, 20, 51, 48)) self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") self.verticalLayout_2 = QtWidgets.QVBoxLayout( self.verticalLayoutWidget_2) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.radioButton = QtWidgets.QRadioButton(self.verticalLayoutWidget_2) self.radioButton.setChecked(True) self.radioButton.setObjectName("radioButton") self.verticalLayout_2.addWidget(self.radioButton) self.radioButton_2 = QtWidgets.QRadioButton( self.verticalLayoutWidget_2) self.radioButton_2.setObjectName("radioButton_2") self.verticalLayout_2.addWidget(self.radioButton_2) self.label_5 = ColorLabel(Form) self.label_5.setGeometry(QtCore.QRect(124, 269, 40, 40)) self.label_5.setStyleSheet("background-color:rgb(255, 255, 255)") self.label_5.setFrameShape(QtWidgets.QFrame.Box) self.label_5.setText("") self.label_5.setObjectName("label_5") self.verticalLayoutWidget.raise_() self.scrollArea.raise_() self.label_2.raise_() self.label_4.raise_() self.spinBox.raise_() self.groupBox.raise_() self.label_5.raise_() self.label_3.raise_() self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): _translate = QtCore.QCoreApplication.translate Form.setWindowTitle(_translate("Form", "Image Editor")) self.pushButton.setText(_translate("Form", "&New")) self.pushButton_2.setText(_translate("Form", "&Open")) self.pushButton_3.setText(_translate("Form", "&Save")) self.pushButton_4.setText(_translate("Form", "&Clear")) self.label_2.setText(_translate("Form", "X,Y: 0,0")) self.label_4.setText(_translate("Form", "Width:")) self.groupBox.setTitle(_translate("Form", "Mode")) self.radioButton.setText(_translate("Form", "&Pen")) self.radioButton_2.setText(_translate("Form", "&Ruler"))
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(558, 322) self.verticalLayoutWidget = QtWidgets.QWidget(Form) self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 10, 81, 112)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.pushButton = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton.setObjectName("pushButton") self.verticalLayout.addWidget(self.pushButton) self.pushButton_2 = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton_2.setObjectName("pushButton_2") self.verticalLayout.addWidget(self.pushButton_2) self.pushButton_3 = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton_3.setObjectName("pushButton_3") self.verticalLayout.addWidget(self.pushButton_3) self.pushButton_4 = QtWidgets.QPushButton(self.verticalLayoutWidget) self.pushButton_4.setObjectName("pushButton_4") self.verticalLayout.addWidget(self.pushButton_4) self.scrollArea = QtWidgets.QScrollArea(Form) self.scrollArea.setGeometry(QtCore.QRect(110, 10, 436, 232)) self.scrollArea.setFrameShape(QtWidgets.QFrame.WinPanel) self.scrollArea.setWidgetResizable(True) self.scrollArea.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.scrollArea.setObjectName("scrollArea") self.scrollAreaWidgetContents = QtWidgets.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 432, 228)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setGeometry(QtCore.QRect(445, 257, 100, 23)) self.label_2.setFrameShape(QtWidgets.QFrame.Box) self.label_2.setAlignment(QtCore.Qt.AlignCenter) self.label_2.setObjectName("label_2") self.label_3 = ColorLabel(Form) self.label_3.setGeometry(QtCore.QRect(110, 255, 40, 40)) self.label_3.setStyleSheet("background-color:rgb(0, 0, 0)") self.label_3.setFrameShape(QtWidgets.QFrame.Box) self.label_3.setText("") self.label_3.setObjectName("label_3") self.label_4 = QtWidgets.QLabel(Form) self.label_4.setGeometry(QtCore.QRect(177, 264, 38, 13)) self.label_4.setObjectName("label_4") self.spinBox = QtWidgets.QSpinBox(Form) self.spinBox.setGeometry(QtCore.QRect(216, 260, 42, 22)) self.spinBox.setMinimum(1) self.spinBox.setMaximum(22) self.spinBox.setSingleStep(3) self.spinBox.setObjectName("spinBox") self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setGeometry(QtCore.QRect(10, 130, 79, 121)) self.groupBox.setObjectName("groupBox") self.verticalLayoutWidget_2 = QtWidgets.QWidget(self.groupBox) self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(10, 20, 61, 88)) self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.verticalLayoutWidget_2) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.radioButton = QtWidgets.QRadioButton(self.verticalLayoutWidget_2) self.radioButton.setChecked(True) self.radioButton.setObjectName("radioButton") self.verticalLayout_2.addWidget(self.radioButton) self.radioButton_2 = QtWidgets.QRadioButton(self.verticalLayoutWidget_2) self.radioButton_2.setObjectName("radioButton_2") self.verticalLayout_2.addWidget(self.radioButton_2) self.radioButton_3 = QtWidgets.QRadioButton(self.verticalLayoutWidget_2) self.radioButton_3.setObjectName("radioButton_3") self.verticalLayout_2.addWidget(self.radioButton_3) self.radioButton_4 = QtWidgets.QRadioButton(self.verticalLayoutWidget_2) self.radioButton_4.setObjectName("radioButton_4") self.verticalLayout_2.addWidget(self.radioButton_4) self.label_5 = ColorLabel(Form) self.label_5.setGeometry(QtCore.QRect(124, 269, 40, 40)) self.label_5.setStyleSheet("background-color:rgb(255, 255, 255)") self.label_5.setFrameShape(QtWidgets.QFrame.Box) self.label_5.setText("") self.label_5.setObjectName("label_5") self.label_6 = FigureLabel(Form) self.label_6.setGeometry(QtCore.QRect(10, 255, 75, 54)) self.label_6.setAlignment(QtCore.Qt.AlignCenter) self.label_6.setObjectName("label_6") self.checkBox = QtWidgets.QCheckBox(Form) self.checkBox.setGeometry(QtCore.QRect(312, 262, 86, 17)) self.checkBox.setLayoutDirection(QtCore.Qt.RightToLeft) self.checkBox.setObjectName("checkBox") self.lineEdit = QtWidgets.QLineEdit(Form) self.lineEdit.setGeometry(QtCore.QRect(216, 286, 94, 20)) self.lineEdit.setObjectName("lineEdit") self.label_7 = QtWidgets.QLabel(Form) self.label_7.setGeometry(QtCore.QRect(177, 290, 47, 13)) self.label_7.setObjectName("label_7") self.pushButton_5 = QtWidgets.QPushButton(Form) self.pushButton_5.setGeometry(QtCore.QRect(324, 284, 75, 23)) self.pushButton_5.setObjectName("pushButton_5") self.comboBox = QtWidgets.QComboBox(Form) self.comboBox.setGeometry(QtCore.QRect(445, 284, 100, 22)) self.comboBox.setObjectName("comboBox") self.verticalLayoutWidget.raise_() self.scrollArea.raise_() self.label_2.raise_() self.label_4.raise_() self.spinBox.raise_() self.groupBox.raise_() self.label_5.raise_() self.label_3.raise_() self.label_6.raise_() self.checkBox.raise_() self.lineEdit.raise_() self.label_7.raise_() self.pushButton_5.raise_() self.comboBox.raise_() self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form)