Re: Access from one class to methode of other class

2005-05-27 Thread Aaron Bingham
Dennis Lee Bieber [EMAIL PROTECTED] writes: On Thu, 26 May 2005 14:33:45 +0200, VK myname@example.invalid declaimed the following in comp.lang.python: 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.

Access from one class to methode of other class

2005-05-26 Thread VK
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. How do I get access to d.entry.insert() method of class 1 class 1: self.entry = Entry(self.entryframe) self.entry.pack() self.button =

Re: Access from one class to methode of other class

2005-05-26 Thread [EMAIL PROTECTED]
I don't know if your're actually calling the classes '1' and '2', but that's a really bad idea! class 2: def ins(self) d.entry.insert(variable) This is probably where you're getting the NameError. d is not defined, so calling d.entry will generate an error. Reidar --

Re: Access from one class to methode of other class

2005-05-26 Thread VK
I don't know if your're actually calling the classes '1' and '2', but that's a really bad idea! class 2: def ins(self) d.entry.insert(variable) This is probably where you're getting the NameError. d is not defined, so calling d.entry will generate an error. Reidar What

Re: Access from one class to methode of other class

2005-05-26 Thread bruno modulix
VK wrote: I don't know if your're actually calling the classes '1' and '2', but that's a really bad idea! class 2: def ins(self) d.entry.insert(variable) This is probably where you're getting the NameError. d is not defined, so calling d.entry will generate an error. What

Re: Access from one class to methode of other class

2005-05-26 Thread bruno modulix
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

Re: Access from one class to methode of other class

2005-05-26 Thread VK
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

Re: Access from one class to methode of other class

2005-05-26 Thread Simon Brunning
On 5/26/05, VK [EMAIL PROTECTED] wrote: That is not real code, only dummy describing the problem We realise that. The problem is that there are problems in your dummy in addition to the real problems, and we can't tell them apart. -- Cheers, Simon B, [EMAIL PROTECTED],

Re: Access from one class to methode of other class

2005-05-26 Thread VK
On Thu, 26 May 2005 14:33:45 +0200, VK myname@example.invalid declaimed the following in comp.lang.python: 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. How do I get access to d.entry.insert() method

Re: Access from one class to methode of other class

2005-05-26 Thread Kent Johnson
VK wrote: On Thu, 26 May 2005 14:33:45 +0200, VK myname@example.invalid declaimed the following in comp.lang.python: 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. How do I get access to

Re: Access from one class to methode of other class

2005-05-26 Thread VK
Kent Johnson wrote: VK wrote: On Thu, 26 May 2005 14:33:45 +0200, VK myname@example.invalid declaimed the following in comp.lang.python: 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. How do I get