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
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
def shouldRecord(self, *args): return GuiEvent.shouldRecord(self, *args) and self.widget.get_property("visible")
def shouldRecord(self, *args): return GuiEvent.shouldRecord( self, *args) and self.widget.get_property("visible")