aggr!
i now have this problem.

Traceback (most recent call last):
File "C:\Users\User\Desktop\Python\File.py", line 87, in ?
self.entID_Num = Entry(self)
NameError: name 'self' is not defined

part of my code is

# movie id input
self.entID_Num = Entry(self)
        # movie id input position
self.entID_Num.grid(row = 0, column = 1, sticky = W)
        # adress input
self.entResult = Entry(self)

any help would be awesome.
cheers

Recommended Answers

All 2 Replies

This error means that the variable self is not defined when the program reaches line 87 in your file. In order that self be defined at this point you must either 1) put line 87 in a function where self is a parameter, like

def myFunction(self, other_arguments):
  self.Entry = ...

OR 2) put a line defining self, like

self = a_certain_value

in the same block of code as line 87.

PM sent gribouillis.
thanks mate.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.