2022-02-14 13:04:51 +01:00
|
|
|
#!/usr/bin/python3
|
2022-02-15 20:03:45 +01:00
|
|
|
import os
|
2022-02-15 20:38:33 +01:00
|
|
|
import gui_helper
|
2022-03-19 06:08:38 +01:00
|
|
|
import gui_handler
|
2022-02-15 20:38:33 +01:00
|
|
|
from config import Config
|
2022-02-14 13:04:51 +01:00
|
|
|
|
2022-02-14 13:18:51 +01:00
|
|
|
################################################################################
|
2022-02-15 20:03:45 +01:00
|
|
|
# CONSTANTS
|
2022-02-14 13:18:51 +01:00
|
|
|
################################################################################
|
|
|
|
|
2022-02-14 14:04:45 +01:00
|
|
|
default_configuration = {
|
|
|
|
"window geometry": "640x480"
|
|
|
|
}
|
2022-02-15 20:03:45 +01:00
|
|
|
configuration_file_path = os.path.join(os.path.expanduser("~"), "some_ide_config.json")
|
2022-02-14 13:04:51 +01:00
|
|
|
|
2022-02-14 13:18:51 +01:00
|
|
|
################################################################################
|
2022-02-14 23:58:48 +01:00
|
|
|
# PROGRAM STARTUP
|
2022-02-14 13:18:51 +01:00
|
|
|
################################################################################
|
2022-02-14 13:04:51 +01:00
|
|
|
|
2022-02-15 20:38:33 +01:00
|
|
|
configuration = Config(configuration_file_path, default_configuration)
|
2022-02-14 13:04:51 +01:00
|
|
|
|
2022-02-14 23:58:48 +01:00
|
|
|
################################################################################
|
|
|
|
# PROGRAM MAIN WINDOW
|
|
|
|
################################################################################
|
|
|
|
|
2022-03-19 06:08:38 +01:00
|
|
|
main_window = gui_handler.window()
|
|
|
|
main_window.set_title("Concorde IDE")
|
|
|
|
main_window.set_geometry(configuration.get_configuration_value("window geometry"))
|
2022-02-14 23:59:25 +01:00
|
|
|
|
2022-03-19 06:08:38 +01:00
|
|
|
main_window.update_menus(gui_helper.menu_structure)
|