Follow me ↓ ↓
Instagram: https://bit.ly/3EzSSD7
Facebook: https://bit.ly/3Cwa1eV
Twitter: https://bit.ly/3o6Ze7h
Tumblr: / br2k7
Reddit: @peacecubing
____________
The code :
from tkinter import*
root=Tk()
var1=DoubleVar()
var2=DoubleVar()
label=Label(root,text='TEMPERATURE CONVERTER',font=('Arial',30))
label.pack(side=TOP)
label1=Label(root,text='Temperture in Celcius =',font=('Arial',25))
label1.place(x=200,y=200)
label2=Label(root,text='Temperture in Fahrenheit =',font=('Arial',25))
label2.place(x=200,y=300)
entry1=Entry(root,font=('Arial',25),textvariable=var1)
entry1.place(x=600,y=200)
label3=Label(root,font=('Arial',25))
label3.place(x=600,y=300)
def click1():
label3.config(text='' +str(var1.get() * 1.8 + 32)+ ' °F')
button1=Button(root,text='Convert',font=('Arial',25),command=click1)
button1.place(x=920,y=200)
label4=Label(root,text='Temperture in Fahrenheit =',font=('Arial',25))
label4.place(x=200,y=400)
label5=Label(root,text='Temperture in Celcius =',font=('Arial',25))
label5.place(x=200,y=500)
entry2=Entry(root,font=('Arial',25),textvariable=var2)
entry2.place(x=600,y=400)
label6=Label(root,font=('Arial',25))
label6.place(x=600,y=500)
def click2():
label6.config(text='' +str((var2.get()-32)/1.8)+ ' °C')
button2=Button(root,text='Convert',font=('Arial',25),command=click2)
button2.place(x=920,y=400)
root.mainloop()
On this page of the site you can watch the video online How to code a temperature conversion app in Python | easy project | 2021 with a duration of hours minute second in good quality, which was uploaded by the user BR Cuber 06 July 2021, share the link with friends and acquaintances, this video has already been watched 186 times on youtube and it was liked by 16 viewers. Enjoy your viewing!