filmov
tv
How to code a temperature conversion app in Python | easy project | 2021

Показать описание
Follow me ↓ ↓
Reddit: @peacecubing
____________
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)
Reddit: @peacecubing
____________
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)