Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tkinter Entry boxes

Status
Not open for further replies.

brotherjustice

Programmer
Jun 19, 2003
5
CA
I need a little bit of help with Entry boxes. I keep getting an error when i try to use the get() command
eg. if i have a entrybox named crapola and I try to run the line "x =copy.deepcopy(crapola.get())"
I get an error like this:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\PYTHON22\lib\lib-tk\Tkinter.py", line 1316, in __call__
return apply(self.func, args)
File "F:\Python22\displayclicbox.py", line 85, in getboxinfo
x=copy.deepcopy(crapola.get)
AttributeError: 'NoneType' object has no attribute 'get'

I know it thinks that that entry box is a 'NoneType' object. the question is why. It displays on the screen best kind? Help would be appreciated.
 
ok well if noone can help me figure this out... can someone post some code where a button gets the value from a list box. its now working for me and i am very close to saying shag python gui
 
You typed "It is now working", but I think you meant "It is not working". Another thing to note is that you wrote, "x=copy.deepcopy(crapola.get())
", but the trace back has, "x=copy.deepcopy(crapola.get)", which is missing the extra parentheses.

Seeing your program would make it easier to comment on it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top