[Tutor] Tkinter class member question
Sharriff Aina
nhytro-python@web.de
Sun, 21 Oct 2001 23:27:29 +0200
I=B4m still trying to know how to encompass my tkinter widgets and sciots in=
classes.
Given:
#### code start
class Mydialog:
....def =5Finit=5F(self, master):
........self.top=3DTkinter.Toplevel(master)
........self.name=3DTkinter.StringVar()
........entry =3DTkinter.Entry(self.top, textvariable=3Dself.name)## why=3F=3F
##### code snippet end
why does the creation of the Entry widget start with "entry =3D" instead of =
"self.entry" =3F I thought all class variables have to start with self=3F Furt=
hermore, is it wise to write global functions or to embed the functions in=
the widgets of the classes calling the functions=3F
My head is spinning at the moment...
Thanks for any help and tips
Sharriff
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
IhrName@web.de, 8MB Speicher, Verschluesselung - http://freemail.web.de