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_()