Exemplo n.º 1
0
 def __init__(self, parent):
     QWizardPage.__init__(self, parent)
     AbstractDataTab.__init__(self)
     self.parent_wizard = weakref.proxy(parent)
     self.grid = QVBoxLayout(self)
     self.setTitle('Data')
     self.matrix = self.parent_wizard.main_parent.matrix
Exemplo n.º 2
0
 def __init__(self, parent):
     QWizardPage.__init__(self, parent)
     AbstractValueScoreLayout.__init__(self, QGridLayout(self))
     self.parent_wizard = weakref.proxy(parent)
     self.matrix = self.parent_wizard.main_parent.matrix
     self.tab_1 = self.parent_wizard.main_parent.matrix_tab
     self.setTitle('Criterion value to scores')
Exemplo n.º 3
0
 def __init__(self):
     QWizardPage.__init__(self)
     self.setTitle(self.TITLE)
     self.setSubTitle(self.SUBTITLE)
     self.ui = self.UI_CLASS()
     self.ui.setupUi(self)
     for name, widget_name in self.FIELDS.items():
         self.registerField(name, resolve_obj_name(self.ui, widget_name))
Exemplo n.º 4
0
    def __init__(self, parent):
        QWizardPage.__init__(self, parent)
        self.parent_wizard = weakref.proxy(parent)

        self.label = QLabel()
        self.line_edit = QLineEdit()
        self.line_edit.returnPressed.connect(self.add_item)
        self.add_button = QPushButton()
        self.add_button.clicked.connect(self.add_item)

        self.list = QListWidget()
        self.delete_button = QPushButton('&Delete')
        self.delete_button.setDisabled(True)
        self.delete_button.clicked.connect(self.delete_item)

        grid = QGridLayout(self)
        grid.addWidget(self.label, 0, 0)
        grid.addWidget(self.line_edit, 0, 1)
        grid.addWidget(self.add_button, 0, 2)
        grid.addWidget(self.list, 1, 0, 1, 2)
        grid.addWidget(self.delete_button, 1, 2, 1, 1, Qt.AlignTop)

        self.setLayout(grid)
Exemplo n.º 5
0
 def __init__(self, parent):
     QWizardPage.__init__(self, parent)
     self.parent_wizard = weakref.proxy(parent)
     self.grid = QGridLayout(self)
     self.setLayout(self.grid)
     self.collection: 'func[] -> Iterable[str]'