def setupUi(self, Color): Color.setObjectName("Color") Color.resize(547, 505) self.centralwidget = QtGui.QWidget(Color) self.centralwidget.setObjectName("centralwidget") self.north = KColorCombo(self.centralwidget) self.north.setGeometry(QtCore.QRect(220, 60, 96, 31)) self.north.setObjectName("north") self.west = KColorCombo(self.centralwidget) self.west.setGeometry(QtCore.QRect(30, 210, 96, 31)) self.west.setObjectName("west") self.east = KColorCombo(self.centralwidget) self.east.setGeometry(QtCore.QRect(430, 210, 96, 31)) self.east.setObjectName("east") self.south = KColorCombo(self.centralwidget) self.south.setGeometry(QtCore.QRect(240, 410, 96, 31)) self.south.setObjectName("south") Color.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(Color) self.menubar.setGeometry(QtCore.QRect(0, 0, 547, 27)) self.menubar.setObjectName("menubar") Color.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(Color) self.statusbar.setObjectName("statusbar") Color.setStatusBar(self.statusbar) self.retranslateUi(Color) QtCore.QMetaObject.connectSlotsByName(Color)
def __init__(self, parent=None): KVBox.__init__(self, parent) self.help = QLabel (helpText, self) self.layout ().setAlignment (self.help, Qt.AlignHCenter) hBox1 = KHBox (self) hBox1.setSpacing (10) hBox1.setMargin (40) colorButtonLabel = QLabel ("KColorButton", hBox1) colorButton = KColorButton (hBox1) colorCellsLabel = QLabel ("KColorCells", hBox1) colorCells = KColorCells (hBox1, 1, 8) colorCells.setMaximumSize (160, 20) colorCells.setColor (0, Qt.black) colorCells.setColor (1, Qt.red) colorCells.setColor (2, Qt.yellow) colorCells.setColor (3, Qt.blue) colorCells.setColor (4, Qt.darkGreen) colorCells.setColor (5, Qt.magenta) colorCells.setColor (6, Qt.gray) colorCells.setColor (7, Qt.white) colorComboLabel = QLabel ("KColorCombo", hBox1) colorCombo = KColorCombo (hBox1) colorList = [Qt.black, Qt.red, Qt.yellow, Qt.blue, Qt.darkGreen, Qt.magenta, Qt.gray, Qt.white] colorCombo.setColors (colorList) colorCombo.setMaximumWidth (80) hBox2 = KHBox (self) hBox2.setSpacing (10) self.layout ().setAlignment (hBox2, Qt.AlignHCenter | Qt.AlignTop) self.setStretchFactor (hBox2, 1) colorPatchLabel = QLabel ("KColorPatch", hBox2) hBox2.layout ().setAlignment (colorPatchLabel, Qt.AlignHCenter) self.colorPatch = KColorPatch (hBox2) self.colorPatch.setFixedSize (40, 40) hBox2.layout ().setAlignment (self.colorPatch, Qt.AlignHCenter) self.colorPatch.setColor (Qt.red) self.colorPatch.show () self.connect (colorButton, SIGNAL ("changed (const QColor&)"), self.colorPatch.setColor) self.connect (colorCells, SIGNAL ("colorSelected (int, const QColor&)"), self.colorCellSelected) self.connect (colorCombo, SIGNAL ("activated (const QColor&)"), self.colorPatch.setColor)
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(400, 300) self.verticalLayoutWidget = QtGui.QWidget(Form) self.verticalLayoutWidget.setGeometry(QtCore.QRect(20, 20, 361, 88)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setObjectName("verticalLayout") self.label = QtGui.QLabel(self.verticalLayoutWidget) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.width_slider = QtGui.QSlider(self.verticalLayoutWidget) self.width_slider.setMaximum(200) self.width_slider.setOrientation(QtCore.Qt.Horizontal) self.width_slider.setObjectName("width_slider") self.horizontalLayout.addWidget(self.width_slider) self.width_spinbox = QtGui.QSpinBox(self.verticalLayoutWidget) self.width_spinbox.setMaximum(200) self.width_spinbox.setObjectName("width_spinbox") self.horizontalLayout.addWidget(self.width_spinbox) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtGui.QLabel(self.verticalLayoutWidget) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) self.text_colorcombo = KColorCombo(self.verticalLayoutWidget) self.text_colorcombo.setObjectName("text_colorcombo") self.horizontalLayout_2.addWidget(self.text_colorcombo) self.verticalLayout.addLayout(self.horizontalLayout_2) self.label.setBuddy(self.width_spinbox) self.retranslateUi(Form) QtCore.QObject.connect(self.width_slider, QtCore.SIGNAL("valueChanged(int)"), self.width_spinbox.setValue) QtCore.QObject.connect(self.width_spinbox, QtCore.SIGNAL("valueChanged(int)"), self.width_slider.setValue) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("Form", "Width", None, QtGui.QApplication.UnicodeUTF8)) self.label_2.setText(QtGui.QApplication.translate("Form", "Text Color", None, QtGui.QApplication.UnicodeUTF8))
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(400, 300) self.groupBox = QtGui.QGroupBox(Form) self.groupBox.setGeometry(QtCore.QRect(0, 10, 381, 121)) self.groupBox.setObjectName("groupBox") self.verticalLayoutWidget = QtGui.QWidget(self.groupBox) self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 30, 361, 88)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setObjectName("verticalLayout") self.label = QtGui.QLabel(self.verticalLayoutWidget) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.width_slider = QtGui.QSlider(self.verticalLayoutWidget) self.width_slider.setMinimum(100) self.width_slider.setMaximum(640) self.width_slider.setOrientation(QtCore.Qt.Horizontal) self.width_slider.setObjectName("width_slider") self.horizontalLayout.addWidget(self.width_slider) self.width_spinbox = QtGui.QSpinBox(self.verticalLayoutWidget) self.width_spinbox.setMinimum(100) self.width_spinbox.setMaximum(640) self.width_spinbox.setObjectName("width_spinbox") self.horizontalLayout.addWidget(self.width_spinbox) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtGui.QLabel(self.verticalLayoutWidget) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) self.text_colorcombo = KColorCombo(self.verticalLayoutWidget) self.text_colorcombo.setObjectName("text_colorcombo") self.horizontalLayout_2.addWidget(self.text_colorcombo) self.verticalLayout.addLayout(self.horizontalLayout_2) self.groupBox_2 = QtGui.QGroupBox(Form) self.groupBox_2.setGeometry(QtCore.QRect(0, 140, 371, 80)) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayoutWidget_2 = QtGui.QWidget(self.groupBox_2) self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(9, 30, 351, 41)) self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.force_bw_definition_box = QtGui.QCheckBox(self.verticalLayoutWidget_2) self.force_bw_definition_box.setObjectName("force_bw_definition_box") self.verticalLayout_2.addWidget(self.force_bw_definition_box) self.label.setBuddy(self.width_spinbox) self.retranslateUi(Form) QtCore.QObject.connect(self.width_slider, QtCore.SIGNAL("valueChanged(int)"), self.width_spinbox.setValue) QtCore.QObject.connect(self.width_spinbox, QtCore.SIGNAL("valueChanged(int)"), self.width_slider.setValue) QtCore.QMetaObject.connectSlotsByName(Form)
def __init__(self, parent=None): KVBox.__init__(self, parent) self.help = QLabel(helpText, self) self.layout().setAlignment(self.help, Qt.AlignHCenter) hBox1 = KHBox(self) hBox1.setSpacing(10) hBox1.setMargin(40) colorButtonLabel = QLabel("KColorButton", hBox1) colorButton = KColorButton(hBox1) colorCellsLabel = QLabel("KColorCells", hBox1) colorCells = KColorCells(hBox1, 1, 8) colorCells.setMaximumSize(160, 20) colorCells.setColor(0, Qt.black) colorCells.setColor(1, Qt.red) colorCells.setColor(2, Qt.yellow) colorCells.setColor(3, Qt.blue) colorCells.setColor(4, Qt.darkGreen) colorCells.setColor(5, Qt.magenta) colorCells.setColor(6, Qt.gray) colorCells.setColor(7, Qt.white) colorComboLabel = QLabel("KColorCombo", hBox1) colorCombo = KColorCombo(hBox1) colorList = [ Qt.black, Qt.red, Qt.yellow, Qt.blue, Qt.darkGreen, Qt.magenta, Qt.gray, Qt.white ] colorCombo.setColors(colorList) colorCombo.setMaximumWidth(80) hBox2 = KHBox(self) hBox2.setSpacing(10) self.layout().setAlignment(hBox2, Qt.AlignHCenter | Qt.AlignTop) self.setStretchFactor(hBox2, 1) colorPatchLabel = QLabel("KColorPatch", hBox2) hBox2.layout().setAlignment(colorPatchLabel, Qt.AlignHCenter) self.colorPatch = KColorPatch(hBox2) self.colorPatch.setFixedSize(40, 40) hBox2.layout().setAlignment(self.colorPatch, Qt.AlignHCenter) self.colorPatch.setColor(Qt.red) self.colorPatch.show() self.connect(colorButton, SIGNAL("changed (const QColor&)"), self.colorPatch.setColor) self.connect(colorCells, SIGNAL("colorSelected (int, const QColor&)"), self.colorCellSelected) self.connect(colorCombo, SIGNAL("activated (const QColor&)"), self.colorPatch.setColor)
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(400, 300) self.groupBox = QtGui.QGroupBox(Form) self.groupBox.setGeometry(QtCore.QRect(0, 10, 381, 121)) self.groupBox.setObjectName("groupBox") self.verticalLayoutWidget = QtGui.QWidget(self.groupBox) self.verticalLayoutWidget.setGeometry(QtCore.QRect(10, 30, 361, 88)) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setObjectName("verticalLayout") self.label = QtGui.QLabel(self.verticalLayoutWidget) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.width_slider = QtGui.QSlider(self.verticalLayoutWidget) self.width_slider.setMinimum(100) self.width_slider.setMaximum(640) self.width_slider.setOrientation(QtCore.Qt.Horizontal) self.width_slider.setObjectName("width_slider") self.horizontalLayout.addWidget(self.width_slider) self.width_spinbox = QtGui.QSpinBox(self.verticalLayoutWidget) self.width_spinbox.setMinimum(100) self.width_spinbox.setMaximum(640) self.width_spinbox.setObjectName("width_spinbox") self.horizontalLayout.addWidget(self.width_spinbox) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtGui.QLabel(self.verticalLayoutWidget) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) self.text_colorcombo = KColorCombo(self.verticalLayoutWidget) self.text_colorcombo.setObjectName("text_colorcombo") self.horizontalLayout_2.addWidget(self.text_colorcombo) self.verticalLayout.addLayout(self.horizontalLayout_2) self.groupBox_2 = QtGui.QGroupBox(Form) self.groupBox_2.setGeometry(QtCore.QRect(0, 140, 371, 80)) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayoutWidget_2 = QtGui.QWidget(self.groupBox_2) self.verticalLayoutWidget_2.setGeometry(QtCore.QRect(9, 30, 351, 41)) self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.force_bw_definition_box = QtGui.QCheckBox(self.verticalLayoutWidget_2) self.force_bw_definition_box.setObjectName("force_bw_definition_box") self.verticalLayout_2.addWidget(self.force_bw_definition_box) self.label.setBuddy(self.width_spinbox) self.retranslateUi(Form) QtCore.QObject.connect(self.width_slider, QtCore.SIGNAL("valueChanged(int)"), self.width_spinbox.setValue) QtCore.QObject.connect(self.width_spinbox, QtCore.SIGNAL("valueChanged(int)"), self.width_slider.setValue) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox.setTitle(QtGui.QApplication.translate("Form", "Entry Box options", None, QtGui.QApplication.UnicodeUTF8)) self.label.setText(QtGui.QApplication.translate("Form", "Width", None, QtGui.QApplication.UnicodeUTF8)) self.label_2.setText(QtGui.QApplication.translate("Form", "Text Color", None, QtGui.QApplication.UnicodeUTF8)) self.groupBox_2.setTitle(QtGui.QApplication.translate("Form", "Definition display options", None, QtGui.QApplication.UnicodeUTF8)) self.force_bw_definition_box.setText(QtGui.QApplication.translate("Form", "Force definitions black text on white", None, QtGui.QApplication.UnicodeUTF8))
def setupUi(self, frmMain): frmMain.setObjectName(_fromUtf8("frmMain")) frmMain.resize(800, 600) self.centralwidget = QtGui.QWidget(frmMain) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.imgView = QtGui.QGraphicsView(self.centralwidget) self.imgView.setGeometry(QtCore.QRect(0, 0, 571, 491)) self.imgView.setObjectName(_fromUtf8("imgView")) self.grpControls = QtGui.QGroupBox(self.centralwidget) self.grpControls.setGeometry(QtCore.QRect(570, 0, 221, 461)) self.grpControls.setObjectName(_fromUtf8("grpControls")) self.lblScale = QtGui.QLabel(self.grpControls) self.lblScale.setGeometry(QtCore.QRect(0, 90, 131, 17)) self.lblScale.setObjectName(_fromUtf8("lblScale")) self.txtScaleWidth = QtGui.QLineEdit(self.grpControls) self.txtScaleWidth.setGeometry(QtCore.QRect(0, 110, 41, 27)) self.txtScaleWidth.setObjectName(_fromUtf8("txtScaleWidth")) self.btnReset = QtGui.QPushButton(self.grpControls) self.btnReset.setGeometry(QtCore.QRect(110, 380, 99, 27)) self.btnReset.setObjectName(_fromUtf8("btnReset")) self.lblWidthLabel = QtGui.QLabel(self.grpControls) self.lblWidthLabel.setGeometry(QtCore.QRect(10, 30, 51, 17)) self.lblWidthLabel.setObjectName(_fromUtf8("lblWidthLabel")) self.lblHeightLabel = QtGui.QLabel(self.grpControls) self.lblHeightLabel.setGeometry(QtCore.QRect(120, 30, 51, 17)) self.lblHeightLabel.setObjectName(_fromUtf8("lblHeightLabel")) self.lblSizeXLabel = QtGui.QLabel(self.grpControls) self.lblSizeXLabel.setGeometry(QtCore.QRect(80, 30, 16, 17)) self.lblSizeXLabel.setObjectName(_fromUtf8("lblSizeXLabel")) self.lblWidth = QtGui.QLabel(self.grpControls) self.lblWidth.setGeometry(QtCore.QRect(10, 50, 51, 17)) self.lblWidth.setText(_fromUtf8("")) self.lblWidth.setObjectName(_fromUtf8("lblWidth")) self.lblSizeX = QtGui.QLabel(self.grpControls) self.lblSizeX.setGeometry(QtCore.QRect(80, 50, 16, 17)) self.lblSizeX.setObjectName(_fromUtf8("lblSizeX")) self.lblHeight = QtGui.QLabel(self.grpControls) self.lblHeight.setGeometry(QtCore.QRect(120, 50, 51, 17)) self.lblHeight.setText(_fromUtf8("")) self.lblHeight.setObjectName(_fromUtf8("lblHeight")) self.lblVerticalLabel = QtGui.QLabel(self.grpControls) self.lblVerticalLabel.setGeometry(QtCore.QRect(0, 170, 68, 17)) self.lblVerticalLabel.setObjectName(_fromUtf8("lblVerticalLabel")) self.lblSegmentXLabel = QtGui.QLabel(self.grpControls) self.lblSegmentXLabel.setGeometry(QtCore.QRect(70, 170, 21, 17)) self.lblSegmentXLabel.setObjectName(_fromUtf8("lblSegmentXLabel")) self.lblHorizontalLabel = QtGui.QLabel(self.grpControls) self.lblHorizontalLabel.setGeometry(QtCore.QRect(100, 170, 68, 17)) self.lblHorizontalLabel.setObjectName(_fromUtf8("lblHorizontalLabel")) self.lblSegmentsLabel = QtGui.QLabel(self.grpControls) self.lblSegmentsLabel.setGeometry(QtCore.QRect(0, 140, 68, 17)) self.lblSegmentsLabel.setObjectName(_fromUtf8("lblSegmentsLabel")) self.txtVertical = QtGui.QLineEdit(self.grpControls) self.txtVertical.setGeometry(QtCore.QRect(0, 190, 71, 27)) self.txtVertical.setObjectName(_fromUtf8("txtVertical")) self.lblVertical = QtGui.QLabel(self.grpControls) self.lblVertical.setGeometry(QtCore.QRect(90, 190, 68, 17)) self.lblVertical.setObjectName(_fromUtf8("lblVertical")) self.txtHorizontal = QtGui.QLineEdit(self.grpControls) self.txtHorizontal.setGeometry(QtCore.QRect(0, 230, 71, 27)) self.txtHorizontal.setObjectName(_fromUtf8("txtHorizontal")) self.lblHorizontal = QtGui.QLabel(self.grpControls) self.lblHorizontal.setGeometry(QtCore.QRect(90, 230, 68, 17)) self.lblHorizontal.setObjectName(_fromUtf8("lblHorizontal")) self.lblScaleX = QtGui.QLabel(self.grpControls) self.lblScaleX.setGeometry(QtCore.QRect(50, 120, 16, 17)) self.lblScaleX.setObjectName(_fromUtf8("lblScaleX")) self.btnSubmit = QtGui.QPushButton(self.grpControls) self.btnSubmit.setGeometry(QtCore.QRect(0, 380, 99, 27)) self.btnSubmit.setObjectName(_fromUtf8("btnSubmit")) self.lblLineWidth = QtGui.QLabel(self.grpControls) self.lblLineWidth.setGeometry(QtCore.QRect(10, 270, 81, 17)) self.lblLineWidth.setObjectName(_fromUtf8("lblLineWidth")) self.txtLineWidth = QtGui.QLineEdit(self.grpControls) self.txtLineWidth.setGeometry(QtCore.QRect(90, 270, 41, 27)) self.txtLineWidth.setObjectName(_fromUtf8("txtLineWidth")) self.lblLineColor = QtGui.QLabel(self.grpControls) self.lblLineColor.setGeometry(QtCore.QRect(10, 310, 81, 17)) self.lblLineColor.setObjectName(_fromUtf8("lblLineColor")) self.cbColor = KColorCombo(self.grpControls) self.cbColor.setGeometry(QtCore.QRect(100, 310, 95, 27)) self.cbColor.setColor(QtGui.QColor(255, 0, 0)) self.cbColor.setObjectName(_fromUtf8("cbColor")) self.txtScaleHeight = QtGui.QLineEdit(self.grpControls) self.txtScaleHeight.setGeometry(QtCore.QRect(70, 110, 41, 27)) self.txtScaleHeight.setObjectName(_fromUtf8("txtScaleHeight")) self.lblHeightCm = QtGui.QLabel(self.grpControls) self.lblHeightCm.setGeometry(QtCore.QRect(120, 70, 51, 17)) self.lblHeightCm.setText(_fromUtf8("")) self.lblHeightCm.setObjectName(_fromUtf8("lblHeightCm")) self.lblWidthCm = QtGui.QLabel(self.grpControls) self.lblWidthCm.setGeometry(QtCore.QRect(10, 70, 51, 17)) self.lblWidthCm.setText(_fromUtf8("")) self.lblWidthCm.setObjectName(_fromUtf8("lblWidthCm")) self.lblSizeXcm = QtGui.QLabel(self.grpControls) self.lblSizeXcm.setGeometry(QtCore.QRect(80, 70, 16, 17)) self.lblSizeXcm.setObjectName(_fromUtf8("lblSizeXcm")) frmMain.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(frmMain) self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 25)) self.menubar.setDefaultUp(False) self.menubar.setNativeMenuBar(False) self.menubar.setObjectName(_fromUtf8("menubar")) self.menuFile = QtGui.QMenu(self.menubar) self.menuFile.setObjectName(_fromUtf8("menuFile")) frmMain.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(frmMain) self.statusbar.setObjectName(_fromUtf8("statusbar")) frmMain.setStatusBar(self.statusbar) self.actionOpen_Image = QtGui.QAction(frmMain) self.actionOpen_Image.setObjectName(_fromUtf8("actionOpen_Image")) self.actionExit = QtGui.QAction(frmMain) self.actionExit.setObjectName(_fromUtf8("actionExit")) self.menuFile.addAction(self.actionOpen_Image) self.menuFile.addSeparator() self.menuFile.addAction(self.actionExit) self.menubar.addAction(self.menuFile.menuAction()) self.retranslateUi(frmMain) QtCore.QMetaObject.connectSlotsByName(frmMain) frmMain.setTabOrder(self.txtScaleWidth, self.txtScaleHeight) frmMain.setTabOrder(self.txtScaleHeight, self.txtVertical) frmMain.setTabOrder(self.txtVertical, self.txtHorizontal) frmMain.setTabOrder(self.txtHorizontal, self.txtLineWidth) frmMain.setTabOrder(self.txtLineWidth, self.cbColor) frmMain.setTabOrder(self.cbColor, self.btnSubmit) frmMain.setTabOrder(self.btnSubmit, self.btnReset) frmMain.setTabOrder(self.btnReset, self.imgView)
class Ui_Color(object): def setupUi(self, Color): Color.setObjectName("Color") Color.resize(547, 505) self.centralwidget = QtGui.QWidget(Color) self.centralwidget.setObjectName("centralwidget") self.north = KColorCombo(self.centralwidget) self.north.setGeometry(QtCore.QRect(220, 60, 96, 31)) self.north.setObjectName("north") self.west = KColorCombo(self.centralwidget) self.west.setGeometry(QtCore.QRect(30, 210, 96, 31)) self.west.setObjectName("west") self.east = KColorCombo(self.centralwidget) self.east.setGeometry(QtCore.QRect(430, 210, 96, 31)) self.east.setObjectName("east") self.south = KColorCombo(self.centralwidget) self.south.setGeometry(QtCore.QRect(240, 410, 96, 31)) self.south.setObjectName("south") Color.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(Color) self.menubar.setGeometry(QtCore.QRect(0, 0, 547, 27)) self.menubar.setObjectName("menubar") Color.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(Color) self.statusbar.setObjectName("statusbar") Color.setStatusBar(self.statusbar) self.retranslateUi(Color) QtCore.QMetaObject.connectSlotsByName(Color) def retranslateUi(self, Color): Color.setWindowTitle(QtGui.QApplication.translate("Color", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))