def __init__(self, name, widget, *args):
     GuiEvent.__init__(self, name, widget)
     self.interceptMethod(self.widget.stop_emission, EmissionStopIntercept)
     self.interceptMethod(self.widget.emit_stop_by_name, EmissionStopIntercept)
     self.interceptMethod(self.widget.get_toplevel().destroy, DestroyIntercept)
     self.stopEmissionMethod = None
     self.destroyMethod = None
Exemple #2
0
 def __init__(self, name, widget, *args):
     GuiEvent.__init__(self, name, widget)
     self.interceptMethod(self.widget.stop_emission, EmissionStopIntercept)
     self.interceptMethod(self.widget.emit_stop_by_name, EmissionStopIntercept)
     self.stopEmissionMethod = None
Exemple #3
0
 def shouldRecord(self, *args):
     return GuiEvent.shouldRecord(self, *args) and self.widget.get_property("visible")
Exemple #4
0
 def __init__(self, name, widget, *args):
     GuiEvent.__init__(self, name, widget)
     self.interceptMethod(self.widget.stop_emission, EmissionStopIntercept)
     self.interceptMethod(self.widget.emit_stop_by_name,
                          EmissionStopIntercept)
     self.stopEmissionMethod = None
Exemple #5
0
 def shouldRecord(self, *args):
     return GuiEvent.shouldRecord(
         self, *args) and self.widget.get_property("visible")