a
This commit is contained in:
@@ -3,10 +3,12 @@ import FreeSimpleGUI as sg
|
||||
# sg.theme('DarkAmber') # Add a touch of color
|
||||
# All the stuff inside your window.
|
||||
layout = [ [sg.Text('Adam Jurkiewicz')],
|
||||
[sg.Radio("Wybór A", "R01", default=True), sg.Radio("Wybór B", "R01")],
|
||||
[sg.Text('Enter something on Row 2'), sg.InputText()],
|
||||
[sg.Text('Enter something on Row XX'), sg.InputText()],
|
||||
[sg.Button('Ok'), sg.Button('Przerwij'), sg.Button('HELP')] ]
|
||||
# ZADANIE:
|
||||
# dodaj przycik o nazwie SYSTEM, wtedy na ekranie ma być
|
||||
# dodaj przycisk o nazwie SYSTEM, wtedy na ekranie ma być
|
||||
# print(sys.version)
|
||||
# pamiętaj o imporcie sys ....
|
||||
|
||||
@@ -19,7 +21,12 @@ while True:
|
||||
break
|
||||
if event == 'HELP':
|
||||
print("Pomoc dla ludu!!!")
|
||||
plik = sg.popup_get_file('Please enter a file name')
|
||||
sg.popup('Results', 'The value from PopupGetText', plik)
|
||||
|
||||
if event == "Ok":
|
||||
print('You entered ', values[0])
|
||||
print('You entered ', values[2], values[3])
|
||||
|
||||
print(f"{values=}")
|
||||
|
||||
window.close()
|
||||
Reference in New Issue
Block a user