ctdclient.view.View module¶
- class ctdclient.view.View.ViewMixin(*args, **kwargs)[source]¶
Bases:
object
This Mixin provides the link between Views and Controllers without the need of View Objects to hold Controller Objects and thereby fullfil encapsulation as specified in MVC.
- add_callback(key, method)[source]¶
Lets tkinter commands directly call a controller method, without owning the respective object. This method is exclusevely being used by the controller and allows the registration of a certain method to a certain keyword, upon which it will be called.