Environment mit der Config übergeben

This commit is contained in:
2024-01-31 13:44:18 +01:00
parent 82a84f9df0
commit 7dda641aed
4 changed files with 57 additions and 37 deletions
+3 -1
View File
@@ -87,6 +87,8 @@ def build_gui(model, configs):
app = App(root, configs)
controller = Controller(model, app)
controller.set_env(configs.get_env())
logic = GuiLogic(model, configs)
controller.add_logic(logic)
@@ -110,10 +112,10 @@ if __name__ == '__main__':
environment = Environment()
output_dir = environment.out_dir
configs = Configs(environment.cfg_dir)
configs.set_env(environment)
model = CadItem()
if args.demo:
model.set_env(environment)
model.from_json(demo_data)
build_gui(model, configs)