Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #69074 > unrolled thread
| Started by | eneskristo@gmail.com |
|---|---|
| First post | 2014-03-25 14:15 -0700 |
| Last post | 2014-03-26 07:31 -0700 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.python
Errors on text.get() eneskristo@gmail.com - 2014-03-25 14:15 -0700
Re: Errors on text.get() Peter Otten <__peter__@web.de> - 2014-03-25 22:39 +0100
Re: Errors on text.get() eneskristo@gmail.com - 2014-03-26 07:31 -0700
| From | eneskristo@gmail.com |
|---|---|
| Date | 2014-03-25 14:15 -0700 |
| Subject | Errors on text.get() |
| Message-ID | <7548537d-7aee-4404-98b3-8b5ce294d971@googlegroups.com> |
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__
return self.func(*args)
File "C:/Users/User/PycharmProjects/Cesarian Codes/project.py", line 43, in gen_random
string = text.get('1.0', 'end')
File "C:\Python33\lib\tkinter\__init__.py", line 3104, in get
return self.tk.call(self._w, 'get', index1, index2)
_tkinter.TclError: invalid command name ".44500976.44544352"
I'm having a strange error. I haven't found anything online so far. If I should supply parts of the code, please post here. Thank you in advance!
[toc] | [next] | [standalone]
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Date | 2014-03-25 22:39 +0100 |
| Message-ID | <mailman.8544.1395783574.18130.python-list@python.org> |
| In reply to | #69074 |
eneskristo@gmail.com wrote:
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__
> return self.func(*args)
> File "C:/Users/User/PycharmProjects/Cesarian Codes/project.py", line 43,
> in gen_random
> string = text.get('1.0', 'end')
> File "C:\Python33\lib\tkinter\__init__.py", line 3104, in get
> return self.tk.call(self._w, 'get', index1, index2)
> _tkinter.TclError: invalid command name ".44500976.44544352"
>
> I'm having a strange error. I haven't found anything online so far. If I
> should supply parts of the code, please post here. Thank you in advance!
Once you have destroyed a widget you can no longer access its data:
>>> import tkinter as tk
>>> root = tk.Tk()
>>> text = tk.Text(root)
>>> text.pack()
>>> text.get("1.0", "end")
'\n'
>>> text.destroy()
>>> text.get("1.0", "end")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.3/tkinter/__init__.py", line 3107, in get
return self.tk.call(self._w, 'get', index1, index2)
_tkinter.TclError: invalid command name ".140692133333008"
[toc] | [prev] | [next] | [standalone]
| From | eneskristo@gmail.com |
|---|---|
| Date | 2014-03-26 07:31 -0700 |
| Message-ID | <7c3bb088-0b1d-4603-aa4c-3db680881a02@googlegroups.com> |
| In reply to | #69074 |
On Tuesday, March 25, 2014 2:15:11 PM UTC-7, enesk...@gmail.com wrote:
> Exception in Tkinter callback
>
> Traceback (most recent call last):
>
> File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__
>
> return self.func(*args)
>
> File "C:/Users/User/PycharmProjects/Cesarian Codes/project.py", line 43, in gen_random
>
> string = text.get('1.0', 'end')
>
> File "C:\Python33\lib\tkinter\__init__.py", line 3104, in get
>
> return self.tk.call(self._w, 'get', index1, index2)
>
> _tkinter.TclError: invalid command name ".44500976.44544352"
>
>
>
> I'm having a strange error. I haven't found anything online so far. If I should supply parts of the code, please post here. Thank you in advance!
Thank you bro!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web