[Tutor] Uninstalling MatPlotLib? (Win7)

2010-02-06 Thread Wayne Watson
I should have installed NumPy before MPL. How do I uninstall it. I'm pretty sure it was an msi file. My guess is to go to site-packages, and delete individual pieces. Possibly these: C:\Python25\Lib\site-packages\pylab.py C:\Python25\Lib\site-packages\matplotlib C:\Python25\Lib\site-packages\mp

Re: [Tutor] Uninstalling MatPlotLib? (Win7)

2010-02-07 Thread Wayne Watson
n the the python tutor world of crazy world of replying. Didn't post to the list, just you, so hee goes On 2/7/2010 1:11 AM, Martijn wrote: On Sat, Feb 6, 2010 at 4:36 PM, Wayne Watson <sierra_mtnv...@sbcglobal.net> wrote: I should have installed NumPy before MPL. How do I uninstall

Re: [Tutor] Uninstalling MatPlotLib? (Win7)

2010-02-07 Thread Wayne Watson
On 2/7/2010 2:43 AM, Wayne Watson wrote: First, the end of the large log showed: 200 File Copy: C:\Python25\Lib\site-packages\dateutil\easter.pyo 200 File Copy: C:\Python25\Lib\site-packages\pylab.pyo 200 File Copy: C:\Python25\Lib\site-packages\configobj.pyo Second, and more

Re: [Tutor] Uninstalling MatPlotLib? (Win7)--Package Install Order

2010-02-07 Thread Wayne Watson
Solved. One does not need to install numpy before MPL. However, I thought that some modules did have to be installed in a particular order. On 2/7/2010 3:20 AM, Wayne Watson wrote: On 2/7/2010 2:43 AM, Wayne Watson wrote: First, the end of the large log showed: 200 File

[Tutor] Closing a matplotlib window after show()

2010-02-07 Thread Wayne Watson
The code below is a typical example of matplotlib use. I've used it both in xp and win7 in IDLE. It produces the required plos and stop with the plot display. If I close the plot window with the x in the upper right corner, the shell window is left open. I have to do the same to close it. If I

Re: [Tutor] Closing a matplotlib window after show()

2010-02-08 Thread Wayne Watson
year or two ago, and it all works fine. My code produces the desired plot, but gets hung up on show(). On 2/7/2010 8:11 PM, Wayne Watson wrote: The code below is a typical example of matplotlib use. I've used it both in xp and win7 in IDLE. It produces the required plots and stop with the plot

Re: [Tutor] Closing a matplotlib window after show()

2010-02-08 Thread Wayne Watson
osed the window. I'm going to assume he used IDLE, or a straight execute of the file. On 2/8/2010 2:23 PM, Eike Welk wrote: Hello Wayne! On Monday February 8 2010 20:54:27 Wayne Watson wrote: The basic problem is the show(). One person checked out the examples I provided and found sh

Re: [Tutor] Closing a matplotlib window after show()

2010-02-09 Thread Wayne Watson
culty getting Matlab back up on my machine, a possible install problem, and a host of ambiguities about this use. The end is near. On 2/8/2010 9:53 PM, Wayne Watson wrote: Hi, I'm not so sure that's true. I have a large 900 line program where some original plot code just continues b

Re: [Tutor] Closing a matplotlib window after show()

2010-02-09 Thread Wayne Watson
Form me the solution is getting into interactive mode, which I had never heard of until this morning. On 2/9/2010 9:04 AM, Wayne Watson wrote: Well, you are correct. Finally, my latest post to the MPL list caught the eye of John Hunter. I think he wrote MPL. The way out is interactive use

[Tutor] Exiting a Tkinter Program-- An Anomaly or two

2010-02-09 Thread Wayne Watson
I'm looking a 1800+ line someone else wrote. It uses one large dialog for menus, and has a large area for images. A few menus open small dialogs, for example, to enter a file name. The File menu has an exit choice. The only other exit is the x in the upper right corner of the large dialog. I'm

Re: [Tutor] Exiting a Tkinter Program-- An Anomaly or two

2010-02-11 Thread Wayne Watson
) in the def. On 2/9/2010 6:00 PM, Wayne Watson wrote: I'm looking a 1800+ line someone else wrote. It uses one large dialog for menus, and has a large area for images. A few menus open small dialogs, for example, to enter a file name. The File menu has an exit choice. The only other exit i

