From ff31e47c7e4fefb441f704b1bb1d4298fe9df661 Mon Sep 17 00:00:00 2001 From: Milan Suman Date: Sun, 20 Mar 2022 14:48:02 +0530 Subject: [PATCH] removed extra debug window --- gui_helper.py | 18 +----------------- main.py | 4 ---- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/gui_helper.py b/gui_helper.py index f9f2b73..c4c1063 100644 --- a/gui_helper.py +++ b/gui_helper.py @@ -65,20 +65,4 @@ menu_structure = { } } -#FIXME: come up with a way to uniquely declare separators so they don't become the same element of a dict - -def build_menu(structure_dict, menu): - for entry in structure_dict: - if structure_dict[entry]==None: - if entry==None: - menu.add_separator() - else: - menu.add_command(label=entry) - menu.entryconfig(entry, state="disabled") - if isinstance(structure_dict[entry], dict): - submenu = tk.Menu(menu, tearoff=False) - build_menu(structure_dict[entry], submenu) - menu.add_cascade(label=entry, menu=submenu) - if callable(structure_dict[entry]): - menu.add_command(label=entry, command=structure_dict[entry]) - +#FIXME: come up with a way to uniquely declare separators so they don't become the same element of a dict \ No newline at end of file diff --git a/main.py b/main.py index 70f34a2..6eaecac 100644 --- a/main.py +++ b/main.py @@ -29,14 +29,10 @@ configuration = Config(configuration_file_path, default_configuration) # It seems like opening multiple instances already works as intended main_window = gui_handler.Window() -main_window2 = gui_handler.Window() main_window.set_title("Concorde IDE") -main_window2.set_title("Another window") main_window.set_size(configuration.get_configuration_value("window size")["x"], configuration.get_configuration_value("window size")["y"]) -main_window2.set_size(400, 500) main_window.update_menus(gui_helper.menu_structure) -main_window2.update_menus(gui_helper.menu_structure) #TODO: get resolution of main window on exit and save it back to the configuration