Module ui.control
Controller base classes
Expand source code
"""
Controller base classes
"""
class Controller: # pylint: disable=too-few-public-methods
"""
Sets the main structure for all UI Controllers
"""
def __init__(self, view):
"""
Every controller as a view attached
:param view: TkinterWindow or TkinterFrame
"""
self.view = view
def show(self):
"""
Controls presentation
By default calls tkinter.mainloop()
:return: None
"""
self.view.mainloop()
Sub-modules
ui.control.change_requests
-
Controller for Change Requests admin window
ui.control.database
-
Main Controller of application
ui.control.login
-
Login Controller class
Classes
class Controller (view)
-
Sets the main structure for all UI Controllers
Every controller as a view attached :param view: TkinterWindow or TkinterFrame
Expand source code
class Controller: # pylint: disable=too-few-public-methods """ Sets the main structure for all UI Controllers """ def __init__(self, view): """ Every controller as a view attached :param view: TkinterWindow or TkinterFrame """ self.view = view def show(self): """ Controls presentation By default calls tkinter.mainloop() :return: None """ self.view.mainloop()
Subclasses
Methods
def show(self)
-
Controls presentation
By default calls tkinter.mainloop() :return: None
Expand source code
def show(self): """ Controls presentation By default calls tkinter.mainloop() :return: None """ self.view.mainloop()