Il giorno gio, 21/01/2010 alle 23.43 +0100, Pietro Battiston ha scritto: > Il giorno gio, 21/01/2010 alle 23.14 +0100, [email protected] ha > scritto: > > 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). > > "If you don't want it into the same file of the main class, you > certainly don't want it into the main class" is a rule for which I'm not > able to see any exception.
Wait, just forget that. Your problem is obviously not that you want the _code_ in your main class, but that you want another object as a member of your main class. Which is perfectly fine. Pietro _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
