Environment mit der Config übergeben
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user