469,927 Members | 1,835 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Can'r run BLT twice?

I'm running PythonWin on XP. When I run my plotter program the first
time, it works fine. The second time I run it, I get the following
error. If I exit PythonWin, and restart, I can again run it once. Any
ideas?

Error: 1
TclError Exception in Tk callback
Function: <bound method PathEval.doOpenTrace of <__main__.PathEval
instance at 0x0127AC60>> (type: <type 'instancemethod'>)
Args: ()
Traceback (innermost last):
File "C:\Python24\lib\Pmw\Pmw_1_2\lib\PmwBase.py", line 1747, in
__call__
None
File
"C:\NBU\perforce\hardware\test\home_survey\data\ho me_007\raw_data\KitchenToDen\AMPLITUDE\PathEval.py ",
line 89, in doOpenTrace
self.doPlotTrace() # go plot the thing
File
"C:\NBU\perforce\hardware\test\home_survey\data\ho me_007\raw_data\KitchenToDen\AMPLITUDE\PathEval.py ",
line 117, in doPlotTrace
self.graph = Pmw.Blt.Graph(tkRoot) # make a new
graph area
File "C:\Python24\lib\Pmw\Pmw_1_2\lib\PmwBlt.py", line 260, in
__init__
None
File "C:\Python24\lib\lib-tk\Tkinter.py", line 1861, in __init__
self.tk.call(
TclError: invalid command name "::blt::graph"

Jul 19 '05 #1
2 1409
Todd Krein wrote:
I'm running PythonWin on XP. When I run my plotter program the first
time, it works fine. The second time I run it, I get the following
error. If I exit PythonWin, and restart, I can again run it once. Any
ideas?

Error: 1
TclError Exception in Tk callback
Function: <bound method PathEval.doOpenTrace of <__main__.PathEval
instance at 0x0127AC60>> (type: <type 'instancemethod'>)
Args: ()
Traceback (innermost last):
File "C:\Python24\lib\Pmw\Pmw_1_2\lib\PmwBase.py", line 1747, in
__call__
None
File
"C:\NBU\perforce\hardware\test\home_survey\data\ho me_007\raw_data\KitchenToDen\AMPLITUDE\PathEval.py ",
line 89, in doOpenTrace
self.doPlotTrace() # go plot the thing
File
"C:\NBU\perforce\hardware\test\home_survey\data\ho me_007\raw_data\KitchenToDen\AMPLITUDE\PathEval.py ",
line 117, in doPlotTrace
self.graph = Pmw.Blt.Graph(tkRoot) # make a new
graph area
File "C:\Python24\lib\Pmw\Pmw_1_2\lib\PmwBlt.py", line 260, in
__init__
None
File "C:\Python24\lib\lib-tk\Tkinter.py", line 1861, in __init__
self.tk.call(
TclError: invalid command name "::blt::graph"


I had that problem also at one time, but I can't remember just what I
did to solve it. :-(

It is fixable though. I know that's not much help. I'll look at how I
use it in my program and see if that rings any bells.

Ron Adam
Jul 19 '05 #2
Todd Krein wrote:
I'm running PythonWin on XP. When I run my plotter program the first
time, it works fine. The second time I run it, I get the following
error. If I exit PythonWin, and restart, I can again run it once. Any
ideas?

Error: 1
TclError Exception in Tk callback
Function: <bound method PathEval.doOpenTrace of <__main__.PathEval
instance at 0x0127AC60>> (type: <type 'instancemethod'>)
Args: ()
Traceback (innermost last):
File "C:\Python24\lib\Pmw\Pmw_1_2\lib\PmwBase.py", line 1747, in
__call__
None
File
"C:\NBU\perforce\hardware\test\home_survey\data\ho me_007\raw_data\KitchenToDen\AMPLITUDE\PathEval.py ",
line 89, in doOpenTrace
self.doPlotTrace() # go plot the thing
File
"C:\NBU\perforce\hardware\test\home_survey\data\ho me_007\raw_data\KitchenToDen\AMPLITUDE\PathEval.py ",
line 117, in doPlotTrace
self.graph = Pmw.Blt.Graph(tkRoot) # make a new
graph area
File "C:\Python24\lib\Pmw\Pmw_1_2\lib\PmwBlt.py", line 260, in
__init__
None
File "C:\Python24\lib\lib-tk\Tkinter.py", line 1861, in __init__
self.tk.call(
TclError: invalid command name "::blt::graph"


I think this is why I'm using a stand alone editor when I use BLT. It
seems that both pythonwin and idle don't completely clear and reload
things in between runs.

My application works just fine when I run it from the command line, or
click the icon to start it. I don't have any problems with starting it
from an exe using py2exe either.

I'm currently using the free version of EditPad Pro, the full version
has a spelling checker built in. It's loads up fast and can run
external programs on the current document and capture the results and
the errors in separate panels. It also supports syntax highlighting for
pthon (and a dozen other languages).

Cheers,
Ron Adam
Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by icui | last post: by
3 posts views Thread by Alexander Stippler | last post: by
1 post views Thread by mike parr | last post: by
6 posts views Thread by Dot net work | last post: by
2 posts views Thread by Kiuhnm | last post: by
9 posts views Thread by mosscliffe | last post: by
4 posts views Thread by Tom Van den Brandt | last post: by
3 posts views Thread by Achim Domma | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.