This commit is contained in:
2025-12-19 12:07:44 +01:00
parent 6bc3cef2fb
commit 995ed52dfe

View File

@@ -3,10 +3,12 @@ import FreeSimpleGUI as sg
# sg.theme('DarkAmber') # Add a touch of color # sg.theme('DarkAmber') # Add a touch of color
# All the stuff inside your window. # All the stuff inside your window.
layout = [ [sg.Text('Adam Jurkiewicz')], 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 2'), sg.InputText()],
[sg.Text('Enter something on Row XX'), sg.InputText()],
[sg.Button('Ok'), sg.Button('Przerwij'), sg.Button('HELP')] ] [sg.Button('Ok'), sg.Button('Przerwij'), sg.Button('HELP')] ]
# ZADANIE: # ZADANIE:
# dodaj przycik o nazwie SYSTEM, wtedy na ekranie ma być # dodaj przycisk o nazwie SYSTEM, wtedy na ekranie ma być
# print(sys.version) # print(sys.version)
# pamiętaj o imporcie sys .... # pamiętaj o imporcie sys ....
@@ -19,7 +21,12 @@ while True:
break break
if event == 'HELP': if event == 'HELP':
print("Pomoc dla ludu!!!") 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": if event == "Ok":
print('You entered ', values[0]) print('You entered ', values[2], values[3])
print(f"{values=}")
window.close() window.close()