nest class name problem
Bob van der Poel
bvdpoel at uniserve.com
Mon Jun 19 14:34:54 EDT 2000
I'm having a problem accessing objects created in a nested class. What I
have (extracted) is:
class Goption:
__name = ""
def __init__(self, name):
self.__default = default
.. more ..
def change(self):
class MyDialog(tkSimpleDialog.Dialog):
def body(self, master):
print self.__name
... more ...
The print 'self.__name' doesn't work. How do I access the variable
__name???
Thanks!
--
__
/ ) / Bob van der Poel
/--< ____/__ bvdpoel at uniserve.com
/___/_(_) /_) http://users.uniserve.com/~bvdpoel
More information about the Python-list
mailing list