Newbie elementary question (please help!!!)

rainer2207 at my-deja.com rainer2207 at my-deja.com
Sun Aug 29 05:52:56 EDT 1999


At the moment I have:

class Interface:

      def __init__(self, master):

            ....
            ....

root = Tk()
inter = Interface(root)
root.mainloop()

Can someone please explain to me what 'self' and
'master' are? I'm assuming master is the root
window while self is the instance name of the root
window in this class. I've also seen master=None
can someone explain this to me?


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list