Skip to content

Latest commit

 

History

History
 
 

README.md

Code organization example

On this example it will be shown how to modularize your code, in a in MVC way.

1. Implement the model.

Person.py

class Person(object):
	...

People.py

class People(object):
	...

2. Implement the GUI to manage ther Person model.

PersonWindow.py

class PersonWindow(Person, BaseWidget):
	...

Note: Test the window by executing the file.

3. Implement the GUI to manage ther People model.

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):
	...