CLOCK APP KIVY

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

Will ChatGPT Replace Programmers?

   ChatGPT is an OpenAI-developed large language model that can understand and generate human language. It's built on the GPT architectu...