473,545 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.doOpen Trace of <__main__.PathE val
instance at 0x0127AC60>> (type: <type 'instancemethod '>)
Args: ()
Traceback (innermost last):
File "C:\Python24\li b\Pmw\Pmw_1_2\l ib\PmwBase.py", line 1747, in
__call__
None
File
"C:\NBU\perforc e\hardware\test \home_survey\da ta\home_007\raw _data\KitchenTo Den\AMPLITUDE\P athEval.py",
line 89, in doOpenTrace
self.doPlotTrac e() # go plot the thing
File
"C:\NBU\perforc e\hardware\test \home_survey\da ta\home_007\raw _data\KitchenTo Den\AMPLITUDE\P athEval.py",
line 117, in doPlotTrace
self.graph = Pmw.Blt.Graph(t kRoot) # make a new
graph area
File "C:\Python24\li b\Pmw\Pmw_1_2\l ib\PmwBlt.py", line 260, in
__init__
None
File "C:\Python24\li b\lib-tk\Tkinter.py", line 1861, in __init__
self.tk.call(
TclError: invalid command name "::blt::gra ph"

Jul 19 '05 #1
2 1470
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.doOpen Trace of <__main__.PathE val
instance at 0x0127AC60>> (type: <type 'instancemethod '>)
Args: ()
Traceback (innermost last):
File "C:\Python24\li b\Pmw\Pmw_1_2\l ib\PmwBase.py", line 1747, in
__call__
None
File
"C:\NBU\perforc e\hardware\test \home_survey\da ta\home_007\raw _data\KitchenTo Den\AMPLITUDE\P athEval.py",
line 89, in doOpenTrace
self.doPlotTrac e() # go plot the thing
File
"C:\NBU\perforc e\hardware\test \home_survey\da ta\home_007\raw _data\KitchenTo Den\AMPLITUDE\P athEval.py",
line 117, in doPlotTrace
self.graph = Pmw.Blt.Graph(t kRoot) # make a new
graph area
File "C:\Python24\li b\Pmw\Pmw_1_2\l ib\PmwBlt.py", line 260, in
__init__
None
File "C:\Python24\li b\lib-tk\Tkinter.py", line 1861, in __init__
self.tk.call(
TclError: invalid command name "::blt::gra ph"


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.doOpen Trace of <__main__.PathE val
instance at 0x0127AC60>> (type: <type 'instancemethod '>)
Args: ()
Traceback (innermost last):
File "C:\Python24\li b\Pmw\Pmw_1_2\l ib\PmwBase.py", line 1747, in
__call__
None
File
"C:\NBU\perforc e\hardware\test \home_survey\da ta\home_007\raw _data\KitchenTo Den\AMPLITUDE\P athEval.py",
line 89, in doOpenTrace
self.doPlotTrac e() # go plot the thing
File
"C:\NBU\perforc e\hardware\test \home_survey\da ta\home_007\raw _data\KitchenTo Den\AMPLITUDE\P athEval.py",
line 117, in doPlotTrace
self.graph = Pmw.Blt.Graph(t kRoot) # make a new
graph area
File "C:\Python24\li b\Pmw\Pmw_1_2\l ib\PmwBlt.py", line 260, in
__init__
None
File "C:\Python24\li b\lib-tk\Tkinter.py", line 1861, in __init__
self.tk.call(
TclError: invalid command name "::blt::gra ph"


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
8863
by: icui | last post by:
The following script generates two files copies. (I expect that a new file is created in my $wrk_dir) The same script executed without Apache works properly and generates single file copy. With $URL_CSS_ defined works properly. (row 13) Deleting row 15 works properly.
2
1902
by: BillH | last post by:
I have an ASP page to download a CSV file using the following code Response.ContentType="text/plain Response.AddHeader "Content-disposition", "attachment; filename=Report.csv Response.Write strCS When I run this, I get the download dialog displayed twice. Any ideas how to solve this Thank
3
3899
by: Alexander Stippler | last post by:
Given the following code snippet we get some unexpected behaviour: //-------------------------------------------------------------------- #include <iostream> using namespace std; struct A { A() { cerr << "A()" << endl; } };
1
1714
by: mike parr | last post by:
I have an button which calls its Click procedure twice when clicked. This is my code : public void btnAddToCartPersonal_Click(object sender, System.Web.UI.ImageClickEventArgs e) { //validate text boxes bool blnEmpty = false; string strQuantity;
6
5947
by: Dot net work | last post by:
I've read quite a few threads on these groups about this. When someone says the following: "My Page_Load gets called twice on a button click postback" The replies are: "Do you have AutoEventWireup=True in your page header?" In my project, I have this set to false - everywhere.
2
1622
by: Kiuhnm | last post by:
I am having trouble with the function Add4Ptrs_v2. I thought "twice< add_pointer<_>, _ >" was a perfectly valid metafunction, but the following code does not work: >>>> #include <iostream> #include <boost/type_traits.hpp> #include <boost/mpl/vector.hpp>
9
4727
by: mosscliffe | last post by:
I am sorry but I am all very new and slow at understanding all this ASP.NET2. I found some code which showed how to page with a repeater. All very excited as I had been looking for this all day. It worked wonderfully, but it was in C# So I converted it to VB with http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx It...
0
1189
by: arunpulikkan | last post by:
hi,guys im new to asp.in my option list one value is displaying twice.following is the code if not rs1.eof then thispagesForm = rs1(0) sql2 = "select formname, local_url from xwhere formid = "& thispagesForm set rs2 = conn.execute(sql2) thispagesFormName = rs2(0) local_url = rs2(1)
4
2357
by: Tom Van den Brandt | last post by:
Hi, I wrote a simple windows service that includes a FileSystemWatcher. After building and installing the service (installutil) I notice that the service executes twice. I included a write to the application eventlog in OnStart ("service has started and is ready to watch the filesystem") and this results in two entries in the eventlog. ...
3
1217
by: Achim Domma | last post by:
Hi, I have a weird problem, which is quite hard to debug: An ascx-Control seems to be constructed and processed twice. The AutoEventWireup attribute is set to true. Looking at google, I found a lot of hints about OnInit and Page_Load called twice. So I set AutoEventWireup to false and connected the Page_Load event via code. And it's still...
0
7484
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7415
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7675
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7440
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7775
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3451
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1902
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1030
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
726
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.