Python Tutorial - How to create a digital clock using python and tkinter - for beginners

Pubblicato il: 06 agosto 2021
sul canale di: RSAP4YOU
463
6

Hello everyone,
Today in this project i will tell you that how to make digital clock in python
aj ki is video mai hum baat karenge ki kaisa app digital clock for your desktop in python using tkinter
tkinter is best framework for developing GUI in python .
for any query in python related send me on instagram or Facebook.
Facebook :   / kumaramarjeet.raj.7  
Instagram :  / kumaramarje.  .
#digitalclock#python#RSAP4YOU


SOURCE CODE:
#import all the required libraries first
import sys
from tkinter import *
#import time library to obtain current time
import time

#create a function timing and variable current_time
def timing():
#display current hour,minute,seconds
current_time = time.strftime("%H : %M : %S")
#configure the clock
clock.config(text=current_time)
#clock will change after every 200 microseconds
clock.after(200,timing)

#Create a variable that will store our tkinter window
root=Tk()
#define size of the window
root.geometry("600x300")
#create a variable clock and store label
#First label will show time, second label will show hour:minute:second, third label will show the top digital clock
clock=Label(root,font=("times",60,"bold"),bg="purple")
clock.grid(row=2,column=2,pady=25,padx=100)
timing()

#create a variable for digital clock
digital=Label(root,text="Amarjeet Digital Clock",font="times 48 bold")
digital.grid(row=0,column=2)

nota=Label(root,text="hours minutes seconds",font="times 20 bold")
nota.grid(row=3,column=2)

root.mainloop()
AUTHOR : KUMAR AMARJEET RAJ
Are digital clocks better?

What is digital clock time?

What is digital clock and how it works?

What is the principle of digital clock?


In questa pagina del sito puoi guardare il video online Python Tutorial - How to create a digital clock using python and tkinter - for beginners della durata di ore minuti seconda in buona qualità , che l'utente ha caricato RSAP4YOU 06 agosto 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 463 volte e gli è piaciuto 6 spettatori. Buona visione!