Stopwatch in kivy using Clock object
This post is about the development of stopwatch in kivy using the clock object of kivy. >>> Basically, clock object is about scheduling of intervals after specific time (time should be in seconds) and we can schedule it for once only and we can unschedule it whenever we want. Here is the code with detailed comments 👇👇👇👇👇:- from kivy.base import runTouchApp from kivy.lang import Builder from kivy.clock import Clock from kivy.config import Config from kivy.uix.screenmanager import Screen, ScreenManager #setting up the size of window Config.set( 'graphics' , 'resizable' , True ) Config.set( 'graphics' , 'width' , 350 ) Config.set( 'graphics' , 'height' , 300 ) # global variables for time msec = 0 mmin = 0 mhr = 0 class Stopwatch ( Screen ): def start_func ( self , tim ): global event # event function is to check the seconds and convert it into minutes and then m