Add GUI
This commit is contained in:
16
controller/AppController.py
Normal file
16
controller/AppController.py
Normal 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()
|
||||
2
controller/IAppController.py
Normal file
2
controller/IAppController.py
Normal file
@@ -0,0 +1,2 @@
|
||||
class IAppController:
|
||||
pass
|
||||
2
controller/IMainWindowController.py
Normal file
2
controller/IMainWindowController.py
Normal file
@@ -0,0 +1,2 @@
|
||||
class IEventHandler:
|
||||
pass
|
||||
10
controller/MainWindowController.py
Normal file
10
controller/MainWindowController.py
Normal 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
|
||||
Reference in New Issue
Block a user