def call(ref): widget = ref() if widget: widget.idleevent() else: print "Idle ref died!" return bool(widget)
def call(ref): widget = ref() if widget: widget.idleevent(event) else: print "Idle ref died!" return bool(widget)