def layout(self): grid = Tc2Config.GridBox(self) grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.labelSideBarPosition).col(self.comboSideBarPosition) grid.row() grid.col(self.labelDeckStyle).col(self.comboDeckStyle) grid.row() grid.col(self.labelMaxPlayerName).col(self.spinMaxPlayerName) grid.row() grid.col(self.checkNoFloatingPoint, colspan=3) grid.row() grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.labelPrefix, align=QtCore.Qt.AlignHCenter).col( self.labelAction, align=QtCore.Qt.AlignHCenter).col(self.labelPostfix, align=QtCore.Qt.AlignHCenter) grid.row() grid.col(Tc2Config.HLine(self), colspan=3) actions = sorted(self.actionWidgets.values(), key=operator.itemgetter('no')) for data in actions: grid.row() grid.col(data['EditPrefix']).col(data['LabelAction'], align=QtCore.Qt.AlignHCenter) if data['EditPostfix'] is not None: grid.col(data['EditPostfix']) grid.row() grid.col(Tc2Config.VStretch()) grid.row() grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.buttonBox, colspan=3)
def layout(self): grid = Tc2Config.GridBox(self) grid.col(self.labelAction).col(self.editAction) grid.row() grid.col(self.labelHotkey).col(self.hotkeyBox) grid.row() grid.col(self.labelHotkeyName).col(self.editHotkeyName) grid.row() grid.col(self.labelBaseValue).col(self.comboBaseValue) grid.row() grid.col(self.labelMultiplier).col(self.spinMultiplier) grid.row() grid.col(Tc2Config.VStretch()) grid.row() grid.col(Tc2Config.HLine(self), colspan=2) grid.row() grid.col(self.buttonBox, colspan=2) # adjust tab order Tc2Config.setTabOrder( self, self.buttonBox, self.hotkeyBox, self.editHotkeyName, self.comboBaseValue, self.spinMultiplier, )
def layout(self): grid = Tc2Config.GridBox(self) grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.checkIsOn).col(Tc2Config.HStretch()) grid.row() grid.col(self.labelSpeed).col(self.spinSpeed).col(Tc2Config.HStretch()) grid.row() grid.col(self.labelPrecission).col(self.spinPrecission).col( Tc2Config.HStretch()) grid.row() grid.col(self.labelIncrement).col(self.spinIncrement).col( Tc2Config.HStretch()) grid.row() grid.col(self.checkRandomMode).col(Tc2Config.HStretch()) grid.row() grid.col(self.groupForegroundColor.label()).col( self.groupForegroundColor.colorButton()).col( self.groupForegroundColor.resetButton()) grid.row() grid.col(self.groupBackgroundColor.label()).col( self.groupBackgroundColor.colorButton()).col( self.groupBackgroundColor.resetButton()) grid.row() grid.col(Tc2Config.VStretch()) grid.row() grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.buttonBox, colspan=3)
def layout(self): grid = Tc2Config.GridBox(self) grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.labelBackup).col(self.buttonBackup).col( Tc2Config.HStretch()) grid.row() grid.col(self.groupGuiStyle.label()).col( self.groupGuiStyle.comboBox()).col( self.groupGuiStyle.resetButton()) grid.row() grid.col(self.groupGuiFont.label()).col( self.groupGuiFont.fontButton()).col( self.groupGuiFont.resetButton()) grid.row() grid.col(self.groupFixedFont.label()).col( self.groupFixedFont.fontButton()).col( self.groupFixedFont.resetButton()) grid.row() grid.col(self.groupSingleApplicationScope.label()).col( self.groupSingleApplicationScope.comboBox()).col( self.groupSingleApplicationScope.resetButton()) grid.row() grid.col(self.labelTabPosition).col(self.comboTabPosition).col( Tc2Config.HStretch()) grid.row() grid.col(self.labelToolBarPosition).col(self.comboToolBarPosition).col( Tc2Config.HStretch()) grid.row() grid.col(self.labelWebViewZoomSteps).col( self.spinWebViewZoomSteps).col(Tc2Config.HStretch()) grid.row() grid.col(self.checkAlternatingRowColors) grid.row() grid.col(self.checkChildItemIndicators) grid.row() grid.col(self.checkRestoreMousePosition) grid.row() grid.col(self.labelRoundBets).col(self.comboRoundBets).col( Tc2Config.HStretch()) grid.row() grid.col(Tc2Config.VStretch()) grid.row() grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.buttonBox, colspan=3)
def layout(self): grid = Tc2Config.GridBox(self) grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.checkAutoClosePopupNews) grid.row() grid.col(self.checkAutoCloseTourneyRegistrationBoxes) grid.row() grid.col(self.checkAutoCloseTableMessageBoxes) grid.row() grid.col(self.checkAutoCloselogin) grid.row() grid.col(self.checkMoveMouseToActiveTable) grid.row() grid.col(Tc2Config.VStretch()) grid.row() grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.buttonBox, colspan=3)
def layout(self): grid = Tc2Config.GridBox(self) grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.checkshowOnStartUp).col(Tc2Config.HStretch()) grid.row() grid.col(self.groupBackgroundColor.label()).col( self.groupBackgroundColor.colorButton()).col( self.groupBackgroundColor.resetButton()) grid.row() grid.col(self.labelBackgroundImage).col( self.buttonBackgroundImage).col(self.buttonBackgroundImageReset) grid.row() grid.col(self.checkAutoToggle).col(Tc2Config.HStretch()) grid.row() grid.col(self.labelAutoToggleTimeout).col(self.spinAutoToggleTimeout) grid.row() grid.col(Tc2Config.VStretch()) grid.row() grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.buttonBox, colspan=3)
def layout(self): grid = Tc2Config.GridBox(self) grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.labelProxyHostName).col(self.editProxyHostName).col( Tc2Config.HStretch()) grid.row() grid.col(self.labelProxyPort).col(self.spinProxyPort).col( Tc2Config.HStretch()) grid.row() grid.col(self.labelProxyUserName).col(self.editProxyUserName).col( Tc2Config.HStretch()) grid.row() grid.col(self.labelProxyPassword).col(self.editProxyPassword).col( Tc2Config.HStretch()) grid.row() grid.col(self.labelFetchTimeout).col(self.spinFetchTimeout).col( Tc2Config.HStretch()) grid.row() grid.col(Tc2Config.VStretch()) grid.row() grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.buttonBox, colspan=3)