Organization of GUIs

Lie Ryan lie.1296 at gmail.com
Thu Dec 3 09:38:00 EST 2009


On 12/4/2009 12:44 AM, Michael Mossey wrote:
> I have a question about typical organization of GUIs. I will be using
> PyQt.
>

Model-View-Controller (MVC) pattern.

Model - all the business logic lives in the model.
View - your GUI
Controller - Takes input

Controller notifies Model if there is user input; Model notifies View if 
there is an update in the model; View "notifies" user if there is an 
update in the model; User "notifies" controller of the changes wanted.

http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller



More information about the Python-list mailing list