Beispiel #1
0
 def enterLeaveToPayDialog(self):
     if self.leaveToPayDialog == None:
         self.leaveToPayDialog = LeaveToPayDialog.LeaveToPayDialog(
             self.paidNoParentPassword)
         self.leaveToPayDialog.setCancel(self.__handleLeaveToPayCancel)
     self.leaveToPayDialog.show()
     return
Beispiel #2
0
 def __handlePay(self):
     if base.cr.isWebPlayToken() or __dev__:
         if self.leaveDialog == None:
             self.notify.debug('making LTP')
             self.leaveDialog = LeaveToPayDialog.LeaveToPayDialog(0, doneFunc=self.doneFunc)
         self.notify.debug('showing LTP')
         self.leaveDialog.show()
     else:
         self.notify.error('You should not have a TeaserPanel without a PlayToken')
     return
Beispiel #3
0
 def enterLeaveToPayDialog(self):
     """
     Tell the user that we will exit the 3D client and take
     them to a web page.
     """
     assert self.notify.debugStateCall(self)
     if self.leaveToPayDialog == None:
         self.leaveToPayDialog = LeaveToPayDialog.LeaveToPayDialog(
             self.paidNoParentPassword)
         self.leaveToPayDialog.setCancel(self.__handleLeaveToPayCancel)
     self.leaveToPayDialog.show()