Hello Guys
This video is about how to make Age calculator with tkinter in python. So, hope you all are enjoying this video.
Have a great day!
THANKS FOR WATCHING THIS VIDEO !!
Here is the source code :-
from tkinter import *
from datetime import date
def calculator():
global result
result = str(entry.get())
today = date.today()
dob_data = result.split("/")
date1 = int(dob_data[0])
month = int(dob_data[1])
year = int(dob_data[2])
dob = date(year,month,date1)
numberOfDays = (today - dob).days
age = numberOfDays // 365
label=Label(root, text="Your age is " +str(age))
label.pack()
root = Tk()
root.geometry("300x300")
entry = Entry(root)
entry.pack()
button = Button(root, text="Age", command=calculator)
button.pack()
root.mainloop()
En esta página del sitio puede ver el video en línea How to make Age calculator with tkinter in python || Python tips and tricks😄|| @Single CODE de Duración hora minuto segunda en buena calidad , que subió el usuario Single CODE 20 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,376 veces y le gustó like a los espectadores. Disfruta viendo!