예제 #1
0
파일: login.py 프로젝트: yahyakesenek/Book
 def getUniq(self,req,dt):
     data=json.loads(dt.decode("utf-8")) if not isinstance(dt,dict) else dt
     if data["uniq"]=="not_yet_set":
         return
     if data["uniq"]:
         self.uniq=data["uniq"]
         Clock.unschedule(self.checkUniq)
         Clock.schedule_interval(self.listenMesage, 4)
예제 #2
0
파일: login.py 프로젝트: yahyakesenek/Book
 def startClock(self):
     Clock.schedule_interval(self.checkUniq,1)
예제 #3
0
파일: login.py 프로젝트: yahyakesenek/Book
 def stopListenMsg(self):
     self.uniq=None
     Clock.unschedule(self.listenMesage)
예제 #4
0
 def delete_clock(self, touch):
     try:
         Clock.unschedule(touch.ud['event'])
     except KeyError:
         pass
     self.long_press_clock = None
예제 #5
0
 def create_clock(self, touch):
     function = partial(self.menu, touch)
     self.long_press_clock = Clock.schedule_once(function, 2)
     touch.ud['event'] = function  # So we can unschedule it if the button is pressed early
예제 #6
0
 def delete_clock(self, touch):
     try:
         Clock.unschedule(touch.ud['event'])
     except KeyError:
         pass
     self.long_press_clock = None
예제 #7
0
 def create_clock(self, touch):
     function = partial(self.menu, touch)
     self.long_press_clock = Clock.schedule_once(function, 2)
     touch.ud[
         'event'] = function  # So we can unschedule it if the button is pressed early