Access from one class to methode of other class

bruno modulix onurb at xiludom.gro
Thu May 26 12:00:41 EDT 2005


VK wrote:
> Hi, all!
> 
> In my programm i have to insert a variable from class 2 to class 1 and I
> get error NameError: global name 'd' is not defined. 

Looking at your code snippet, I think you have a lot of other errors
before.

> 
> class 1:
>    self.entry = Entry(self.entryframe)
NameError : self is not defined

etc...

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list