[pygtk] Passing self.wTree to other classes? Good Idea? - Continued
Riley Porter
rileyporter at gmail.com
Fri Jan 23 12:44:46 WST 2009
Sorry, Pressed send by accident. Continuing.
I sent en example of my main.py file.. that initialized other classes in
other files and just passed the self.wTree to these classes..
Here is an example of my other class that is getting the wTree object passed
to it.
class Database_Settings:
def __init__(self,wTree): #The main gtk wTree was passed from the
main (REQUIRED)
self.wTree = wTree
More information about the pygtk
mailing list