[Tutor] The Order of Imports and install order of modules and other matters (XP vs W7, ...)

2010-02-12 Thread Wayne Watson
There seems to be something of a general consensus in ordering import statements. Something like standard library imports first. When using tools like matlablib or tkinter (maybe), must one keep an order among the relevant imports? Related to this is the order in which modules are installed. D

Re: [Tutor] The Order of Imports and install order of modules and other matters (XP vs W7, ...)

2010-02-13 Thread Wayne Watson
ither sends warning and error messages there through some built-in facility or creates that window somehow. I'm dealing with tkinter in the app code. I didn't write the (1600 line) program, but certainly am modifying it. On 2/13/2010 1:33 AM, Alan Gauld wrote: "Wayne Watson"

Re: [Tutor] The Order of Imports and install order of modules and other matters (XP vs W7, ...)

2010-02-13 Thread Wayne Watson
pear, I'll print them out, so that I can read the detail. I'm planning on making the code I'm writing available in a "compiled" form, exe. I hope those messages don't appear when users try to execute the program. On 2/13/2010 7:06 AM, Kent Johnson wrote: On Fri

Re: [Tutor] The Order of Imports and install order of modules and other matters (XP vs W7, ...)

2010-02-13 Thread Wayne Watson
Thanks. Sounds like good advice. BTW, I just did some advertising on the AstroPy NG a moment ago for your books. A query for good Py books. On 2/13/2010 8:19 AM, ALAN GAULD wrote: Another question on similar matters. If I write a program and "compile" it for distribution, and a user has 2

[Tutor] A Stuborn Tab Problem in IDLE

2010-02-14 Thread Wayne Watson
When I use F5 to execute a py program in IDLE, Win7, I get a tab error on an indented else. I've selected all and untabifed with 4 spaces several times, and get the same problem. I've tried re-typing the line with zero results. What next? I had been modifying the program repeatedly over several

Re: [Tutor] A Stuborn Tab Problem in IDLE

2010-02-14 Thread Wayne Watson
I'm not sure it's postable or attachable for this mail list. I'll give it a try. Attachments do work with other lists. On 2/14/2010 2:51 PM, Steven D'Aprano wrote: On Mon, 15 Feb 2010 09:19:35 am Wayne Watson wrote: When I use F5 to execute a py program in IDLE, Win7,

Re: [Tutor] A Stuborn Tab Problem in IDLE

2010-02-14 Thread Wayne Watson
eport back. Maybe stuffing it in a txt file with NotePad might reveal something. On 2/14/2010 5:05 PM, Alan Gauld wrote: "Wayne Watson" wrote When I use F5 to execute a py program in IDLE, Win7, I get a tab error on an indented else. What happens if you execute from a command line?

Re: [Tutor] A Stuborn Tab Problem in IDLE

2010-02-14 Thread Wayne Watson
Well, command line was easy to get to. It's on the menu for python, but it gives me >>>. How do I get to the folder with the py file? Can I switch to a c:\ type operation? Back to exploring. On 2/14/2010 5:05 PM, Alan Gauld wrote: "Wayne Watson" wrote When

Re: [Tutor] A Stuborn Tab Problem in IDLE

2010-02-14 Thread Wayne Watson
t;[xy[npts-1,1]],'ys') # mark 90th frame in path last_pt = len(xy[:,0]) ax1.plot([xy[npts-1,0]],[xy[npts-1,1]],'rs') On 2/14/2010 6:18 PM, Wayne Watson wrote: Well, command line was easy to get to. It's on the menu for python, but it gives me >&g

Re: [Tutor] A Stuborn Tab Problem in IDLE

2010-02-14 Thread Wayne Watson
1 PM, Dave Angel wrote: Wayne Watson wrote: I got to the dos command line facility and got to the file. I executed the program, and it failed with a syntax error. I can't copy it out of the window to paste here, "Wayne Watson" wrote When I use F5 to execute a py program in IDLE,

Re: [Tutor] A Stuborn Tab Problem in IDLE

2010-02-15 Thread Wayne Watson
I've found there's quite a bit of discrepancy in top vs bottom posting. It's hardly worth thinking about. I seem to navigate through top, bottom or mixed. The real problem, IMHO, is very long posts from various people. Marty Ah ha! Sorry for the noise, I should really read the whole message b

