This commit is contained in:
lsw
2022-02-02 01:43:38 +01:00
parent 23b4628804
commit c421933780
9 changed files with 306 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
from controller.IAppController import *
class AppController(IAppController):
def __init__(self, parser):
self.parser = parser
self.window_controller = None
def set_window_controller(self, window_controller):
self.window_controller = window_controller
def on_quit(self):
pass
# if self.connection.is_connected:
# self.connection.send_message(self.parser.buildEXIT())
# if self.client_thread != None:
# self.client_thread.stop_loop()

View File

@@ -0,0 +1,2 @@
class IAppController:
pass

View File

@@ -0,0 +1,2 @@
class IEventHandler:
pass

View File

@@ -0,0 +1,10 @@
from controller.IMainWindowController import *
class MainWindowController(IEventHandler):
def __init__(self, parser, app_controller):
self.parser = parser
self.app_controller = app_controller
def on_quit(self):
self.app_controller.on_quit()
pass