ctdclient.controller.Controller module

class ctdclient.controller.Controller.Controller(configuration, model, view)[source]

Bases: object

Controller in the spirit of the MVC model. Coordinates between the views and models. Holds instances of the root window and of every model class. Features methods that correspond to one individual user interaction with the GUI.

register_callback(key, method)[source]

Registers the other controllers methods to their respective actions in the view objects. Those can then be called from the views without them holding an instance of this class.

register_error_message()[source]