From 995ed52dfeeb892a481bf5e02197d17146ccc82d Mon Sep 17 00:00:00 2001 From: Adam Jurkiewicz Pythonista Local Date: Fri, 19 Dec 2025 12:07:44 +0100 Subject: [PATCH] a --- dzien_05/gui/gui01.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dzien_05/gui/gui01.py b/dzien_05/gui/gui01.py index b761e53..1d4cbbb 100644 --- a/dzien_05/gui/gui01.py +++ b/dzien_05/gui/gui01.py @@ -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() \ No newline at end of file