Latest updates from Tony

This commit is contained in:
MikeTheWatchGuy 2018-11-13 10:33:55 -05:00
parent 3b63c8213c
commit b5e001dabc
93 changed files with 2579 additions and 52 deletions

View file

@ -1,33 +0,0 @@
#PySimple examples (v 3.8)
#Tony Crewe
#Sep 2018
import PySimpleGUI as sg
#layout, Text, Input,button on line below
layout = [
[sg.Text('Celcius'), sg.InputText()],
[sg.Submit()],
]
#setup window with Title
window = sg.Window('Temperature Converter').Layout(layout)
#get value (part of a list)
button, value = window.Read()
#convert and create string
fahrenheit = round(9/5*float(value[0]) +32, 1)
result = 'Temperature in Fahrenheit is: ' + str(fahrenheit)
#display in Popup
sg.Popup('Result', result)