コード例 #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
ファイル: RaiseQuestion.py プロジェクト: thica/ORCA-Remote
 def fktNO(self, *largs) -> None:
     """ handles pressing the no button """
     cBasePopup.ClosePopup(self)
     if self.fktNo:
         return self.fktNo()
     return None
コード例 #4
0
ファイル: RaiseQuestion.py プロジェクト: thica/ORCA-Remote
 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
ファイル: InputKeyboard.py プロジェクト: thica/ORCA-Remote
 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
ファイル: Discover.py プロジェクト: thica/ORCA-Remote
 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)