예제 #1
0
파일: dragwidget.py 프로젝트: freeaks/filer
 def create_file(self):
     new_file = self.path + "/" + "newfile.txt"
     open(new_file, 'w').close()
     icon_widget = IconWidget(self, name="newfile.txt", path=self.path, dir=False)
     icon_widget.new_window.connect(self.new_window_signal.emit)
     icon_widget.show()
     self.icons.append(icon_widget)
예제 #2
0
파일: dragwidget.py 프로젝트: freeaks/filer
 def create_drawer(self):
     print("creating new drawer")
     new_drawer = self.path + "/" + "NewDrawer"
     os.makedirs(new_drawer)
     icon_widget = IconWidget(self, name="NewDrawer", path=self.path, dir=True)
     icon_widget.new_window.connect(self.new_window_signal.emit)
     icon_widget.show()
     self.icons.append(icon_widget)
예제 #3
0
 def create_file(self):
     new_file = self.path + "/" + "newfile.txt"
     open(new_file, 'w').close()
     icon_widget = IconWidget(self,
                              name="newfile.txt",
                              path=self.path,
                              dir=False)
     icon_widget.new_window.connect(self.new_window_signal.emit)
     icon_widget.show()
     self.icons.append(icon_widget)
예제 #4
0
 def create_icon(self, name, drawer):
     if drawer:
         icon_widget = IconWidget(self, name=name, path=self.path, dir=True)
     else:
         icon_widget = IconWidget(self,
                                  name=name,
                                  path=self.path,
                                  dir=False)
     icon_widget.new_window.connect(self.new_window_signal.emit)
     self.icons.append(icon_widget)
예제 #5
0
 def create_drawer(self):
     print("creating new drawer")
     new_drawer = self.path + "/" + "NewDrawer"
     os.makedirs(new_drawer)
     icon_widget = IconWidget(self,
                              name="NewDrawer",
                              path=self.path,
                              dir=True)
     icon_widget.new_window.connect(self.new_window_signal.emit)
     icon_widget.show()
     self.icons.append(icon_widget)
예제 #6
0
 def read_drawer(self):
     # self.icons.clear()
     for item in os.scandir(self.path):
         if item.is_dir():
             icon_widget = IconWidget(parent=self,
                                      name=item.name,
                                      path=self.path,
                                      dir=True)
         else:
             icon_widget = IconWidget(parent=self,
                                      name=item.name,
                                      path=self.path,
                                      dir=False)
         icon_widget.new_window.connect(self.new_window_signal.emit)
         icon_widget.clipboard.connect(self.on_clipboard)
         self.icons.append(icon_widget)
         self.icons[-1].setAttribute(Qt.WA_DeleteOnClose)
