[pygtk] How to organize my app?

middleofdreams at gmail.com middleofdreams at gmail.com
Fri Jan 22 17:49:39 WST 2010


I forgot something like MVC exists
Is it hard to learn for example pygtkmvc and rebuild existing app (which is
written in chaos mode - everything everywhere)? In which point of my app I
should start? I'll give you the code... as messy as it is.

http://github.com/middleofdreams/pybber

comments are in polish but it doesn't really matter.

2010/1/22 Tobias Weber <towb at celvina.de>

> 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
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20100122/2ea56d78/attachment.htm 


More information about the pygtk mailing list