Пример #1
0
    def setupUi(self):
        verticalLayout = getConfiguredLayout(LayoutType.VERTICAL.value,
                                             parent=self)

        self._srcDesPathWidget = SrcDesPathWidget(self)
        verticalLayout.addWidget(self._srcDesPathWidget)

        horizontalLayoutOpts = getConfiguredLayout(LayoutType.HORIZONTAL.value,
                                                   margins=[0])
        labelSrc = QtWidgets.QLabel(self)
        labelSrc.setText("Champ")
        horizontalLayoutOpts.addWidget(labelSrc)

        self._comboBoxChamp = QtWidgets.QComboBox(self)
        horizontalLayoutOpts.addWidget(self._comboBoxChamp)

        labelSrc = QtWidgets.QLabel(self)
        labelSrc.setText("Day Number")
        horizontalLayoutOpts.addWidget(labelSrc)

        self._comboBoxDayNumber = QtWidgets.QComboBox(self)
        horizontalLayoutOpts.addWidget(self._comboBoxDayNumber)

        verticalLayout.addLayout(horizontalLayoutOpts)

        buttonBox = QtWidgets.QDialogButtonBox(
            QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel,
            parent=self)
        buttonBox.accepted.connect(self.accept)
        buttonBox.rejected.connect(self.reject)

        verticalLayout.addWidget(buttonBox)
Пример #2
0
    def setupUi(self):
        layout = widgets.getConfiguredLayout(LayoutType.VERTICAL.value,
                                             parent=self)

        label = QtWidgets.QLabel(self)
        label.setText("league info")

        layout.addWidget(label)
Пример #3
0
    def setupUi(self):
        verticalLayout = getConfiguredLayout(LayoutType.VERTICAL.value,
                                             parent=self)
        horizontalLayout = getConfiguredLayout(LayoutType.HORIZONTAL.value,
                                               margins=[0])

        label = QtWidgets.QLabel(self)
        label.setText("name : ")
        horizontalLayout.addWidget(label)

        self._nameLeagueEdit = QtWidgets.QLineEdit(self)
        horizontalLayout.addWidget(self._nameLeagueEdit)
        verticalLayout.addLayout(horizontalLayout)

        buttonBox = QtWidgets.QDialogButtonBox(
            QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel,
            parent=self)
        buttonBox.accepted.connect(self.accept)
        buttonBox.rejected.connect(self.reject)

        verticalLayout.addWidget(buttonBox)
Пример #4
0
    def setupUi(self):
        verticalLayout = getConfiguredLayout(LayoutType.VERTICAL.value, [0],
                                             5,
                                             parent=self)

        self._srcPathWidget = FileBrowserPath("Src", self.tr("Files (*.csv)"),
                                              self)
        self._srcPathWidget.pathChanged.connect(self._changeSrcPath)

        self._desPathWidget = DirectoryBrowserPath("Des", "", self)

        verticalLayout.addWidget(self._srcPathWidget)
        verticalLayout.addWidget(self._desPathWidget)
Пример #5
0
    def setupUi(self):
        layout = widgets.getConfiguredLayout(LayoutType.VERTICAL.value,
                                             parent=self)

        self._filterWidget = FilterWidget(self._dataBaseInst,
                                          self._dictFilters, self)
        layout.addWidget(self._filterWidget)

        self._dataBaseTreeView = DataBaseTreeView(self._dataBaseInst,
                                                  self._dictFilters, self)
        layout.addWidget(self._dataBaseTreeView)

        self._filterWidget.filterChanged.connect(
            self._dataBaseTreeView.updateFiltering)
