This commit is contained in:
weckyy702
2020-12-27 17:34:01 +01:00

View File

@@ -54,7 +54,7 @@ class Gui:
diagramm_viewer_column = [ diagramm_viewer_column = [
[sg.Text("Choose your Code for preview. ", size=(100, 10))], [sg.Text("Choose your Code for preview. ", size=(100, 10))],
[sg.Text(size=(40, 1), key="-TOUT-")], [sg.Text(key="-TOUT-", auto_size_text=True)],
[sg.Image(key='-IMAGE-')], [sg.Image(key='-IMAGE-')],
] ]
logging.debug('set diagramm_viewer_column GUI') logging.debug('set diagramm_viewer_column GUI')
@@ -97,7 +97,8 @@ class Gui:
font_filepath = None font_filepath = None
sg.popup('The Interpreter is WIP and cannot interpret classes or function definitions as those do not exist in Nass-Shneidermann Diagrams. A fix is in the making.', auto_close=True, auto_close_duration=5) sg.popup('The Interpreter is WIP and cannot interpret classes or function definitions as those do not exist in Nass-Shneidermann Diagrams. A fix is in the making.',
auto_close=True, auto_close_duration=5)
while True: while True:
event, values = window.read() event, values = window.read()
@@ -150,7 +151,8 @@ class Gui:
fnames = output(values) fnames = output(values)
window['-OUTPUT FILE LIST-'].update(fnames) window['-OUTPUT FILE LIST-'].update(fnames)
sg.popup_annoying('Successful created!', title='Created', auto_close_duration=2, auto_close=True, text_color='green') sg.popup_annoying('Successful created!', title='Created',
auto_close_duration=2, auto_close=True, text_color='green')
except JavaSyntaxError as JsE: except JavaSyntaxError as JsE:
logging.error( logging.error(