Sorry for not directly replying your question, but (if you have the
interest) I would recommend reading up about object oriented design
and design patterns. Code organization is an important aspect of
controlling complexity.

http://en.wikipedia.org/wiki/GRASP_%28Object_Oriented_Design%29
http://en.wikipedia.org/wiki/Solid_%28Object_Oriented_Design%29
http://en.wikipedia.org/wiki/Code_smell
http://c2.com/cgi/wiki?CodeSmell

After you grasp the concepts, by reading others' code you can learn
lots of tricks.

Regards,

Tomeu

On Thu, Jan 21, 2010 at 23:14, [email protected]
<[email protected]> wrote:
> Hi,
> I don't have experience in creating big apps. I want to know how to split
> app into files. For example - I have main class in main file and I want to
> move widgets (loading widgets from gladefile) into new file. It should be in
> the mainclass i think.. but i can't import something inside class (it works
> but it's not proper). Or signal handlers - how to move them into other file
> and do it right? Another thing is i have some (not main) class, but it
> should interact with gui (some changes like showing widgets etc). It's
> assigned in mainclass and constructor of it looks like this:
> __init__(gui):
> self.gui=gui
> and then.. in functions of this class I can change for example
> self.gui.some_widget.show()
> And again.. I don't think it's proper method for doing this.
> Some tips, please?
>
>
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>



-- 
«Sugar Labs is anyone who participates in improving and using Sugar.
What Sugar Labs does is determined by the participants.» - David
Farning
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to