From 30460df9990531387a0f5111e1d13ec7e2e557bd Mon Sep 17 00:00:00 2001 From: oleting Date: Sun, 27 Dec 2020 17:28:36 +0100 Subject: [PATCH] + autosize --- gui/gui.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gui/gui.py b/gui/gui.py index 2e5d862..091f09f 100644 --- a/gui/gui.py +++ b/gui/gui.py @@ -54,7 +54,7 @@ class Gui: diagramm_viewer_column = [ [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-')], ] logging.debug('set diagramm_viewer_column GUI') @@ -96,8 +96,9 @@ class Gui: def show_gui(self, window: sg.Window): 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: event, values = window.read() @@ -150,7 +151,8 @@ class Gui: fnames = output(values) 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: logging.error(