From 2bda4b49b5a99e5d536f1228d40b2f265fad68f5 Mon Sep 17 00:00:00 2001 From: oleting Date: Sun, 27 Dec 2020 16:15:03 +0100 Subject: [PATCH] + update gitignore and GUI WIP --- .gitignore | 3 ++- .vscode/launch.json | 2 +- gui/gui.py | 10 +++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c86c21e..8fe1725 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ res/input/* debug.py build/ run.spec -dist/ \ No newline at end of file +dist/ +.vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json index e80f071..1ded7e8 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,7 @@ "name": "Python: Aktuelle Datei", "type": "python", "request": "launch", - "program": "debug.py", + "program": "run.py", "console": "integratedTerminal" } ] diff --git a/gui/gui.py b/gui/gui.py index d424382..cf7feab 100644 --- a/gui/gui.py +++ b/gui/gui.py @@ -57,7 +57,12 @@ class Gui: logging.debug('set diagramm_viewer_column GUI') buttons_column = [ + [ + sg.Text('Output Folder'), + sg.In(size=(1, 1), enable_events=True, key="-FONT-"), + sg.FileBrowse(file_types=(('Tif', '*.tif'), ('All Files', '*.*')), key='-NEW FONT-')], [sg.Button(button_text='Create Image', key='-CREATE-')], + # * fun feature [sg.Button(button_text='Donate', key='-DONATE-')], ] @@ -114,7 +119,7 @@ class Gui: folder = values['-JAVA FOLDER-'] window['-JAVA FOLDER-'].update(values['-JAVA FILE-']) - elif event == '-CREATE-': + if event == '-CREATE-': logging.debug(('event = ' + str(event) + 'values = ' + str(values))) try: @@ -166,4 +171,7 @@ class Gui: except: pass + if event == '-NEW FONT-': + print(values['-NEW FONT-']) + window.close()