removed extra debug window
parent
603acb60f6
commit
ff31e47c7e
|
@ -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
|
4
main.py
4
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
|
||||
|
|
Reference in New Issue