Example #1
0
class WPEspecies(QtGui.QWizardPage):
    def __init__(self, parent=None):
        '''Wizard page '''
        QtGui.QWidget.__init__(self, parent) 
        self.uiW = Ui_WizardPageEspecies()#construtor
        self.uiW.setupUi(self)
        
        QtCore.QObject.connect(self.uiW.rbUMAespecie, 
                             QtCore.SIGNAL("toggled(bool)"), 
                             self, QtCore.SIGNAL("completeChanged()"))

        QtCore.QObject.connect(self.uiW.rbNespecies,
                               QtCore.SIGNAL("toggled(bool)"), 
                                self, QtCore.SIGNAL("completeChanged()")) 
    def nextId(self):
        '''Method that goes to the next or previous window in the Wizard'''
        if self.uiW.rbUMAespecie.isChecked() == True: #checks if the radio button was clicked
       
             return config.pageIDs["WPPopulacoes"]#go to next page
         
        elif self.uiW.rbNespecies.isChecked() == True: 
        

             print u"VocĂȘ escolheu N espĂ©cies"
         
             return config.pageIDs["WPPredacaoCompeticao"]
 
        else:
            return 0
Example #2
0
    def __init__(self, parent=None):
        '''Wizard page '''
        QtGui.QWidget.__init__(self, parent) 
        self.uiW = Ui_WizardPageEspecies()#construtor
        self.uiW.setupUi(self)
        
        QtCore.QObject.connect(self.uiW.rbUMAespecie, 
                             QtCore.SIGNAL("toggled(bool)"), 
                             self, QtCore.SIGNAL("completeChanged()"))

        QtCore.QObject.connect(self.uiW.rbNespecies,
                               QtCore.SIGNAL("toggled(bool)"), 
                                self, QtCore.SIGNAL("completeChanged()"))