On this example it will be shown how to modularize your code, in a in MVC way.
Person.py
class Person(object):
...People.py
class People(object):
...PersonWindow.py
class PersonWindow(Person, BaseWidget):
...Note: Test the window by executing the file.
PeopleWindow.py
class PeopleWindow(People, BaseWidget):
...4. Implement the module that will give the Main Menu and the options save and load to the application.
AddMenuFuntionality.py
class AddMenuFuntionality(object):
...5. Add the AddMenuFuntionality module to the PeopleWindow application, and the new functionalities will be added.
PeopleWindow.py
class PeopleWindow(AddMenuFuntionality, People, BaseWidget):
...