Пример #6
0
    def setupUi(self):
        layout = widgets.getConfiguredLayout(LayoutType.VERTICAL.value,
                                             parent=self)

        horizontalLayout = widgets.getConfiguredLayout(
            LayoutType.HORIZONTAL.value, margins=[0])
        totalPrizeLabel = QtWidgets.QLabel(self)
        totalPrizeLabel.setText("Total")
        horizontalLayout.addWidget(totalPrizeLabel)

        self._totalPrizeEdit = QtWidgets.QLineEdit(self)
        self._totalPrizeEdit.setReadOnly(True)
        self._totalPrizeEdit.setFixedWidth(80)
        horizontalLayout.addWidget(self._totalPrizeEdit)

        spacerItem = QtWidgets.QSpacerItem(10, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        horizontalLayout.addItem(spacerItem)

        layout.addLayout(horizontalLayout)

        self._teamTreeView = TeamTreeView(self)
        layout.addWidget(self._teamTreeView)
Пример #7
0
    def setupUi(self):
        mainLayout = widgets.getConfiguredLayout(LayoutType.VERTICAL.value,
                                                 parent=self)

        toolbar = QtWidgets.QToolBar(self.tr("Tool bar"), self)
        toolbar.setStyleSheet("QToolBar {background-color: grey;}")
        toolbar.setMovable(False)

        chooseDataBase = toolbar.addAction("Choose data base")
        chooseDataBase.triggered.connect(self._chooseDataBase)

        mainLayout.addWidget(toolbar)

        tabWidget = QtWidgets.QTabWidget(self)
        self._mercatoWidget = MercatoWidget(self._leagueInst.getMercato(),
                                            self)
        tabWidget.addTab(self._mercatoWidget, "Mercato")

        self._leagueInfoWidget = LeagueInfoWidget(self._leagueInst, self)
        tabWidget.addTab(self._leagueInfoWidget, "League info")

        tabWidget.setTabEnabled(1, False)
        mainLayout.addWidget(tabWidget)
Пример #8
0
    def setupUi(self):
        mainLayout = widgets.getConfiguredLayout(LayoutType.VERTICAL.value,
                                                 parent=self)

        # horizontalLayout = widgets.getConfiguredLayout(LayoutType.HORIZONTAL.value, margins=[0])
        self._playerNameEdit = QtWidgets.QLineEdit(self)
        self._playerNameEdit.setPlaceholderText("Nom joueur")
        self._playerNameEdit.textChanged.connect(self._playerNameEditChanged)
        # horizontalLayout.addWidget(self._playerNameEdit)
        mainLayout.addWidget(self._playerNameEdit)

        horizontalLayout2 = widgets.getConfiguredLayout(
            LayoutType.HORIZONTAL.value, margins=[0])
        self._teamComboBox = QtWidgets.QComboBox(self)
        self._teamComboBox.currentIndexChanged.connect(
            lambda: self._comboBoxChanged(self._teamComboBox, Filters.TEAMS.
                                          value))
        # self._teamComboBox.setStyleSheet("color: rgb(160, 160, 164);")
        # self._teamComboBox.setStyleSheet("QComboBox { background-color: white; color: rgb(160, 160, 164) }" "QListView { color: black; }")
        # self._teamComboBox.setStyleSheet("QComboBox { combobox-popup: 0; color: white; padding: 0px 0px 0px 0px}")
        horizontalLayout2.addWidget(self._teamComboBox)

        self._posComboBox = QtWidgets.QComboBox(self)
        self._posComboBox.currentIndexChanged.connect(
            lambda: self._comboBoxChanged(self._posComboBox, Filters.POSITION.
                                          value))
        # self._posComboBox.setStyleSheet("color: rgb(160, 160, 164);")
        horizontalLayout2.addWidget(self._posComboBox)

        self._prizeComboBox = QtWidgets.QComboBox(self)
        self._prizeComboBox.currentIndexChanged.connect(
            lambda: self._comboBoxChanged(self._prizeComboBox, Filters.PRIZE.
                                          value))
        # self._prizeComboBox.setStyleSheet("color: rgb(160, 160, 164);")
        horizontalLayout2.addWidget(self._prizeComboBox)

        self._evalComboBox = QtWidgets.QComboBox(self)
        self._evalComboBox.currentIndexChanged.connect(
            lambda: self._comboBoxChanged(self._evalComboBox, Filters.EVAL.
                                          value))
        # self._evalComboBox.setStyleSheet("color: rgb(160, 160, 164);")
        horizontalLayout2.addWidget(self._evalComboBox)

        self._titComboBox = QtWidgets.QComboBox(self)
        self._titComboBox.currentIndexChanged.connect(
            lambda: self._comboBoxChanged(self._titComboBox, Filters.TIT.value
                                          ))
        # self._titComboBox.setStyleSheet("color: rgb(160, 160, 164);")
        horizontalLayout2.addWidget(self._titComboBox)

        self._goalsNumberComboBox = QtWidgets.QComboBox(self)
        self._goalsNumberComboBox.currentIndexChanged.connect(
            lambda: self._comboBoxChanged(self._goalsNumberComboBox, Filters.
                                          GOALS.value))
        # self._goalsNumberComboBox.setStyleSheet("color: rgb(160, 160, 164);")
        horizontalLayout2.addWidget(self._goalsNumberComboBox)

        horizontalLayout3 = widgets.getConfiguredLayout(
            LayoutType.HORIZONTAL.value, margins=[0])
        label = QtWidgets.QLabel(self)
        label.setText("Selection")
        horizontalLayout3.addWidget(label)
        self._selectionCheckBox = QtWidgets.QCheckBox(self)
        self._selectionCheckBox.stateChanged.connect(
            lambda: self._checkBoxChanged(self._selectionCheckBox, Filters.
                                          SELECTION.value))
        horizontalLayout3.addWidget(self._selectionCheckBox)

        spacerItem = QtWidgets.QSpacerItem(10, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        horizontalLayout3.addItem(spacerItem)

        label = QtWidgets.QLabel(self)
        label.setText("Active")
        horizontalLayout3.addWidget(label)
        self._activeFiltersCheckBox = QtWidgets.QCheckBox(self)
        self._activeFiltersCheckBox.setCheckState(QtCore.Qt.Checked)
        self._activeFiltersCheckBox.stateChanged.connect(
            lambda: self._checkBoxChanged(self._activeFiltersCheckBox, Filters.
                                          ACTIVE.value))
        horizontalLayout3.addWidget(self._activeFiltersCheckBox)

        mainLayout.addLayout(horizontalLayout2)
        mainLayout.addLayout(horizontalLayout3)
Пример #9
0
 def setupUi(self):
     mainLayout = widgets.getConfiguredLayout(LayoutType.VERTICAL.value, parent=self)
     self._tabWidget = QtWidgets.QTabWidget(self)
     mainLayout.addWidget(self._tabWidget)
Пример #10
0
 def setupUi(self):
     verticalLayout = getConfiguredLayout(LayoutType.VERTICAL.value,
                                          parent=self)
     self._pathWidget = FileBrowserPath("Src", self.tr("Files (*.csv)"),
                                        self)
     verticalLayout.addWidget(self._pathWidget)