Please if you like my content Please do not forget to support this channel on PayPal now for $1 only! Or less
import time
from kivy.app import App
from kivy.clock import Clock
from kivy.uix.label import Label
class Time(Label):
def update(self, *args):
self.text = time.strftime(str("%H:%M:%S"))
self.font_size = 40
class Watch_Clock(App):
def build(self):
clock = Time()
Clock.schedule_interval(clock.update,1)
return clock
Watch_Clock().run()
No comments:
Post a Comment