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(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(self.labelVIPStatus).col(self.comboVIPStatus).col(Tc2Config.HStretch()) grid.row() grid.col(self.labelGameType).col(self.comboGameType).col(Tc2Config.HStretch()) grid.row() grid.col(self.labelCurrency).col(self.comboCurrency).col(Tc2Config.HStretch()) grid.row() grid.col(self.radioCash) grid.row() grid.col(self.radioFPPs) grid.row() grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.labelAmount).col(self.editAmount).col(Tc2Config.HStretch()) grid.row() grid.col(self.buttonCalculate).col(self.editResult).col(Tc2Config.HStretch()) grid.row() grid.col(Tc2Config.HLine(self), colspan=3) grid.row() grid.col(self.editCache, colspan=3) grid.row() grid.col(self.buttonClearCache) 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)) grid.row() grid.col(self.edit) grid.row() grid.col(Tc2Config.HLine(self)) grid.row() grid.col(self.buttonBox)
def layout(self): grid = Tc2Config.GridBox(self) grid.col(self.toolBar) grid.row() grid.col(self.splitterSettings) grid.row() grid.col(Tc2Config.HLine()) grid.row() grid.col(self.buttonBox) grid = Tc2Config.GridBox(self.frameSettings) grid.col(self.checkBoxChars).col(self.editChars) grid.row() grid.col(self.checkBoxGraylevel).col(self.spinGrayLevel) grid.row() grid.col(self.checkBoxDustSize).col(self.spinDustSize) grid.row() grid.col(self.checkBoxWordSpacing).col(self.spinWordSpacing) grid.row() grid.col(self.checkBoxCertainty).col(self.spinCertainty) grid.row() grid.col(Tc2Config.HLine(), colspan=2) grid.row() grid.col(self.checkBoxInvertImage) grid.row() grid.col(self.checkBoxAnalyzeLayout) grid.row() grid.col(self.checkBoxContextCorrection) grid.row() grid.col(self.checkBoxCompareUnknownChars) grid.row() grid.col(self.checkBoxDivideOverlappingChars) grid.row() grid.col(self.checkBoxPackChars) grid.row() grid.col(Tc2Config.HLine(), colspan=2) grid.row() grid.col(self.checkBoxOutputType).col(self.comboOutputType) grid.row() grid.col(self.checkBoxOutputPattern, colspan=2) grid.row() grid.col(self.editOutputPattern, colspan=2) self.restoreGeometry( Tc2Config.settingsValue(self.SettingsKeyGeometry, QtCore.QByteArray()).toByteArray()) self.splitterSettings.restoreState( Tc2Config.settingsValue(self.SettingsKeySplitterSettingsState, QtCore.QByteArray()).toByteArray() ) self.splitterImage.restoreState( Tc2Config.settingsValue(self.SettingsKeySplitterImageState, QtCore.QByteArray()).toByteArray() ) self.splitterOutput.restoreState( Tc2Config.settingsValue(self.SettingsKeySplitterOutputState, QtCore.QByteArray()).toByteArray() )
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(self.flopsterWidget) 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.flopEvalWidget) grid.row() grid.col(Tc2Config.HLine(self)) grid.row() grid.col(self.buttonBox)
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): #TODO: how to adjust tool bar position acc to SettingsGlobal? grid = Tc2Config.GridBox(self) grid.col(self.frameHelp) grid.row() grid.col(Tc2Config.HLine(self)) grid.row() grid.col(self.buttonBox)
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.addWidget(self.edit, 0, 0) n = 1 if self.labelPixmap is not None: grid.addWidget(self.labelPixmapName, 1, 0) grid.addWidget(self.labelPixmap, 2, 0) n = 3 grid.addWidget(Tc2Config.HLine(self), n + 1, 0) grid.addWidget(self.buttonBox, n + 2, 0)
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)