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.
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 =
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
--
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
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
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
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
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],
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
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
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
11 matches
Mail list logo