Plz Answer Python Language Bulid Analog Clock Using Tkinter Clock Shows Current Time Needl Q37163604

plzanswer in python language. bulid an analog clock using tkinter inwhich clock shows current time and the needles also should bemoving. plz give screenshot of the code and documentation.thanks


Answer


# Import Module

# Math Module is used For Coordinates Calculation
# Time Module is used to get current time from the system

import math  
import time

try:
   import Tkinter
except:
   import tkinter as Tkinter

#class that contains main funcitonality of the program
class main(Tkinter.Tk):
   def __init__(self):
       Tkinter.Tk.__init__(self)
       self.x=150   # CenterPoint x
       self.y=150   # CenterPoint
       #length of the clock hands
       self.length=50  
      self.creating_all_function_trigger()

   # Call othe other functions
   def creating_all_function_trigger(self):
      self.create_canvas_for_shapes()
       self.creating_background_()
      

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.