•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 426,659 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,549 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums
Views: 442 | Replies: 3
![]() |
•
•
Join Date: Nov 2006
Posts: 23
Reputation:
Rep Power: 2
Solved Threads: 0
im trying to use the .get() method to get all the text from a tkinter text widget. the code im using is
i get the error "name error: global name 'end' is not defined"
is there a word specficly for the end of the text or am i going about this the wrong way?
edit: ok all i had to do was change end to END. But now the error is "TclError Bad text index "1""
text = root.textwidget.get(1,end)i get the error "name error: global name 'end' is not defined"
is there a word specficly for the end of the text or am i going about this the wrong way?
edit: ok all i had to do was change end to END. But now the error is "TclError Bad text index "1""
Last edited by Haze : Feb 9th, 2008 at 8:10 am.
•
•
Join Date: Nov 2006
Posts: 23
Reputation:
Rep Power: 2
Solved Threads: 0
yep that was it i figured it out myself but didnt get round to replying to this yet. i do have another problem though. One of the functions i have for the program runs through twice when the program starts (because it is the command of 2 buttons) but then it doesn't run after that when i press the buttons that have this function as their command. Either that or the shell doesn't display any print statements after the initial 2 runs (which is possible because it doesn't display the output of commands i type directly into it) AND the function isnt working properly and therefore doesn't display any output on the GUI either. Any common mistakes that cause this or should i post my code and if so what bits because the program is quite large (well by my standards)
![]() |
•
•
•
•
•
•
•
•
DaniWeb Python Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Python GUI Problem (Python)
- tkinter - several problems (Python)
- Tkinter Button(s) (Python)
Other Threads in the Python Forum
- Previous Thread: Projects for the Beginner - Problem with #2
- Next Thread: encryption module


Linear Mode