Exemplo n.º 1
0
class WzrdPgDatosIntegrantes(QtGui.QWizardPage):
    
    def __init__(self, parent=None):
        super(WzrdPgDatosIntegrantes, self).__init__(parent)
        self.__initialize()
        pass
    
    def __initialize(self):
        self.ui = Ui_WzrdPgDatosIntegrantes()
        self.ui.setupUi(self)
        self.model = IntegrantesFamiliaModel()
        self.ui.tblVwFamiliares.setModel(self.model)
        self.movSplitterBottom()
        self.ui.tlBttnNuevo.toggled.connect(self.on_nuevoIntegrante_toggled)
        #self.ui.spltterSplitter.splitterMoved.connect(self.on_splitter_moved)
        
        
        
        
        pass
    
    def realoadIntegrantesFamiliaModel(self):
        
        pass
    
    def movSplitterTop(self):
        self.ui.spltterSplitter.moveSplitter (0, 1)
        pass
    
    def movSplitterBottom(self):
        self.ui.spltterSplitter.moveSplitter ((self.ui.spltterSplitter.getRange(1))[1], 1)
        pass
    
    def movSplitterMiddle(self):
        self.ui.spltterSplitter.moveSplitter ((self.ui.spltterSplitter.getRange(1))[1] / 2, 1)
        pass

    @QtCore.pyqtSlot(bool)
    def on_nuevoIntegrante_toggled(self, checked):
        """
        """
        logger.debug("on_nuevoIntegrante_toggled - checked: %s" % checked)
        #logger.debug( "Rango del splitter: %s, %s" % self.ui.spltterSplitter.getRange(1) )
        
        if checked :
            self.movSplitterTop()
        else :
            self.movSplitterBottom()
            
        
        
        pass
    
    @QtCore.pyqtSlot(int, int)
    def on_splitter_moved(self, pos, index):
        logger.debug("on_splitter_moved - pos: %s, index: %s" % (pos, index) )
        pass
Exemplo n.º 2
0
 def __initialize(self):
     self.ui = Ui_WzrdPgDatosIntegrantes()
     self.ui.setupUi(self)
     self.model = IntegrantesFamiliaModel()
     self.ui.tblVwFamiliares.setModel(self.model)
     self.movSplitterBottom()
     self.ui.tlBttnNuevo.toggled.connect(self.on_nuevoIntegrante_toggled)
     #self.ui.spltterSplitter.splitterMoved.connect(self.on_splitter_moved)
     
     
     
     
     pass