def close(self, info, is_ok=True): ## This happens when you click on the top right cross confirmation = message(message='Are you sure to close the window?', title='Warning!',buttons=['OK','Cancel']) if confirmation is True: return True else: return False
def _fire_event_fired(): message("Button clicked!")
def _button_clicked_message(self, event): message("Button clicked!")