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

Drawing App For Kivy

  Below here is the source code for Drawing Application for kivy. Please if you like this content.  Don't forget to Subscribe to my YouT...