Re: [Tutor] A Stuborn Tab Problem in IDLE

2010-02-16 Thread Wayne Watson
On 2/14/2010 7:01 PM, Dave Angel wrote: Wayne Watson wrote: I got to the dos command line facility and got to the file. I executed the program, and it failed with a syntax error. I can't copy it out of the window to paste here, Once you've discovered the DOS box, you should als

Re: [Tutor] PyCon anyone?

2010-02-16 Thread Wayne Watson
Hi all, I'm going to PyCon this year for the first time (yeah!) and I would love to meet other regular contributors to the tutor list. Is anyone else going to be there? Any interest in a "Meet the tutors" Open Space or dinner? Kent ___ Tutor maillist

Re: [Tutor] PyCon anyone?

2010-02-16 Thread Wayne Watson
On 2/16/2010 7:42 AM, Kent Johnson wrote: On Tue, Feb 16, 2010 at 10:17 AM, Wayne Watson wrote: Hi all, I'm going to PyCon this year for the first time (yeah!) and I would love to meet other regular contributors to the tutor list. Is anyone else going to be there? Any interest

[Tutor] Wrestingly with the Py2exe Install, Win7, Py2.5

2010-02-16 Thread Wayne Watson
I've finally decided to see if I could make an executable out of a py file. Win7. Py2.5. I brought down the install file and proceeded with the install. I got two warning messages. Forgot the first. The second said,"Could not set the key value." I again used OK. I think that was the only choice

[Tutor] "Sounding" Off, IDLE (Win7)

2010-02-16 Thread Wayne Watson
In Win7 IDLE, when I type in something with a syntax problem, a bell rings. How do I stop that? I've looked at Control Panel Sounds, but don't see anything of apparent use. -- "Crime is way down. War is declining. And that's far from the good news." -- Steven Pinker (and other sources) Why is t

[Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2.5

2010-02-17 Thread Wayne Watson
(This is the same msg as above, but I meant XP. I'm transitioning from XP to Win7, and am operating with two monitors and keyboards side by side. I thought I had used W7, but nope. Corrected wrestling it Subject.) I've finally decided to see if I could make an executable out of a py file. XP.

Re: [Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2.5

2010-02-17 Thread Wayne Watson
I'm following the tutorial and ran into a snag. Here is the console output.( Can I do this from IDLE?) C:\Sandia_Meteors\Sentinel_Development\Learn_Python>c:\python25\python setup.py Traceback (most recent call last): File "setup.py", line 2, in import py2exe ImportError: No module n

Re: [Tutor] "Sounding" Off, IDLE (Win7)

2010-02-18 Thread Wayne Watson
Nothing to do with Ctrl-G. Cmd Prompt not open. So if you have a syntax error, no bell rings? I don't want to disable all sounds. On 2/17/2010 2:48 AM, Michael M Mason wrote: Wayne Watson wrote on 16 February 2010 at 17:58:- In Win7 IDLE, when I type in something with a syntax probl

Re: [Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2.5

2010-02-18 Thread Wayne Watson
rg [mailto:tutor- bounces+bermanrl=cfl.rr@python.org] On Behalf Of Wayne Watson Sent: Wednesday, February 17, 2010 10:07 PM To: tutor@python.org Subject: Re: [Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2.5 I'm following the tutorial and ran into a snag. Here is the console outp

Re: [Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2.5

2010-02-18 Thread Wayne Watson
ttle for a small matplotlib program for the moment. VBG Thanks very much. On 2/18/2010 4:30 PM, Wayne Watson wrote: It imported setup fine from the IDLE cmd prompt. Win Cmd prompt is fine to operate it. Just curious about IDLE. I looked in setup.py and don't see what the complaint is.

Re: [Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2.5

2010-02-18 Thread Wayne Watson
There's a bit of an anomaly. I've compiled 3 small programs now, and in cmd prompt a Dir does not find the file. It finds the py file, but not the completed file. Nevertheless, if I type in the prefix, the desired program executes. On 2/18/2010 4:48 PM, Wayne Watson wrote: Got

[Tutor] The Disappearing Program (py2exe)

2010-02-19 Thread Wayne Watson
I've successfully compiled several small python programs on Win XP into executables using py2exe. A program goes from a name like snowball.py to snowball. A dir in the command prompt window finds snowball.py but not snowball. If I type in snowball, it executes. What's up with that? --

Re: [Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2.5

2010-02-19 Thread Wayne Watson
mment about py2exe creating two additional directories: build and dist. Forget about the build directory. If you look in the dist directory you will find the exe file and all supporting files. If you look back to an earlier email you will see a more detailed explanation I sent you. Ro

Re: [Tutor] The Disappearing Program (py2exe)

2010-02-19 Thread Wayne Watson
The answer now appears in "Wrestling with ...". It's in a dist folder that py2exe produces. See Robert Berman post today, 2/19 early in morning. 5:34 am here. On 2/19/2010 7:00 AM, Wayne Watson wrote: I've successfully compiled several small python programs on Win XP in

Re: [Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2.5

2010-02-19 Thread Wayne Watson
have not Googled much at all on any of this. I'm glad I finally worked my way to this facility. It should help a good deal on the distribution of my demos to non-python friends, and fellow project workers at far flung places from here. On 2/19/2010 11:44 AM, Alan Gauld wrote: "Way

Re: [Tutor] Wrestling with the Py2exe Install, Win7[XP!], Py2.5

2010-02-19 Thread Wayne Watson
Things were not quite what the seem. I just tried to run a program that was not converted, and left off py. It worked. So maybe the only way to execute the compiled code is to to to dist? -- "There is nothing so annoying as to have two people talking when you're busy

Re: [Tutor] The Disappearing Program (py2exe)

2010-02-19 Thread Wayne Watson
extensions for known file types' is not clicked. Once that is done, all your file extensions (all of them) will be seen and shown. Robert -Original Message- From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net] Sent: Friday, February 19, 2010 12:11 PM To: Robert Berman Subject:

Re: [Tutor] The Disappearing Program (py2exe)

2010-02-19 Thread Wayne Watson
OK, I'm completely on Win7. hello.exe works as expected by the tutorial. That file is in dist. I've now tried this program, pylab_scatter.py: #!/usr/bin/env python from pylab import * N = 30 x = 0.9*rand(N) y = 0.9*rand(N) area = pi*(10 * rand(N))**2 # 0 to 10 point radiuses scatter(x,y,s=a

Re: [Tutor] The Disappearing Program (py2exe)

2010-02-20 Thread Wayne Watson
auld wrote: "Wayne Watson" wrote File "matplotlib\__init__.pyc", line 478, in _get_data_path RuntimeError: Could not find the matplotlib data files <---What is this? C:\Users\Wayne\Sandia_Meteors\Sentinel_Developm

Re: [Tutor] The Disappearing Program (py2exe)

2010-02-20 Thread Wayne Watson
This apparently not quite as easy as the py2exe suggests when MPL is involved. See <http://www.py2exe.org/index.cgi/MatPlotLib>. It looks like I have some reading and work to do. On 2/20/2010 3:21 AM, Wayne Watson wrote: Yes, I sent a message there last night. No responses yet. Stran

Re: [Tutor] The Disappearing Program (py2exe)

2010-02-20 Thread Wayne Watson
ist. I hadn't noticed it last night, since it got stuck in my server as spam. On 2/20/2010 3:21 AM, Wayne Watson wrote: Yes, I sent a message there last night. No responses yet. Strangely I don't see it posted yet. That was six hours ago. Well, I finish off my night's sleep in about

[Tutor] "Two" Card Monty with File Operations--Reading from Wrong Folder (W7?)

2010-02-21 Thread Wayne Watson
I have a program called TrackStudy.py and another called ReportTool.py Track runs above an Events folder that contains txt files that it examines.Report runs in an Events folder on the same txt files. Neither is operated when the other is operating. Both only read the same files. I've bee

Re: [Tutor] "Two" Card Monty with File Operations--Reading from Wrong Folder (W7?) !!!

2010-02-22 Thread Wayne Watson
to the wrong file. Good grief. What has Win7 brought? On 2/21/2010 7:29 PM, Wayne Watson wrote: ... The question is why does Report see the folder in the wrong folder? Although I think I've verified matters, I could be off. Is there a way to ensure I'm really getting to the ri

[Tutor] Verifying My Troublesome Linkage Claim between Python and Win7

2010-02-23 Thread Wayne Watson
A few days ago I posted a message titled ""Two" Card Monty. The problem I mentioned looks legitimate, and remains puzzling. I've probed this in a newsgroup, and no one has an explanation that fits. My claim is that if one creates a program in a folder that reads a file in the folder it and the

Re: [Tutor] Verifying My Troublesome Linkage Claim between Python and Win7

2010-02-27 Thread Wayne Watson
am in folder1 (one). I do not believe I've experienced this sort of linkage in any WinOS before. I believed I confirmed that the same behavior occurs using cmd prompt. I'll now head for Alan's reply. On 2/23/2010 5:35 PM, Dave Angel wrote: Wayne Watson wrote: A few days ago I pos

Re: [Tutor] Verifying My Troublesome Linkage Claim between Python and Win7

2010-02-27 Thread Wayne Watson
I just referenced Alan to my response to you, and included this statement. Once you've both read the first reply to you and this, then you should both be in synch with where I'm at. To Alan=== Oh, I also changed the name of folder1 in the reply to Dave to see what wo

Re: [Tutor] Verifying My Troublesome Linkage Claim between Python and Win7

2010-02-27 Thread Wayne Watson
See below. On 2/27/2010 10:58 AM, Steven D'Aprano wrote: On Sun, 28 Feb 2010 05:30:49 am Wayne Watson wrote: Ok, I'm back after a three day trip. You are correct about the use of pronouns and a few misplaced words. I should have reread what I wrote. I had described this in bet

Re: [Tutor] Verifying My Troublesome Linkage Claim between Python and Win7

2010-02-27 Thread Wayne Watson
On 2/27/2010 12:38 PM, Dave Angel wrote: Wayne Watson wrote: Ok, I'm back after a three day trip. You are correct about the use of pronouns and a few misplaced words. I should have reread what I wrote. I had described this in better detail elsewhere, and followed that description wit

Re: [Tutor] Verifying My Troublesome Linkage Claim between Python andWin7

2010-02-27 Thread Wayne Watson
(Apparently, I did not send this about 6 hours ago. Anyway, here it is.) Let's start from the response I just made to Dave Angel minutes ago, or, at least very recently. I think I wrote a bit more accurately about matters. We'll continue as appropriate from that point. Let me answer some of

Re: [Tutor] Verifying My Troublesome Linkage Claim between Python and Win7

2010-02-27 Thread Wayne Watson
On 2/27/2010 5:24 PM, Steven D'Aprano wrote: Hello Wayne, I sympathise with your problem, but please understand you are not making it easy for us when you give us incoherent information. I hope the coherency has improved recently. :-) I think if you saw the cramped quarters I'm in that

Re: [Tutor] Verifying My Troublesome Linkage Claim between Python and Win7

2010-02-27 Thread Wayne Watson
Hang in there. My story about HP tech support took me a bit off course. I think I can provide a meaningful description from the stand point of the properties of each py file. I want to look at this carefully. -- "There is nothing so annoying as to have two people talk

Re: [Tutor] Verifying My Troublesome Linkage Claim between Python and Win7

2010-02-28 Thread Wayne Watson
I just posted the details a moment ago to Steven. On 2/28/2010 3:46 AM, Dave Angel wrote: Wayne Watson wrote: You tell us to "try this" and give a folder structure: Folder1 track1.py data1.txt data2.txt data3.txt Folder2 track1.py dset1.txt

[Tutor] Why is the max size so low in this mail list?

2010-03-01 Thread Wayne Watson
See Subject. 40K here, but other Python lists allow for larger (total) sizes. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 3

Re: [Tutor] Verifying My Troublesome ...+My Final Word

2010-03-01 Thread Wayne Watson
y, thanks for your effort. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet Stop the illegal killing of dolph

[Tutor] Understanding (Complex) Modules

2010-03-03 Thread Wayne Watson
icular problem. So far, looking at the plentiful number of examples of MPL, and probably some of the other modules mentioned above have not provided a lot of insight. Is there some relationship between modules and objects that I'm not seeing that could be of value? --

Re: [Tutor] Understanding (Complex) Modules

2010-03-19 Thread Wayne Watson
rano To: tutor@python.org Sent: Thu, March 4, 2010 6:24:15 PM Subject: Re: [Tutor] Understanding (Complex) Modules On Thu, 4 Mar 2010 12:24:35 pm Wayne Watson wrote: > First a little preamble before my questions. > > Most of my work in Python has required modifying a program that uses > module

[Tutor] Press Enter to quit. Silently maybe.

2010-03-23 Thread Wayne Watson
put('Press Enter to quit') sys.exit() -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet

Re: [Tutor] Press Enter to quit. Silently maybe.

2010-03-23 Thread Wayne Watson
there crept into the finish here. Yes, no need to fiddle with the finish. Just let it reach the end. On 3/23/2010 3:08 PM, Steven D'Aprano wrote: On Wed, 24 Mar 2010 07:47:40 am Wayne Watson wrote: I use this code to quit a completed program. What on earth for? If the progr

[Tutor] Why this Difference in Importing NumPy 1.2 vs 1.4?

2010-03-26 Thread Wayne Watson
\lib\site-packages\scipy\stats\stats.py", line 191, in     import scipy.special as special   File "C:\Python25\lib\site-packages\scipy\special\__init__.py", line 22, in     from numpy.testing import NumpyTest ImportError: cannot import name NumpyTest >>>     Comments? --

[Tutor] Finding the version # of a module, and py module problem

2010-08-05 Thread Wayne Watson
r scipy modules. I need to find out his version numbers. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet "Re

Re: [Tutor] Finding the version # of a module, and py module problem

2010-08-05 Thread Wayne Watson
I should have mentioned I use windows. import numpy numpy.__version__ It's now written in my Py book! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-06 Thread Wayne Watson
execution. I am not confident that using py2exe will solve this problem. Is there a Python tool that provides some thorough description of a Python installation? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-07 Thread Wayne Watson
27;d guess.) Cheers On Friday 06 August 2010, Wayne Watson wrote: Yes, porpoises was a (old) pun. Back in Feb. I raised a question related to Subject. I just wanted to know if Python code could be compiled in some sense. Robert Berman pitched in with some help. Although I was making progress

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-07 Thread Wayne Watson
tly deleting the modules like numpy and scipy. After that, he should be able to follow the instructions written by the sponsor. On 8/6/2010 2:18 PM, Emile van Sebille wrote: On 8/6/2010 10:51 AM Wayne Watson said... Yes, porpoises was a (old) pun. Back in Feb. I raised a question related to

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-07 Thread Wayne Watson
he version # at the end. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-07 Thread Wayne Watson
/PyMOTW/zipimport/ Regards, Iyer  ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 h

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-07 Thread Wayne Watson
ase (of Numpy?), and that may be where my partner went wrong. I'm pretty sure he jumped ahead of my versions despite my cautions. On 8/6/2010 5:18 PM, Alan Gauld wrote: "Wayne Watson" wrote programs w/o him stumbling. I send him a py program written using Windows Python 2.5. He

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-07 Thread Wayne Watson
ch as matplotlib, numpy, and scipy. Then it has all sorts of other bells and whistles, as well. HTH, Wayne -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121°

Re: [Tutor] Distributing Python Code for Commercial Porpoises?

2010-08-07 Thread Wayne Watson
rors that will crop up in the real world. Always test deployable code in a real, native execution environment - outside the development tool and outside the development folder structure too. Include the installation process (whether automated or manual) in your test. -- Wayne Watson (W

[Tutor] Moving from Python 2.5.4 to 2.5.2?

2010-08-16 Thread Wayne Watson
programs I've sent him. I'm presuming he did not put them under c:\Python. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32"

Re: [Tutor] Moving from Python 2.5.4 to 2.5.2?

2010-08-16 Thread Wayne Watson
The question is would going back likely cause problems? I'm dealing with neophytes. He's messed up before. On 8/16/2010 8:58 AM, Luke Paireepinart wrote: On Mon, Aug 16, 2010 at 10:39 AM, Wayne Watson wrote: My partner got ahead of the game last year, and installed 2.

Re: [Tutor] Moving from Python 2.5.4 to 2.5.2?

2010-08-16 Thread Wayne Watson
o, which issues? There shouldn't be hardly any reason to force you all to maintain the exact same python version, especially if you're in the same sub-version (2.5) On Mon, Aug 16, 2010 at 3:57 PM, Wayne Watson wrote: The question is would going back likely cause problems? I'

Re: [Tutor] Moving from Python 2.5.4 to 2.5.2?

2010-08-16 Thread Wayne Watson
No question about that. For the record, I'm not going to ask him to change based on the answers here. On 8/16/2010 5:14 PM, Steven D'Aprano wrote: On Tue, 17 Aug 2010 06:57:37 am Wayne Watson wrote: The question is would going back likely cause problems? I'm dealing with

Re: [Tutor] IDLE vs PythonWin

2009-02-09 Thread Wayne Watson
it was just to show that you don't necessarily need to use an all-in-one IDE like Pythonwin or IDLE, -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) The Richard Feynma

Re: [Tutor] apply() after class?

2009-02-09 Thread Wayne Watson
Title: Signature.html Ah, ha. Good old polymorphism (from my long gone C++ days). Back to the book, old Lutz.  I'll try the print.  Thanks. I'll check out  tkSimpleDialog's description in one of the several pdfs I have on Tk.  Alan Gauld wrote: "Wayne Watson" wrot

Re: [Tutor] Tkinter program start with focus?`

2009-02-10 Thread Wayne Watson
l.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) The Richard Feynman Problem-Solving Algorithm:   (1) write down the problem;   (2) think very hard;   (3) write down the

Re: [Tutor] IDLE vs PythonWin

2009-02-10 Thread Wayne Watson
ernal commands from within the editor, but I prefer to have a eparate window where I can refer to the output of previous runs by scrolling back.   Alan Gauld Author of the Learn To Program website http://www.alan-g.me.uk/ From: Wayne Watson To: ALAN GAULD Sent: Tuesda

[Tutor] Reply All Dilemma of This List

2009-02-10 Thread Wayne Watson
to, the ASTC, for someone's consideration. I suppose that someone might be whoever created this mail list. It' definitely different than used here, and no one uses "Reply All" to my knowledge. Maybe they can figure out if it has applicability here. -- Wayne Watson (Wat

Re: [Tutor] Reply All Dilemma of This List

2009-02-10 Thread Wayne Watson
? :-) Martin Walsh wrote: Wayne Watson wrote: I belong to many, many forums, Yahoo Groups, (Usenet) newsgroups, and mail lists. Probably 100 or more. I think it's fair to say that none of them but this one has an implicit "Reply All". For newsgroups and mail lists, I just p

[Tutor] IDLE/phythonWin -- Who's On First? (Abbott and Costello)

2009-02-10 Thread Wayne Watson
the dialog, press OK to leave the dialog. Boom, as above. (This does not mean pythonWin doesn't have problems of its own. ) If I just execute the code, the console shows no problems. IDLE is unhappy. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01

Re: [Tutor] IDLE/phythonWin -- Who's On First? (Abbott and Costello)

2009-02-11 Thread Wayne Watson
other doesn't. I'm going to do a WinMerge compare between the current py and a slightly older one. Alan Gauld wrote: "Wayne Watson" wrote Signature.htmlMy program in IDLE bombed with: == Exception in Tkinter callback Traceback (most recent c

Re: [Tutor] IDLE/phythonWin -- Who's On First? (Abbott and Costello)

2009-02-11 Thread Wayne Watson
spect something else like that lurks in the code. Wayne Watson wrote: I ran it w/o using either IDLE/pyWin, and it worked without any messages, as shown by the console window. Isn't this the same as using the console? Outside of the two, my guess is that some subtle was made to the cod

[Tutor] Keeping Dictonary Entries Ordered

2009-02-11 Thread Wayne Watson
file, I'd like to keep them in the order above. That I want to write the config file in order. Perhaps, I need a list like c_names = ["start_time", "gray_scale", "long"] to get the keys out in the order I need? Maybe there's another way? -- Wayne W

Re: [Tutor] Keeping Dictonary Entries Ordered

2009-02-11 Thread Wayne Watson
#x27;: True, 'long': 120.0} >>> for i, x in config_names.items(): ...     print i, x ... start_time 18:00:00 gray_scale True long 120.0 >>> On Wed, Feb 11, 2009 at 7:48 PM, Wayne Watson <sierra_mtnv...@sbcglobal.net> wrote: I have a dictionary that

Re: [Tutor] IDLE/phythonWin -- Who's On First? (Abbott and Costello)

2009-02-11 Thread Wayne Watson
This appears to be an old problem. . However, the question remains. What to do about it? reboot? I killed about a dozen pythonwin.exe task, but to no avail. Wayne Watson wrote: Using WinMerge, I found a difference between the two that shouldn't have been, but it didn't solve t

Re: [Tutor] IDLE/phythonWin -- Who's On First? (Abbott and Costello)

2009-02-12 Thread Wayne Watson
That's a good reason. I'm off to a XP Pro group to see how to break out of this, and restore order to IDLE. ALAN GAULD wrote: There used to be a lot of problems running Tkinter programs inside IDLE but most of these have been solved since about v2.3. However it does still through up

[Tutor] Variable to String?

2009-02-13 Thread Wayne Watson
Title: Signature.html That's pretty much the question in Subject. I've got a date time variable with, for example, 15:00:00 in hh:mm:ss format, and I'd like to make it a string. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg.

Re: [Tutor] Variable to String?

2009-02-13 Thread Wayne Watson
te: On Fri, Feb 13, 2009 at 3:50 PM, Wayne Watson wrote: That's pretty much the question in Subject. I've got a date time variable with, for example, 15:00:00 in hh:mm:ss format, and I'd like to make it a string.

Re: [Tutor] Keeping Dictonary Entries Ordered

2009-02-14 Thread Wayne Watson
(): print i,x 8 9 1 2 3 4 5 7 Alan G. ___ Tutor maillist  -  Tutor@python.org http://mail.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Neva

[Tutor] Reading a Text File with tkFileDialog, askopenfilename+enumerate

2009-02-15 Thread Wayne Watson
r enumerate seems scarce. BTW, is there a thorough document on the use of files in Python out there somewhere? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) S, quiet. I

Re: [Tutor] Reading a Text File with tkFileDialog, askopenfilename+enumerate

2009-02-15 Thread Wayne Watson
a chance at finding my python bkmrks, I've put python in the title to make sure I have a fighting chance with their search to find them. One cannot even do a search on "python" and then do a "Move To" to put them in a single folder. I might as well roll dice. This

Re: [Tutor] Reading a Text File with tkFileDialog, askopenfilename+enumerate

2009-02-15 Thread Wayne Watson
Title: Signature.html Yes, true enough about simplicity, but see my response to Alan. Kent Johnson wrote: On Sun, Feb 15, 2009 at 9:16 AM, Wayne Watson wrote: 3. Where can I find out more about enumerate, as used here: input_file=open('Initial.sen','r&

Re: [Tutor] Reading a Text File with tkFileDialog, askopenfilename+enumerate

2009-02-15 Thread Wayne Watson
now have duplicates. Ones in their original place and the ones that were  "moved". It's a copy and not a move.  Try it sometime by creating some test bkmrks and a folder. I've had repeated problems with Alan Gauld wrote: "Wayne Watson" wrote Thanks to your u

Re: [Tutor] Reading a Text File with tkFileDialog, askopenfilename+enumerate

2009-02-15 Thread Wayne Watson
ate object yields pairs containing a count (from  |  zero) and a value yielded by the iterable argument.  enumerate is useful  |  for obtaining an indexed list: (0, seq[0]), (1, seq[1]), (2, seq[2]), ... ... Kent Johnson wrote: On Sun, Feb 15, 2009 at 2:47 PM, Wayne Watson wrote: I'

Re: [Tutor] Reading a Text File with tkFileDialog, askopenfilename+enumerate

2009-02-15 Thread Wayne Watson
n! Alan G ___ Tutor maillist  -  Tutor@python.org http://mail.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT

[Tutor] Control Variables and a Dictionary with a GUI Interface

2009-02-16 Thread Wayne Watson
ettings(self): <<- ...     def SaveConfigFile(self):     def PrintConfigData():     def OpenConfigFile(self):     ... (~50 more def's at this level) ==end of skeletal== main loop=== def Process():  <<- (with mainloop code)     root = Tk()

[Tutor] exec "self.abc=22" ?

2009-02-16 Thread Wayne Watson
Title: Signature.html Python doesn't like the code in the Subject (unqualified exec not allowed in function). but easily likes self.abc="22". However, I'd like to assemble the assignment as a string, as shown in Subject, and execute it. Is there a way to do this? --

Re: [Tutor] exec "self.abc=22" ?

2009-02-16 Thread Wayne Watson
it with a dictionary? What else lurks out there that might be useful along these lines? Alan Gauld wrote: "Wayne Watson" wrote Python doesn't like the code in the Subject (unqualified exec not allowed in function). but easily likes self.abc="22". We'd need to

  1   2   3   4   5   >