Beispiel #1
0
 def _connect_signals(self):
     # connect siSelectionChange signal
     signals.siSelectionChange.connect(self.reload_clicked)
     bState = self.ui.autoreload_checkBox.isChecked()
     muteSIEvent("siSelectionChange", not bState)
     # connect spinbox signal
     for spinbox in filter(lambda x: "_spinBox" in x, self.DEFAULT_VALUES.keys()):
         widget = getattr(self, spinbox)
         QtCore.QObject.connect(widget, QtCore.SIGNAL("editingFinished()"),
                                lambda y=spinbox: self.spinbox_changed(y))
    def __init__( self, parent ):
        ExampleDialog.__init__( self,parent )
        self.setWindowTitle( "Signal/Slot Example" )
        self.lineedit.setText( "" )

        # module containing sievents mapped to pyqtsignals
        from sisignals import signals, muteSIEvent
        
        # connect the siActivate signal to the activate slot
        signals.siActivate.connect( self.activate )
        muteSIEvent( "siActivate", False )
        
        # connect the siPassChange signal to the passChanged slot
        signals.siPassChange.connect( self.passChanged )
        muteSIEvent( "siPassChange", False )
    def __init__(self, parent):
        ExampleDialog.__init__(self, parent)
        self.setWindowTitle("Signal/Slot Example")
        self.lineedit.setText("")

        # module containing sievents mapped to pyqtsignals
        from sisignals import signals, muteSIEvent

        # connect the siActivate signal to the activate slot
        signals.siActivate.connect(self.activate)
        muteSIEvent("siActivate", False)

        # connect the siPassChange signal to the passChanged slot
        signals.siPassChange.connect(self.passChanged)
        muteSIEvent("siPassChange", False)
Beispiel #4
0
 def autoreload_changed(self, state):
     muteSIEvent("siSelectionChange", not state)
Beispiel #5
0
 def closeEvent(self, event):
     muteSIEvent("siSelectionChange", True)
     self.close()