[Tutor] Scaling a Tkinter canvas widget

2008-10-26 Thread Mike Meisner
I would like to plot various datasets on a Tkinter canvas widget. The problem is that each of my datasets have different x,y extremes. For instance, one dataset may have xmin = 0, xmax = 300, ymin = 0, ymax = 300; whereas the next dataset may have xmin = -200, xmax = 1200, ymin = 2000, ymax =

[Tutor] Immediately committing changes to shelve files

2008-10-26 Thread Mike Meisner
I'm running a number of test cases and saving their results in a shelve file. A full run of the test cases takes about 36 hours. During that time, if something interrupts the run (e.g., a power outage, which has happened), I find that none of the completed test cases have been committed to the

Re: [Tutor] please help with simple python CGI script

2008-10-26 Thread Steve Willoughby
aivars wrote: Hello, Lie, I renamed the directory back to Cgi-bin and the scripts are NOT working. Going back to cgi-bin it works. I also do not understand why. Aivars 2008/10/26 Lie Ryan <[EMAIL PROTECTED]>: On Sun, 26 Oct 2008 08:32:52 +, Alan Gauld wrote: "aivars" <[EMAIL PROTECTED]>

Re: [Tutor] please help with simple python CGI script

2008-10-26 Thread aivars
Hello, Lie, I renamed the directory back to Cgi-bin and the scripts are NOT working. Going back to cgi-bin it works. I also do not understand why. Aivars 2008/10/26 Lie Ryan <[EMAIL PROTECTED]>: > On Sun, 26 Oct 2008 08:32:52 +, Alan Gauld wrote: > >> "aivars" <[EMAIL PROTECTED]> wrote in mes

Re: [Tutor] please help with simple python CGI script

2008-10-26 Thread Lie Ryan
On Sun, 26 Oct 2008 08:32:52 +, Alan Gauld wrote: > "aivars" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >>I finally get the script working! >> >> I renamed the script directory from Cgi-bin to cgi-bin just as Alan >> told. > > I'm glad it worked but I confess I'm not sure w

Re: [Tutor] please help with simple python CGI script

2008-10-26 Thread Alan Gauld
"aivars" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I finally get the script working! I renamed the script directory from Cgi-bin to cgi-bin just as Alan told. I'm glad it worked but I confess I'm not sure why it worked. The interpreter was apparently finding your script OK

Re: [Tutor] please help with simple python CGI script

2008-10-26 Thread aivars
I finally get the script working! I renamed the script directory from Cgi-bin to cgi-bin just as Alan told. Many thanks to all you who responded Aivars 2008/10/26 aivars <[EMAIL PROTECTED]>: > Thanks John and Alan > > I get the following error when I run the script from IDLE: > > Traceback (mo