Advertisement
jevixlugya

Untitled

Apr 17th, 2023
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. class SplashScreen(Screen):
  2.  
  3.     i=0
  4.     def on_enter(self,*args):
  5.         try:
  6.            self.i +=5
  7.            self.ids.progress.value=self.i
  8.         except:
  9.             Clock.unschedule(self.on_enter)
  10.         else:
  11.             pass
  12.         finally:
  13.             Clock.schedule_interval(self.on_enter,2)
  14.             if self.i==100:
  15.                 self.manager.current='home'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement