bauen der widgets in eigene lib namens gui ausgelagert. Umbau von test_gui in richtung Applikation in CreoMigrateGui
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user