def On_Cancel(self,instance): """ call handler for abort """ cBasePopup.ClosePopup(self)
def ClosePopup(self): """ will be called by keyhandler, if esc has been pressed """ self.OnCancel(self) cBasePopup.ClosePopup(self)
def fktNO(self, *largs) -> None: """ handles pressing the no button """ cBasePopup.ClosePopup(self) if self.fktNo: return self.fktNo() return None
def fktYES(self, *largs) -> None: """ handles pressing the yes button """ cBasePopup.ClosePopup(self) if self.fktYes: return self.fktYes() return None
def On_Cancel(self, instance): """ Reacts to pressing the cancel button """ if self.oTextInput: self.oTextInput.focus = False cBasePopup.ClosePopup(self)
def On_Cancel(self, oMultiLineButton: cMultiLineButton) -> None: """ Reacts to pressing the cancel button """ if self.oTextInput: self.oTextInput.focus = False cBasePopup.ClosePopup(self)
def On_Cancel(self,oButton): """ call handler for abort """ Globals.oNotifications.UnRegisterNotification_ByHash(iHash=self.iHashStarted) Globals.oNotifications.UnRegisterNotification_ByHash(iHash=self.iHashEnded) Globals.oNotifications.UnRegisterNotification_ByHash(iHash=self.iHashFound) cBasePopup.ClosePopup(self)