bauen der widgets in eigene lib namens gui ausgelagert. Umbau von test_gui in richtung Applikation in CreoMigrateGui

This commit is contained in:
2024-01-17 12:03:58 +01:00
parent b9e69acca9
commit b4eda08674
5 changed files with 392 additions and 23 deletions
+3 -1
View File
@@ -1,7 +1,7 @@
import tkinter as tk
from caditem import CadItem
from CreoMigrateGui import App
from controller import Controller
from controller import Controller, GuiLogic
json_str = """
{
@@ -69,6 +69,8 @@ model.from_json(json_str)
root = tk.Tk()
app = App(root)
controller = Controller(model, app)
logic = GuiLogic()
controller.add_logic(logic)
# um ohne Observer pattern auch Rückmeldungen geben zu können
app.set_controller(controller)
model.set_controller(controller)