def close_app(self): if not self.cancel: ny = popup_menu( [LABELS.loc.gm_no, LABELS.loc.gm_yes], LABELS.loc.cm_pmenu_updt_cmt) if ny is None: return if ny == 0: self.cancel = True Dialog.close_app(self)
def close_app(self): if not self.cancel: yns = popup_menu([LABELS.loc.gm_yes, LABELS.loc.gm_no, LABELS.loc.pt_list_save_it], LABELS.loc.pt_pmenu_send_post) if yns is None: return if yns == 1: self.cancel = True self.save = False elif yns == 2: self.cancel = True self.save = True else: self.cancel = False self.save = False Dialog.close_app(self)