Build Temperature Converter App using python tkinter

preview_player
Показать описание
Build a temperature converter app using python tkinter
tkinter is a package that already providing in python when you install python so you didn't need to install tkinter

Here is the code:

from tkinter import*
root=Tk()
var1=DoubleVar()
var2=DoubleVar()

label=Label(root,text='TEMPERATURE CONVERTER',font=('Arial',30))

label1=Label(root,text='Temperture in Celcius =',font=('Arial',25))

label2=Label(root,text='Temperture in Fahrenheit =',font=('Arial',25))

entry1=Entry(root,font=('Arial',25),textvariable=var1)

label3=Label(root,font=('Arial',25))

def click1():

button1=Button(root,text='Convert',font=('Arial',25),command=click1)

label4=Label(root,text='Temperture in Fahrenheit =',font=('Arial',25))
label5=Label(root,text='Temperture in Celcius =',font=('Arial',25))

entry2=Entry(root,font=('Arial',25),textvariable=var2)
label6=Label(root,font=('Arial',25))

def click2():
button2=Button(root,text='Convert',font=('Arial',25),command=click2)

please subscribe this channel for support❤
Have a nice day🖐
Рекомендации по теме
Комментарии
Автор

Good job My younger brother GBU Always

esperancadacosta
Автор

Hyy i am doing this code in my phone, the interface/screen is really big, wt i should do now?

LOLLIFEOFLISA-cj
welcome to shbcf.ru