+ update gitignore and GUI WIP

This commit is contained in:
oleting
2020-12-27 16:15:03 +01:00
parent 2e70191b04
commit 2bda4b49b5
3 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@@ -9,3 +9,4 @@ debug.py
build/
run.spec
dist/
.vscode/launch.json

2
.vscode/launch.json vendored
View File

@@ -8,7 +8,7 @@
"name": "Python: Aktuelle Datei",
"type": "python",
"request": "launch",
"program": "debug.py",
"program": "run.py",
"console": "integratedTerminal"
}
]

View File

@@ -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()