Newbie elementary question

rainer2207 at my-deja.com rainer2207 at my-deja.com
Sun Aug 29 11:52:56 CEST 1999


Can someone please explain what "self" and
"master" are?

eg.
At the moment I have

class Interface:
      def __init__(self, master):
            ....
            ....

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

I'm assuming that master is the root window and
self is the instance name of the window in the
class. But I've also seen master=None. Can
someone please explain this?



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