- from interface import Controller
- import Tkinter as tk
- from sccd.runtime.statecharts_core import Event
- from sccd.runtime.tkinter_eventloop import *
- from widget import Widget
- from modelverse import *
- window = tk.Tk()
- window.withdraw()
- controller = Controller(TkEventLoop(window))
- Widget.controller = controller
- controller.start()
- window.mainloop()
|