[pygtk] How to organize my app?

Tobias Weber towb at celvina.de
Fri Jan 22 15:53:21 WST 2010


On 21.01.2010, at 23:14, middleofdreams at gmail.com wrote:

I think you're looking for the MVC pattern. You can read it up and do  
it on foot or use a framework like Kiwi.

> For example - I have main class in main file and I want to move  
> widgets (loading widgets from gladefile) into new file.

View

> Or signal handlers - how to move them into other file and do it right?

Controller

> self.gui.some_widget.show()


This is exactly how it'd look with http://sourceforge.net/apps/trac/pygtkmvc/wiki


More information about the pygtk mailing list