Пример #1
0
 def On_Cancel(self,instance):
     """ call handler for abort """
     cBasePopup.ClosePopup(self)
Пример #2
0
 def ClosePopup(self):
     """ will be called by keyhandler, if esc has been pressed """
     self.OnCancel(self)
     cBasePopup.ClosePopup(self)
Пример #3
0
 def fktNO(self, *largs) -> None:
     """ handles pressing the no button """
     cBasePopup.ClosePopup(self)
     if self.fktNo:
         return self.fktNo()
     return None
Пример #4
0
 def fktYES(self, *largs) -> None:
     """ handles pressing the yes button """
     cBasePopup.ClosePopup(self)
     if self.fktYes:
         return self.fktYes()
     return None
Пример #5
0
 def On_Cancel(self, instance):
     """ Reacts to pressing the cancel button """
     if self.oTextInput:
         self.oTextInput.focus = False
     cBasePopup.ClosePopup(self)
Пример #6
0
 def On_Cancel(self, oMultiLineButton: cMultiLineButton) -> None:
     """ Reacts to pressing the cancel button """
     if self.oTextInput:
         self.oTextInput.focus = False
     cBasePopup.ClosePopup(self)
Пример #7
0
 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)