예제 #7
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(480, 640)
        self.widget_iconeditor = IconWidget(Form)
        self.widget_iconeditor.setGeometry(QtCore.QRect(30, 40, 240, 240))
        self.widget_iconeditor.setMinimumSize(QtCore.QSize(240, 240))
        self.widget_iconeditor.setObjectName(_fromUtf8("widget_iconeditor"))
        self.label = QtGui.QLabel(Form)
        self.label.setGeometry(QtCore.QRect(31, 311, 92, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.lineEdit = QtGui.QLineEdit(Form)
        self.lineEdit.setGeometry(QtCore.QRect(130, 311, 211, 22))
        self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setGeometry(QtCore.QRect(31, 340, 91, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setGeometry(QtCore.QRect(31, 369, 81, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.lineEdit_2 = QtGui.QLineEdit(Form)
        self.lineEdit_2.setGeometry(QtCore.QRect(130, 340, 211, 22))
        self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
        self.lineEdit_3 = QtGui.QLineEdit(Form)
        self.lineEdit_3.setGeometry(QtCore.QRect(130, 369, 211, 22))
        self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
        self.plainTextEdit = QtGui.QPlainTextEdit(Form)
        self.plainTextEdit.setGeometry(QtCore.QRect(30, 470, 321, 71))
        self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit"))
        self.widget = QtGui.QWidget(Form)
        self.widget.setGeometry(QtCore.QRect(30, 420, 318, 30))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.pushButton_2 = QtGui.QPushButton(self.widget)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.horizontalLayout.addWidget(self.pushButton_2)
        self.pushButton_4 = QtGui.QPushButton(self.widget)
        self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
        self.horizontalLayout.addWidget(self.pushButton_4)
        self.pushButton = QtGui.QPushButton(self.widget)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.horizontalLayout.addWidget(self.pushButton)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
예제 #8
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(480, 640)
        self.widget_iconeditor = IconWidget(Form)
        self.widget_iconeditor.setGeometry(QtCore.QRect(30, 40, 240, 240))
        self.widget_iconeditor.setMinimumSize(QtCore.QSize(240, 240))
        self.widget_iconeditor.setObjectName(_fromUtf8("widget_iconeditor"))
        self.label = QtGui.QLabel(Form)
        self.label.setGeometry(QtCore.QRect(31, 311, 92, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.lineEdit = QtGui.QLineEdit(Form)
        self.lineEdit.setGeometry(QtCore.QRect(130, 311, 211, 22))
        self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setGeometry(QtCore.QRect(31, 340, 91, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setGeometry(QtCore.QRect(31, 369, 81, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.lineEdit_2 = QtGui.QLineEdit(Form)
        self.lineEdit_2.setGeometry(QtCore.QRect(130, 340, 211, 22))
        self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
        self.lineEdit_3 = QtGui.QLineEdit(Form)
        self.lineEdit_3.setGeometry(QtCore.QRect(130, 369, 211, 22))
        self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
        self.plainTextEdit = QtGui.QPlainTextEdit(Form)
        self.plainTextEdit.setGeometry(QtCore.QRect(30, 470, 321, 71))
        self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit"))
        self.widget = QtGui.QWidget(Form)
        self.widget.setGeometry(QtCore.QRect(30, 420, 318, 30))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.pushButton_2 = QtGui.QPushButton(self.widget)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.horizontalLayout.addWidget(self.pushButton_2)
        self.pushButton_4 = QtGui.QPushButton(self.widget)
        self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
        self.horizontalLayout.addWidget(self.pushButton_4)
        self.pushButton = QtGui.QPushButton(self.widget)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.horizontalLayout.addWidget(self.pushButton)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.label.setText(_translate("Form", "Image Filename", None))
        self.label_2.setText(_translate("Form", "Current number", None))
        self.label_3.setText(_translate("Form", "Next Filename", None))
        self.pushButton_2.setText(_translate("Form", "Save", None))
        self.pushButton_4.setText(_translate("Form", "Restart Numbering",
                                             None))
        self.pushButton.setText(_translate("Form", "Clear", None))
예제 #9
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(480, 640)
        self.widget_iconeditor = IconWidget(Form)
        self.widget_iconeditor.setGeometry(QtCore.QRect(30, 40, 240, 240))
        self.widget_iconeditor.setMinimumSize(QtCore.QSize(240, 240))
        self.widget_iconeditor.setObjectName(_fromUtf8("widget_iconeditor"))
        self.label = QtGui.QLabel(Form)
        self.label.setGeometry(QtCore.QRect(31, 311, 92, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.lineEdit = QtGui.QLineEdit(Form)
        self.lineEdit.setGeometry(QtCore.QRect(130, 311, 211, 22))
        self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setGeometry(QtCore.QRect(31, 340, 91, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setGeometry(QtCore.QRect(31, 369, 81, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.lineEdit_2 = QtGui.QLineEdit(Form)
        self.lineEdit_2.setGeometry(QtCore.QRect(130, 340, 211, 22))
        self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
        self.lineEdit_3 = QtGui.QLineEdit(Form)
        self.lineEdit_3.setGeometry(QtCore.QRect(130, 369, 211, 22))
        self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
        self.plainTextEdit = QtGui.QPlainTextEdit(Form)
        self.plainTextEdit.setGeometry(QtCore.QRect(30, 470, 321, 71))
        self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit"))
        self.widget = QtGui.QWidget(Form)
        self.widget.setGeometry(QtCore.QRect(30, 420, 318, 30))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.pushButton_2 = QtGui.QPushButton(self.widget)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.horizontalLayout.addWidget(self.pushButton_2)
        self.pushButton_4 = QtGui.QPushButton(self.widget)
        self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
        self.horizontalLayout.addWidget(self.pushButton_4)
        self.pushButton = QtGui.QPushButton(self.widget)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.horizontalLayout.addWidget(self.pushButton)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        Form.setWindowTitle(_translate("Form", "Form", None))
        self.label.setText(_translate("Form", "Image Filename", None))
        self.label_2.setText(_translate("Form", "Current number", None))
        self.label_3.setText(_translate("Form", "Next Filename", None))
        self.pushButton_2.setText(_translate("Form", "Save", None))
        self.pushButton_4.setText(_translate("Form", "Restart Numbering", None))
        self.pushButton.setText(_translate("Form", "Clear", None))
예제 #10
0
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(480, 640)
        self.widget_iconeditor = IconWidget(Form)
        self.widget_iconeditor.setGeometry(QtCore.QRect(30, 40, 240, 240))
        self.widget_iconeditor.setMinimumSize(QtCore.QSize(240, 240))
        self.widget_iconeditor.setObjectName(_fromUtf8("widget_iconeditor"))
        self.label = QtGui.QLabel(Form)
        self.label.setGeometry(QtCore.QRect(31, 311, 92, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.lineEdit = QtGui.QLineEdit(Form)
        self.lineEdit.setGeometry(QtCore.QRect(130, 311, 211, 22))
        self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
        self.label_2 = QtGui.QLabel(Form)
        self.label_2.setGeometry(QtCore.QRect(31, 340, 91, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.label_3 = QtGui.QLabel(Form)
        self.label_3.setGeometry(QtCore.QRect(31, 369, 81, 16))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.lineEdit_2 = QtGui.QLineEdit(Form)
        self.lineEdit_2.setGeometry(QtCore.QRect(130, 340, 211, 22))
        self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))
        self.lineEdit_3 = QtGui.QLineEdit(Form)
        self.lineEdit_3.setGeometry(QtCore.QRect(130, 369, 211, 22))
        self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))
        self.plainTextEdit = QtGui.QPlainTextEdit(Form)
        self.plainTextEdit.setGeometry(QtCore.QRect(30, 470, 321, 71))
        self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit"))
        self.widget = QtGui.QWidget(Form)
        self.widget.setGeometry(QtCore.QRect(30, 420, 318, 30))
        self.widget.setObjectName(_fromUtf8("widget"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
        self.horizontalLayout.setMargin(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.pushButton_2 = QtGui.QPushButton(self.widget)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.horizontalLayout.addWidget(self.pushButton_2)
        self.pushButton_4 = QtGui.QPushButton(self.widget)
        self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))
        self.horizontalLayout.addWidget(self.pushButton_4)
        self.pushButton = QtGui.QPushButton(self.widget)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.horizontalLayout.addWidget(self.pushButton)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)
예제 #11
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(973, 815)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(30, 20, 661, 611))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tabMinDistance = QtGui.QWidget()
        self.tabMinDistance.setObjectName(_fromUtf8("tabMinDistance"))
        self.label_desc = QtGui.QLabel(self.tabMinDistance)
        self.label_desc.setGeometry(QtCore.QRect(30, 30, 91, 16))
        self.label_desc.setObjectName(_fromUtf8("label_desc"))
        self.label_img1 = QtGui.QLabel(self.tabMinDistance)
        self.label_img1.setGeometry(QtCore.QRect(30, 80, 60, 60))
        self.label_img1.setMinimumSize(QtCore.QSize(60, 60))
        self.label_img1.setMaximumSize(QtCore.QSize(60, 60))
        self.label_img1.setFrameShape(QtGui.QFrame.Box)
        self.label_img1.setMargin(0)
        self.label_img1.setObjectName(_fromUtf8("label_img1"))
        self.textEdit_info1 = QtGui.QTextEdit(self.tabMinDistance)
        self.textEdit_info1.setGeometry(QtCore.QRect(120, 60, 241, 87))
        self.textEdit_info1.setMinimumSize(QtCore.QSize(241, 87))
        self.textEdit_info1.setObjectName(_fromUtf8("textEdit_info1"))
        self.label_img2 = QtGui.QLabel(self.tabMinDistance)
        self.label_img2.setGeometry(QtCore.QRect(30, 220, 60, 60))
        self.label_img2.setMinimumSize(QtCore.QSize(60, 60))
        self.label_img2.setMaximumSize(QtCore.QSize(60, 60))
        self.label_img2.setFrameShape(QtGui.QFrame.Box)
        self.label_img2.setMargin(0)
        self.label_img2.setObjectName(_fromUtf8("label_img2"))
        self.textEdit_info2 = QtGui.QTextEdit(self.tabMinDistance)
        self.textEdit_info2.setGeometry(QtCore.QRect(120, 200, 241, 87))
        self.textEdit_info2.setMinimumSize(QtCore.QSize(241, 87))
        self.textEdit_info2.setObjectName(_fromUtf8("textEdit_info2"))
        self.label_desc2 = QtGui.QLabel(self.tabMinDistance)
        self.label_desc2.setGeometry(QtCore.QRect(30, 200, 91, 16))
        self.label_desc2.setObjectName(_fromUtf8("label_desc2"))
        self.textEdit_info3 = QtGui.QTextEdit(self.tabMinDistance)
        self.textEdit_info3.setGeometry(QtCore.QRect(120, 340, 241, 87))
        self.textEdit_info3.setMinimumSize(QtCore.QSize(241, 87))
        self.textEdit_info3.setObjectName(_fromUtf8("textEdit_info3"))
        self.label_img3 = QtGui.QLabel(self.tabMinDistance)
        self.label_img3.setGeometry(QtCore.QRect(30, 360, 60, 60))
        self.label_img3.setMinimumSize(QtCore.QSize(60, 60))
        self.label_img3.setMaximumSize(QtCore.QSize(60, 60))
        self.label_img3.setFrameShape(QtGui.QFrame.Box)
        self.label_img3.setMargin(0)
        self.label_img3.setObjectName(_fromUtf8("label_img3"))
        self.label_desc3 = QtGui.QLabel(self.tabMinDistance)
        self.label_desc3.setGeometry(QtCore.QRect(30, 340, 91, 16))
        self.label_desc3.setObjectName(_fromUtf8("label_desc3"))
        self.lineEdit_class1 = QtGui.QLineEdit(self.tabMinDistance)
        self.lineEdit_class1.setGeometry(QtCore.QRect(380, 60, 171, 22))
        self.lineEdit_class1.setObjectName(_fromUtf8("lineEdit_class1"))
        self.label = QtGui.QLabel(self.tabMinDistance)
        self.label.setGeometry(QtCore.QRect(380, 30, 53, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(self.tabMinDistance)
        self.label_2.setGeometry(QtCore.QRect(120, 30, 71, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.lineEdit_class2 = QtGui.QLineEdit(self.tabMinDistance)
        self.lineEdit_class2.setGeometry(QtCore.QRect(380, 200, 171, 22))
        self.lineEdit_class2.setObjectName(_fromUtf8("lineEdit_class2"))
        self.lineEdit_class3 = QtGui.QLineEdit(self.tabMinDistance)
        self.lineEdit_class3.setGeometry(QtCore.QRect(380, 340, 171, 22))
        self.lineEdit_class3.setObjectName(_fromUtf8("lineEdit_class3"))
        self.label_desc1 = QtGui.QLabel(self.tabMinDistance)
        self.label_desc1.setGeometry(QtCore.QRect(30, 60, 91, 16))
        self.label_desc1.setObjectName(_fromUtf8("label_desc1"))
        self.line_2 = QtGui.QFrame(self.tabMinDistance)
        self.line_2.setGeometry(QtCore.QRect(10, 450, 631, 16))
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.groupBox_descriptor = QtGui.QGroupBox(self.tabMinDistance)
        self.groupBox_descriptor.setGeometry(QtCore.QRect(10, 470, 611, 51))
        self.groupBox_descriptor.setFlat(False)
        self.groupBox_descriptor.setCheckable(False)
        self.groupBox_descriptor.setObjectName(
            _fromUtf8("groupBox_descriptor"))
        self.radioButton_desc1 = QtGui.QRadioButton(self.groupBox_descriptor)
        self.radioButton_desc1.setGeometry(QtCore.QRect(10, 20, 95, 20))
        self.radioButton_desc1.setChecked(True)
        self.radioButton_desc1.setObjectName(_fromUtf8("radioButton_desc1"))
        self.radioButton_desc2 = QtGui.QRadioButton(self.groupBox_descriptor)
        self.radioButton_desc2.setGeometry(QtCore.QRect(120, 20, 95, 20))
        self.radioButton_desc2.setObjectName(_fromUtf8("radioButton_desc2"))
        self.radioButton_desc3 = QtGui.QRadioButton(self.groupBox_descriptor)
        self.radioButton_desc3.setGeometry(QtCore.QRect(230, 20, 95, 20))
        self.radioButton_desc3.setObjectName(_fromUtf8("radioButton_desc3"))
        self.groupBox_distance = QtGui.QGroupBox(self.tabMinDistance)
        self.groupBox_distance.setGeometry(QtCore.QRect(10, 530, 611, 51))
        self.groupBox_distance.setObjectName(_fromUtf8("groupBox_distance"))
        self.radioButton_norm1 = QtGui.QRadioButton(self.groupBox_distance)
        self.radioButton_norm1.setGeometry(QtCore.QRect(10, 20, 95, 20))
        self.radioButton_norm1.setChecked(True)
        self.radioButton_norm1.setObjectName(_fromUtf8("radioButton_norm1"))
        self.radioButton_norm2 = QtGui.QRadioButton(self.groupBox_distance)
        self.radioButton_norm2.setGeometry(QtCore.QRect(120, 20, 95, 20))
        self.radioButton_norm2.setObjectName(_fromUtf8("radioButton_norm2"))
        self.radioButton_normp = QtGui.QRadioButton(self.groupBox_distance)
        self.radioButton_normp.setGeometry(QtCore.QRect(230, 20, 95, 20))
        self.radioButton_normp.setObjectName(_fromUtf8("radioButton_normp"))
        self.tabWidget.addTab(self.tabMinDistance, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.widget_iconeditor = IconWidget(self.centralwidget)
        self.widget_iconeditor.setGeometry(QtCore.QRect(710, 40, 240, 240))
        self.widget_iconeditor.setMinimumSize(QtCore.QSize(240, 240))
        self.widget_iconeditor.setObjectName(_fromUtf8("widget_iconeditor"))
        self.pbtn_calculate = QtGui.QPushButton(self.centralwidget)
        self.pbtn_calculate.setGeometry(QtCore.QRect(710, 590, 93, 28))
        self.pbtn_calculate.setObjectName(_fromUtf8("pbtn_calculate"))
        self.textEdit_info4 = QtGui.QTextEdit(self.centralwidget)
        self.textEdit_info4.setGeometry(QtCore.QRect(710, 290, 241, 87))
        self.textEdit_info4.setMinimumSize(QtCore.QSize(241, 87))
        self.textEdit_info4.setObjectName(_fromUtf8("textEdit_info4"))
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(690, 50, 20, 571))
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.plainTextEdit = QtGui.QPlainTextEdit(self.centralwidget)
        self.plainTextEdit.setGeometry(QtCore.QRect(30, 650, 921, 121))
        self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit"))
        self.lineEdit_icon = QtGui.QLineEdit(self.centralwidget)
        self.lineEdit_icon.setGeometry(QtCore.QRect(710, 390, 171, 22))
        self.lineEdit_icon.setObjectName(_fromUtf8("lineEdit_icon"))
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 973, 26))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
예제 #12
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(973, 815)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.tabWidget = QtGui.QTabWidget(self.centralwidget)
        self.tabWidget.setGeometry(QtCore.QRect(30, 20, 661, 611))
        self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
        self.tabMinDistance = QtGui.QWidget()
        self.tabMinDistance.setObjectName(_fromUtf8("tabMinDistance"))
        self.label_desc = QtGui.QLabel(self.tabMinDistance)
        self.label_desc.setGeometry(QtCore.QRect(30, 30, 91, 16))
        self.label_desc.setObjectName(_fromUtf8("label_desc"))
        self.label_img1 = QtGui.QLabel(self.tabMinDistance)
        self.label_img1.setGeometry(QtCore.QRect(30, 80, 60, 60))
        self.label_img1.setMinimumSize(QtCore.QSize(60, 60))
        self.label_img1.setMaximumSize(QtCore.QSize(60, 60))
        self.label_img1.setFrameShape(QtGui.QFrame.Box)
        self.label_img1.setMargin(0)
        self.label_img1.setObjectName(_fromUtf8("label_img1"))
        self.textEdit_info1 = QtGui.QTextEdit(self.tabMinDistance)
        self.textEdit_info1.setGeometry(QtCore.QRect(120, 60, 241, 87))
        self.textEdit_info1.setMinimumSize(QtCore.QSize(241, 87))
        self.textEdit_info1.setObjectName(_fromUtf8("textEdit_info1"))
        self.label_img2 = QtGui.QLabel(self.tabMinDistance)
        self.label_img2.setGeometry(QtCore.QRect(30, 220, 60, 60))
        self.label_img2.setMinimumSize(QtCore.QSize(60, 60))
        self.label_img2.setMaximumSize(QtCore.QSize(60, 60))
        self.label_img2.setFrameShape(QtGui.QFrame.Box)
        self.label_img2.setMargin(0)
        self.label_img2.setObjectName(_fromUtf8("label_img2"))
        self.textEdit_info2 = QtGui.QTextEdit(self.tabMinDistance)
        self.textEdit_info2.setGeometry(QtCore.QRect(120, 200, 241, 87))
        self.textEdit_info2.setMinimumSize(QtCore.QSize(241, 87))
        self.textEdit_info2.setObjectName(_fromUtf8("textEdit_info2"))
        self.label_desc2 = QtGui.QLabel(self.tabMinDistance)
        self.label_desc2.setGeometry(QtCore.QRect(30, 200, 91, 16))
        self.label_desc2.setObjectName(_fromUtf8("label_desc2"))
        self.textEdit_info3 = QtGui.QTextEdit(self.tabMinDistance)
        self.textEdit_info3.setGeometry(QtCore.QRect(120, 340, 241, 87))
        self.textEdit_info3.setMinimumSize(QtCore.QSize(241, 87))
        self.textEdit_info3.setObjectName(_fromUtf8("textEdit_info3"))
        self.label_img3 = QtGui.QLabel(self.tabMinDistance)
        self.label_img3.setGeometry(QtCore.QRect(30, 360, 60, 60))
        self.label_img3.setMinimumSize(QtCore.QSize(60, 60))
        self.label_img3.setMaximumSize(QtCore.QSize(60, 60))
        self.label_img3.setFrameShape(QtGui.QFrame.Box)
        self.label_img3.setMargin(0)
        self.label_img3.setObjectName(_fromUtf8("label_img3"))
        self.label_desc3 = QtGui.QLabel(self.tabMinDistance)
        self.label_desc3.setGeometry(QtCore.QRect(30, 340, 91, 16))
        self.label_desc3.setObjectName(_fromUtf8("label_desc3"))
        self.lineEdit_class1 = QtGui.QLineEdit(self.tabMinDistance)
        self.lineEdit_class1.setGeometry(QtCore.QRect(380, 60, 171, 22))
        self.lineEdit_class1.setObjectName(_fromUtf8("lineEdit_class1"))
        self.label = QtGui.QLabel(self.tabMinDistance)
        self.label.setGeometry(QtCore.QRect(380, 30, 53, 16))
        self.label.setObjectName(_fromUtf8("label"))
        self.label_2 = QtGui.QLabel(self.tabMinDistance)
        self.label_2.setGeometry(QtCore.QRect(120, 30, 71, 16))
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.lineEdit_class2 = QtGui.QLineEdit(self.tabMinDistance)
        self.lineEdit_class2.setGeometry(QtCore.QRect(380, 200, 171, 22))
        self.lineEdit_class2.setObjectName(_fromUtf8("lineEdit_class2"))
        self.lineEdit_class3 = QtGui.QLineEdit(self.tabMinDistance)
        self.lineEdit_class3.setGeometry(QtCore.QRect(380, 340, 171, 22))
        self.lineEdit_class3.setObjectName(_fromUtf8("lineEdit_class3"))
        self.label_desc1 = QtGui.QLabel(self.tabMinDistance)
        self.label_desc1.setGeometry(QtCore.QRect(30, 60, 91, 16))
        self.label_desc1.setObjectName(_fromUtf8("label_desc1"))
        self.line_2 = QtGui.QFrame(self.tabMinDistance)
        self.line_2.setGeometry(QtCore.QRect(10, 450, 631, 16))
        self.line_2.setFrameShape(QtGui.QFrame.HLine)
        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
        self.line_2.setObjectName(_fromUtf8("line_2"))
        self.groupBox_descriptor = QtGui.QGroupBox(self.tabMinDistance)
        self.groupBox_descriptor.setGeometry(QtCore.QRect(10, 470, 611, 51))
        self.groupBox_descriptor.setFlat(False)
        self.groupBox_descriptor.setCheckable(False)
        self.groupBox_descriptor.setObjectName(_fromUtf8("groupBox_descriptor"))
        self.radioButton_desc1 = QtGui.QRadioButton(self.groupBox_descriptor)
        self.radioButton_desc1.setGeometry(QtCore.QRect(10, 20, 95, 20))
        self.radioButton_desc1.setChecked(True)
        self.radioButton_desc1.setObjectName(_fromUtf8("radioButton_desc1"))
        self.radioButton_desc2 = QtGui.QRadioButton(self.groupBox_descriptor)
        self.radioButton_desc2.setGeometry(QtCore.QRect(120, 20, 95, 20))
        self.radioButton_desc2.setObjectName(_fromUtf8("radioButton_desc2"))
        self.radioButton_desc3 = QtGui.QRadioButton(self.groupBox_descriptor)
        self.radioButton_desc3.setGeometry(QtCore.QRect(230, 20, 95, 20))
        self.radioButton_desc3.setObjectName(_fromUtf8("radioButton_desc3"))
        self.groupBox_distance = QtGui.QGroupBox(self.tabMinDistance)
        self.groupBox_distance.setGeometry(QtCore.QRect(10, 530, 611, 51))
        self.groupBox_distance.setObjectName(_fromUtf8("groupBox_distance"))
        self.radioButton_norm1 = QtGui.QRadioButton(self.groupBox_distance)
        self.radioButton_norm1.setGeometry(QtCore.QRect(10, 20, 95, 20))
        self.radioButton_norm1.setChecked(True)
        self.radioButton_norm1.setObjectName(_fromUtf8("radioButton_norm1"))
        self.radioButton_norm2 = QtGui.QRadioButton(self.groupBox_distance)
        self.radioButton_norm2.setGeometry(QtCore.QRect(120, 20, 95, 20))
        self.radioButton_norm2.setObjectName(_fromUtf8("radioButton_norm2"))
        self.radioButton_normp = QtGui.QRadioButton(self.groupBox_distance)
        self.radioButton_normp.setGeometry(QtCore.QRect(230, 20, 95, 20))
        self.radioButton_normp.setObjectName(_fromUtf8("radioButton_normp"))
        self.tabWidget.addTab(self.tabMinDistance, _fromUtf8(""))
        self.tab_2 = QtGui.QWidget()
        self.tab_2.setObjectName(_fromUtf8("tab_2"))
        self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
        self.tab = QtGui.QWidget()
        self.tab.setObjectName(_fromUtf8("tab"))
        self.tabWidget.addTab(self.tab, _fromUtf8(""))
        self.tab_3 = QtGui.QWidget()
        self.tab_3.setObjectName(_fromUtf8("tab_3"))
        self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
        self.widget_iconeditor = IconWidget(self.centralwidget)
        self.widget_iconeditor.setGeometry(QtCore.QRect(710, 40, 240, 240))
        self.widget_iconeditor.setMinimumSize(QtCore.QSize(240, 240))
        self.widget_iconeditor.setObjectName(_fromUtf8("widget_iconeditor"))
        self.pbtn_calculate = QtGui.QPushButton(self.centralwidget)
        self.pbtn_calculate.setGeometry(QtCore.QRect(710, 590, 93, 28))
        self.pbtn_calculate.setObjectName(_fromUtf8("pbtn_calculate"))
        self.textEdit_info4 = QtGui.QTextEdit(self.centralwidget)
        self.textEdit_info4.setGeometry(QtCore.QRect(710, 290, 241, 87))
        self.textEdit_info4.setMinimumSize(QtCore.QSize(241, 87))
        self.textEdit_info4.setObjectName(_fromUtf8("textEdit_info4"))
        self.line = QtGui.QFrame(self.centralwidget)
        self.line.setGeometry(QtCore.QRect(690, 50, 20, 571))
        self.line.setFrameShape(QtGui.QFrame.VLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName(_fromUtf8("line"))
        self.plainTextEdit = QtGui.QPlainTextEdit(self.centralwidget)
        self.plainTextEdit.setGeometry(QtCore.QRect(30, 650, 921, 121))
        self.plainTextEdit.setObjectName(_fromUtf8("plainTextEdit"))
        self.lineEdit_icon = QtGui.QLineEdit(self.centralwidget)
        self.lineEdit_icon.setGeometry(QtCore.QRect(710, 390, 171, 22))
        self.lineEdit_icon.setObjectName(_fromUtf8("lineEdit_icon"))
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 973, 26))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)