fancy things I don’t care
parent
060b8e81d8
commit
4c9bdca77a
9
main.py
9
main.py
|
@ -103,7 +103,7 @@ class Window_Interaction_Handler:
|
||||||
warn("__window_interactions not empty upon destruction of Window_Interaction_Handler:\n"+str(self.__window_interactions))
|
warn("__window_interactions not empty upon destruction of Window_Interaction_Handler:\n"+str(self.__window_interactions))
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# PROGRAM START
|
# PROGRAM STARTUP
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# read configuration
|
# read configuration
|
||||||
|
@ -139,7 +139,8 @@ else:
|
||||||
warn("Failed to save initial config file.", is_exception=True)
|
warn("Failed to save initial config file.", is_exception=True)
|
||||||
dialog = tk.Tk()
|
dialog = tk.Tk()
|
||||||
dialog.title("Failed to save initial config file")
|
dialog.title("Failed to save initial config file")
|
||||||
ttk.Label(dialog, text="Failed to save the initial config file. The IDE can still start up, but it is likely that all changes to the configuration will be lost where they would be saved otherwise.").pack()
|
ttk.Label(dialog, text="Failed to save the initial config file.\n" +
|
||||||
|
"The IDE can still start up, but it is likely that all changes to the configuration will be lost where they would be saved otherwise.").pack()
|
||||||
ttk.Button(dialog, text="Continue", command=dialog.destroy).pack()
|
ttk.Button(dialog, text="Continue", command=dialog.destroy).pack()
|
||||||
dialog.resizable(0,0)
|
dialog.resizable(0,0)
|
||||||
dialog.mainloop()
|
dialog.mainloop()
|
||||||
|
@ -148,6 +149,10 @@ else:
|
||||||
# exit with success exit code anyway because this is not a program failure
|
# exit with success exit code anyway because this is not a program failure
|
||||||
sys.exit(EXIT_SUCCESS)
|
sys.exit(EXIT_SUCCESS)
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# PROGRAM MAIN WINDOW
|
||||||
|
################################################################################
|
||||||
|
|
||||||
main_window = tk.Tk()
|
main_window = tk.Tk()
|
||||||
main_window.geometry(get_configuration_value("window geometry"))
|
main_window.geometry(get_configuration_value("window geometry"))
|
||||||
main_window.mainloop()
|
main_window.mainloop()
|
||||||
|
|
Reference in New Issue