Re: Who's on First, IDLE or pythonWin? Dialog Problem?

2009-02-11 Thread W. eWatson
! http://mail.python.org/pipermail/python-list/2001-March/076069.html The question now is what can I do about it? reboot? Just to re-iterate the answer I provided the answer to above, I'm using Tkinter for the program's GUI. -- W. eWatson (121.015 Deg. W

Re: Who's on First, IDLE or pythonWin? Dialog Problem?

2009-02-11 Thread W. eWatson
So, how do I get rid of it? reboot? Just to re-iterate the I provided the question to above, I'm using Tkinter for the program's GUI. -- W. eWatson (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2

Re: Who's on First, IDLE or pythonWin? Dialog Problem?

2009-02-11 Thread W. eWatson
. -- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter w.pack()?

2009-02-07 Thread W. eWatson
MRAB wrote: W. eWatson wrote: ... I thought some months ago, I found Google commands that would operate in the browser link window. Guess not. BTW, isn't there an O'Reilly book on Google hacks of this sort? Where else does one find out about these Google tools? Google? :-) http

Re: Tkinter w.pack()?

2009-02-06 Thread W. eWatson
one find out about these Google tools? -- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http://mail.python.org

Re: Tkinter w.pack()?

2009-02-01 Thread W. eWatson
Steve Holden wrote: W. eWatson wrote: Steve Holden wrote: W. eWatson wrote: r wrote: On Jan 28, 10:12 pm, W. eWatson notval...@sbcglobal.net wrote: Where in the world is a description of pack() for Tkinter widgets? Is it some sort of general method for all widgets? I'm looking in a few docs

Re: Tkinter w.pack()?

2009-01-31 Thread W. eWatson
Steve Holden wrote: W. eWatson wrote: r wrote: On Jan 28, 10:12 pm, W. eWatson notval...@sbcglobal.net wrote: Where in the world is a description of pack() for Tkinter widgets? Is it some sort of general method for all widgets? I'm looking in a few docs that use it without ever saying where

Re: Tkinter w.pack()?

2009-01-31 Thread W. eWatson
Gabriel Genellina wrote: En Thu, 29 Jan 2009 14:55:13 -0200, W. eWatson notval...@sbcglobal.net escribió: Gabriel Genellina wrote: En Thu, 29 Jan 2009 02:57:04 -0200, W. eWatson notval...@sbcglobal.net escribió: The word pack doesn't exist on the NMT pdf. Maybe there's a newer one

Python Doc 2.6 vs 2.5--A Matter of Format?

2009-01-31 Thread W. eWatson
should find the 2.6 equivalent of http://docs.python.org/genindex.html? -- W. eWatson (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 Web Page

Re: Tkinter w.pack()?

2009-01-29 Thread W. eWatson
Gabriel Genellina wrote: En Thu, 29 Jan 2009 02:57:04 -0200, W. eWatson notval...@sbcglobal.net escribió: The word pack doesn't exist on the NMT pdf. Maybe there's a newer one? There is a PDF version of An Introduction to Tkinter here: http://www.pythonware.com/library/ Thanks. I have

Re: Tkinter w.pack()?

2009-01-29 Thread W. eWatson
r wrote: On Jan 28, 10:57 pm, W. eWatson notval...@sbcglobal.net wrote: The word pack doesn't exist on the NMT pdf. Maybe there's a newer one? Only the grid manager is discussed at NMT. I just like how at NMT the widget attributes are in a table and then a list the widget methods follows

Re: Drawing and Displaying an Image with PIL

2009-01-28 Thread W. eWatson
employees another module or writes the file into a folder, then displays it with a paint program? -- W. eWatson (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 Web Page

Re: Drawing and Displaying an Image with PIL

2009-01-28 Thread W. eWatson
Peter Otten wrote: W. eWatson wrote: r wrote: Change this line: draw.line((0,0),(20,140), fill=128) To This: draw.line((0,0, 20,140), fill=128) And you should be good to go. Like you said, if you need to combine 2 tuples you can do: (1,2)+(3,4) Yes, that's true, but the big question is how

Tkinter w.pack()?

2009-01-28 Thread W. eWatson
anywhere. I see Universal methods for widgets, but no mention of pack(). package, packed, but no pack. While I'm at it, what is w in the result of w = Label(parent, image=photo)? Just a widget pointer, address? -- W. eWatson (121.015 Deg. W, 39.262

Re: Tkinter w.pack()?

2009-01-28 Thread W. eWatson
r wrote: On Jan 28, 10:12 pm, W. eWatson notval...@sbcglobal.net wrote: Where in the world is a description of pack() for Tkinter widgets? Is it some sort of general method for all widgets? I'm looking in a few docs that use it without ever saying where it is described. For one, http

Re: Tkinter w.pack()?

2009-01-28 Thread W. eWatson
/tkinterbook/place.htm There seems to be a pattern here. :-) Everything you need to know about Tkinter exists here: http://effbot.org/tkinterbook/ and at the NMT site i showed you before The word pack doesn't exist on the NMT pdf. Maybe there's a newer one? -- W

Drawing and Displaying an Image with PIL

2009-01-27 Thread W. eWatson
? -- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Drawing and Displaying an Image with PIL

2009-01-27 Thread W. eWatson
r wrote: On Jan 27, 9:15 pm, W. eWatson notval...@sbcglobal.net wrote: Here's my program: # fun and games import Image, ImageDraw im = Image.open(wagon.tif) # it exists in the same Win XP # folder as the program draw = ImageDraw.Draw(im) draw.line((0, 0) + im.size, fill=128) draw.line((0,0

Re: What is intvar? [Python Docs]

2009-01-26 Thread W. eWatson
r wrote: W. eWatson, I contacted the author of New Mexico Techs Introduction to Tkinter a couple of weeks ago. He is going to update the reference material with a few missing widgets and some info on Photo and Bitmap classes. I really love the NMT layout and use it quite often. Fredricks

Re: What is intvar?

2009-01-25 Thread W. eWatson
Steve Holden wrote: W. eWatson wrote: W. eWatson wrote: r wrote: here is a good explanation of control vars: http://infohost.nmt.edu/tcc/help/pubs/tkinter/control-variables.html Here are 3 great Tkinter refernces in order: http://infohost.nmt.edu/tcc/help/pubs/tkinter/ http://effbot.org

Re: What is intvar?

2009-01-24 Thread W. eWatson
W. eWatson wrote: r wrote: here is a good explanation of control vars: http://infohost.nmt.edu/tcc/help/pubs/tkinter/control-variables.html Here are 3 great Tkinter refernces in order: http://infohost.nmt.edu/tcc/help/pubs/tkinter/ http://effbot.org/tkinterbook/ http://www.pythonware.com

Re: What is intvar?

2009-01-23 Thread W. eWatson
/introduction/ Thanks to all for the reference and tips. -- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http

What is intvar?

2009-01-22 Thread W. eWatson
with Google, and have yet to find a simple explanation of what it's used for. -- W. eWatson (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 Web Page

Re: ActiveState Python Together with Regular Python) ((DLE)

2009-01-12 Thread W. eWatson
John Machin wrote: On Jan 12, 2:00 pm, W. eWatson notval...@sbcglobal.net wrote: I installed Python 2.5 a few months ago with IDLE, and decided I'd like to try windowpy from ActiveState. Is having both of these installed going to cause me trouble? What is windowpy from ActiveState? If you

Re: ActiveState Python Together with Regular Python) ((DLE)

2009-01-12 Thread W. eWatson
John Machin wrote: On Jan 12, 9:16 pm, W. eWatson notval...@sbcglobal.net wrote: John Machin wrote: On Jan 12, 2:00 pm, W. eWatson notval...@sbcglobal.net wrote: I installed Python 2.5 a few months ago with IDLE, and decided I'd like to try windowpy from ActiveState. Is having both

Where Find Activestate Python 2.5?

2009-01-11 Thread W. eWatson
I went to their site and the only choice seems 2.6. I looked around and found no other choices. Is it possible to get 2.5? -- W. eWatson (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: Where Find Activestate Python 2.5?

2009-01-11 Thread W. eWatson
John Machin wrote: On Jan 12, 9:55 am, W. eWatson notval...@sbcglobal.net wrote: I went to their site and the only choice seems 2.6. I looked around and found no other choices. Is it possible to get 2.5? What do you see when you go to http://www.activestate.com/activepython/downloads

ActiveState Python Together with Regular Python) ((DLE)

2009-01-11 Thread W. eWatson
I installed Python 2.5 a few months ago with IDLE, and decided I'd like to try windowpy from ActiveState. Is having both of these installed going to cause me trouble? -- W. eWatson (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz

Re: WinMerge--B/W Shading of Printed Copy to Show Differences?

2008-12-17 Thread W. eWatson
W. eWatson wrote: Jason Scheirer wrote: On Dec 16, 3:56 pm, W. eWatson notval...@sbcglobal.net wrote: Is there a way to highlight differences between the two files when printing in b/w? Help suggests there may be some texturing, but all I see is color choices

WinMerge--B/W Shading of Printed Copy to Show Differences?

2008-12-16 Thread W. eWatson
Is there a way to highlight differences between the two files when printing in b/w? Help suggests there may be some texturing, but all I see is color choices. -- W. eWatson (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site

Re: WinMerge--B/W Shading of Printed Copy to Show Differences?

2008-12-16 Thread W. eWatson
Jason Scheirer wrote: On Dec 16, 3:56 pm, W. eWatson notval...@sbcglobal.net wrote: Is there a way to highlight differences between the two files when printing in b/w? Help suggests there may be some texturing, but all I see is color choices. -- W. eWatson

Re: Python and Its Libraries--Who's on First?

2008-11-17 Thread W. eWatson
Chris Rebert wrote: On Sun, Nov 16, 2008 at 9:25 PM, W. eWatson [EMAIL PROTECTED] wrote: Is there some repository that says something like for Python 2.5 it works with: Win OSes: W2K, XP, Vista For the supported OSes, check the links for the versions on http://python.org/download/ and see

Re: Python and Its Libraries--Who's on First?

2008-11-17 Thread W. eWatson
Ben Finney wrote: W. eWatson [EMAIL PROTECTED] writes: Is there some repository that says something like for Python 2.5 it works with: Win OSes: W2K, XP, Vista numpy vers y, matplotlib vers x. scipy z, etc. I don't understand the question. Do you have some question about the operating

Re: Win 98 with Python 2.5--matplotlib and Numpy problem

2008-11-17 Thread W. eWatson
Tino Wildenhain wrote: W. eWatson wrote: I'm trying to figure out why an application that both myself and a colleague use gives errors when he uses it under W98. I'm using XP. Py 2.5 is installed on each of our machines. His first problem came with ... Clearly things have gone astray

Re: Python and Its Libraries--Who's on First?

2008-11-17 Thread W. eWatson
George Sakkis wrote: On Nov 17, 12:25 am, W. eWatson [EMAIL PROTECTED] wrote: Is there some repository that says something like for Python 2.5 it works with: Win OSes: W2K, XP, Vista numpy vers y, matplotlib vers x. scipy z, etc. http://www.catb.org/~esr/faqs/smart-questions.html#writewell

Re: Python and Its Libraries--Who's on First?

2008-11-17 Thread W. eWatson
. -- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Its Libraries--Who's on First?

2008-11-17 Thread W. eWatson
Aahz wrote: In article [EMAIL PROTECTED], W. eWatson [EMAIL PROTECTED] wrote: George Sakkis wrote: On Nov 17, 12:25 am, W. eWatson [EMAIL PROTECTED] wrote: Is there some repository that says something like for Python 2.5 it works with: Win OSes: W2K, XP, Vista numpy vers y, matplotlib vers x

Re: Win98, Python 2.5 and plotmatlib

2008-11-16 Thread W. eWatson
W. eWatson wrote: Has anyone gotten the combination of items in the Subject to work together? The pylab line here fails: from Tkinter import * from numpy import * import Image import ImageChops import ImageTk import time import binascii import tkMessageBox import tkSimpleDialog from pylab

Win 98 --Is 2.4.x The last version of Python for It?

2008-11-16 Thread W. eWatson
-- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http://mail.python.org/mailman/listinfo/python-list

Win 98 with Python 2.5--matplotlib and Numpy problem

2008-11-16 Thread W. eWatson
? -- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http://mail.python.org/mailman/listinfo/python-list

Python and Its Libraries--Who's on First?

2008-11-16 Thread W. eWatson
Is there some repository that says something like for Python 2.5 it works with: Win OSes: W2K, XP, Vista numpy vers y, matplotlib vers x. scipy z, etc. -- W. eWatson (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15

Win98, Python 2.5 and plotmatlib

2008-11-13 Thread W. eWatson
, ylabel, title, show, xticks, bar It works fine in XP Pro, Py 2.5 -- W. eWatson (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 Web Page: www.speckledwithstars.net

Convertimg a Sequence of Images to an AVI File

2008-10-17 Thread W. eWatson
from them. What in Python will help me do that? -- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http

Re: Convertimg a Sequence of Images to an AVI File

2008-10-17 Thread W. eWatson
W. eWatson wrote: I have a file of images shot at a frame rate of 1/30th of a second. They are 640 by 480 bytes followed immediately by up to 200 smaller images 128x128 pixels. The software I'm using will convert this into a mov file. I'd like to simply take the large images out of the file

Re: Anyone Have (XP) 2.4.4 Installed and Can Check This Simple matplotlib Program?

2008-10-15 Thread W. eWatson
[EMAIL PROTECTED] wrote: On Oct 15, 6:38 am, W. eWatson [EMAIL PROTECTED] wrote: I'm going to try another stab at this problem again. I'd like someone with 2.4.4 and matplotlib-0.98.3.win32-py2.4exe to try it (below). IMHO an important detail of your configuration is missing. What's your

Re: Installing Python 2.4 over 2.4?

2008-10-14 Thread W. eWatson
Terry Reedy wrote: Steve Holden wrote: W. eWatson wrote: I suspect something has been corrupted in Python 2.4. Can I just re-install on top of it, and still expect to have scipy and other pkgs I've installed? On Windows, certainly - you can even uninstall and reinstall and retain your

Re: Installing Python 2.4 over 2.4?

2008-10-14 Thread W. eWatson
Martin v. Löwis wrote: W. eWatson wrote: I suspect something has been corrupted in Python 2.4. Can I just re-install on top of it On Windows, you shouldn't reinstall, but instead run the repair installation, from Add and remove programs. Regards, Martin Do you mean on the Win Control Panel

Re: Python IDLE and Access Denied

2008-10-14 Thread W. eWatson
W. eWatson wrote: Dennis Lee Bieber wrote: On Mon, 13 Oct 2008 19:07:06 -0700, W. eWatson [EMAIL PROTECTED] declaimed the following in comp.lang.python: I had just finished working with IDLE, and tried to double-click on a py file. It produced an OK dialog with the path to the file

Installing Python 2.4 over 2.4?

2008-10-14 Thread W. eWatson
I suspect something has been corrupted in Python 2.4. Can I just re-install on top of it, and still expect to have scipy and other pkgs I've installed? -- W. eWatson (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15

Re: Installing Python 2.4 over 2.4?

2008-10-14 Thread W. eWatson
there about 5 Python parts in the ARP, and one is Python 2.4.4. There's a Change/Remove, and clicking on Change brings up a Python window to change, remove or repair. What is change? A new version? -- W. eWatson (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-14 Thread W. eWatson
Gabriel Genellina wrote: En Sun, 12 Oct 2008 23:45:15 -0300, W. eWatson [EMAIL PROTECTED] escribió: The meat of the matter is the Fatal error msg I copied below. To me it indicates a serious error. Maybe some developer can sort it out. From above post. ++ Ah

Anyone Have (XP) 2.4.4 Installed and Can Check This Simple matplotlib Program?

2008-10-14 Thread W. eWatson
('Press Enter to Quit') sys.exit() t = arange(0.0, 2.0, 0.01) s = sin(2*pi*t) plot(t, s, linewidth=1.0) xlabel('time (s)') ylabel('voltage (mV)') title('About as simple as it gets, folks') grid(True) show() finish() -- W. eWatson (121.015 Deg. W

Python IDLE and Access Denied

2008-10-13 Thread W. eWatson
it there. Python 2.4. Suggestions? -- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http://mail.python.org/mailman

Re: Python IDLE and Access Denied

2008-10-13 Thread W. eWatson
Dennis Lee Bieber wrote: On Mon, 13 Oct 2008 19:07:06 -0700, W. eWatson [EMAIL PROTECTED] declaimed the following in comp.lang.python: I had just finished working with IDLE, and tried to double-click on a py file. It produced an OK dialog with the path to the file and the msg access denied

Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
(s)') ylabel('voltage (mV)') title('About as simple as it gets, folks') grid(True) show() finish() -- W. eWatson (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 Web

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
Dennis Lee Bieber wrote: On Sun, 12 Oct 2008 11:24:32 -0700, W. eWatson [EMAIL PROTECTED] declaimed the following in comp.lang.python: available there. I've long forgotten how to get a console window up in Win XP. I can strip it all the code way down to the from, and it will fail the same

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
Dennis Lee Bieber wrote: On Sun, 12 Oct 2008 12:56:26 -0700, W. eWatson [EMAIL PROTECTED] declaimed the following in comp.lang.python: Oddly when I use cmd, it gets me to settings and docs. If I try c:\whatever I get a msg, and it remains in the same folder. That's likely

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
John Machin wrote: On Oct 13, 9:07 am, W. eWatson [EMAIL PROTECTED] wrote: I worked my way into the folder where the py program is, but couldn't executed. Just entering aprog.py, run aprog.py or exec aprog.py didn't work. One wouldn't expect the run or the exec to work. Try

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
Dennis Lee Bieber wrote: On Sun, 12 Oct 2008 15:07:57 -0700, W. eWatson [EMAIL PROTECTED] declaimed the following in comp.lang.python: I worked my way into the folder where the py program is, but couldn't executed. Just entering aprog.py, run aprog.py or exec aprog.py didn't work

Re: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
please! The rest is about the run time error. This (Pystring) seems quite relevant, but I have no idea what. -- W. eWatson (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: Pylab Fails with Runtime Error on Win XP Under Python 2.4

2008-10-12 Thread W. eWatson
, but I have no idea what. +++ -- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http

Re: Correcting for Drift between Two Dates

2008-09-09 Thread W. eWatson
Steven D'Aprano wrote: On Mon, 08 Sep 2008 21:53:18 -0700, W. eWatson wrote: I have two dates, ts1, ts2 as below in the sample program. I know the clock drift in seconds per day. I would like to calculate the actual date of ts2. See my question at the end of the program. When faced

Re: Syntax Problem with strptime in Python 2.4

2008-09-08 Thread W. eWatson
Diez B. Roggisch wrote: W. eWatson wrote: Apparently, use of strptime of datetime needs a workaround in Python 2.4 to work properly. The workaround is d = datetime.datetime(*(time.strptime(date_string, format)[0:5])). However, when I try to use it, or even use it the regular way, it fails

Correcting for Drift between Two Dates

2008-09-08 Thread W. eWatson
in hh:mm:ss) to # days + fraction of day, D. I want to multiple D by drift # to get seconds of drift in period, then add it to d2. Results 3 days, 6:00:00 2016-09-04 18:00:00 -- W. eWatson (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz

Syntax Problem with strptime in Python 2.4

2008-09-08 Thread W. eWatson
know how to make this work in 2.4? If not, is there a way to achieve the same result? -- W. eWatson (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 Web Page

Re: How Compute # of Days between Two Dates?

2008-09-01 Thread W. eWatson
Grant Edwards wrote: On 2008-09-01, W. eWatson [EMAIL PROTECTED] wrote: That's the question in Subject. For example, the difference between 08/29/2008 and 09/03/2008 is +5. The difference between 02/28/2008 and 03/03/2008 is 4, leap year--extra day in Feb. I'm really only interested in years

Re: How Compute # of Days between Two Dates?

2008-09-01 Thread W. eWatson
Grant Edwards wrote: On 2008-09-01, W. eWatson [EMAIL PROTECTED] wrote: Grant Edwards wrote: On 2008-09-01, W. eWatson [EMAIL PROTECTED] wrote: That's the question in Subject. For example, the difference between 08/29/2008 and 09/03/2008 is +5. The difference between 02/28/2008 and 03/03

How Compute # of Days between Two Dates?

2008-08-31 Thread W. eWatson
period of time well outside our current era of history. -- W. eWatson (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 Web Page: www.speckledwithstars.net/ -- http

Re: Date Comparison and Manipulation Functions?

2008-08-30 Thread W. eWatson
John Machin wrote: On Aug 30, 10:41 am, W. eWatson [EMAIL PROTECTED] wrote: What I'm trying to do is adjust date-time stamped file names for date and time errors. The software program collects through a period that roughly coincides with night hours every day and according to the OS clock

Re: Date Comparison and Manipulation Functions?

2008-08-30 Thread W. eWatson
W. eWatson wrote: John Machin wrote: On Aug 30, 10:41 am, W. eWatson [EMAIL PROTECTED] wrote: What I'm trying to do is adjust date-time stamped file names for date and time errors. The software program collects through a period that roughly coincides with night hours every day and according

Re: Date Comparison and Manipulation Functions?

2008-08-30 Thread W. eWatson
John Machin wrote: On Aug 30, 10:41 am, W. eWatson [EMAIL PROTECTED] wrote: What I'm trying to do is adjust date-time stamped file names for date and time errors. The software program collects through a period that roughly coincides with night hours every day and according to the OS clock

Re: Date Comparison and Manipulation Functions?

2008-08-30 Thread W. eWatson
The author has updated the Tutorial and added a flex method. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tough Guy Competition

2008-08-29 Thread W. eWatson
alex23 wrote: On Aug 29, 3:45 pm, W. eWatson [EMAIL PROTECTED] wrote: Something to do on your weekends. [non-related link clipped] Another thing to do with your weekends would be to -not spam-. Sorry, misdirected. -- W. Watson (121.015 Deg. W

Re: Date Comparison and Manipulation Functions?

2008-08-29 Thread W. eWatson
I just tried the following code, and got an unexpected result. from pyfdate import * t = Time() ts = Time(2008, 8, 29,15,20,7) tnew = ts.plus(months=6) print new date: , tnew Result: new date: 2009-02-28 15:20:07 I believe that should be April 1, 2009. If I use months = 1 and day =31, I get

Re: Lining Up and PaddingTwo Similar Lists

2008-08-29 Thread W. eWatson
castironpi wrote: ... I don't think that's guaranteed by anything. I realized that 'dat.sort()' and 'txt.sort()' weren't necessary, since their contents are moved to a dictionary, which isn't sorted. Actually, I'm getting the file names from listdir, and they appear to be sorted low to high.

Re: Date Comparison and Manipulation Functions?

2008-08-29 Thread W. eWatson
John Machin wrote: On Aug 30, 2:32 am, W. eWatson [EMAIL PROTECTED] wrote: I just tried the following code, and got an unexpected result. from pyfdate import * t = Time() ts = Time(2008, 8, 29,15,20,7) tnew = ts.plus(months=6) print new date: , tnew Result: new date: 2009-02-28 15:20:07 I

Python in a Nutshell -- Book vs Web

2008-08-28 Thread W. eWatson
I read an Amazon of Python in a Nutshell. The first edition is supposedly much like the web site. What web site? The second edition apparently adds more to the book than the web site. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262

Re: Wild Card String Comparison

2008-08-28 Thread W. eWatson
Cameron Laird wrote: In article [EMAIL PROTECTED], W. eWatson [EMAIL PROTECTED] wrote: Is it possible to do a search for a wild card string in another string. For example, I'd like to find v*.dat in a string called bingo. v must be matched against only the first character in bingo

Lining Up and PaddingTwo Similar Lists

2008-08-28 Thread W. eWatson
Maybe there's some function like zip or map that does this. If not, it's probably fairly easy to do with push and pop. I'm just checking to see if there's not some known simple single function that does what I want. Here's what I'm trying to do. I have a list dat like (assume the items are

Re: Lining Up and PaddingTwo Similar Lists

2008-08-28 Thread W. eWatson
castironpi wrote: On Aug 28, 10:50 pm, W. eWatson [EMAIL PROTECTED] wrote: Maybe there's some function like zip or map that does this. If not, it's probably fairly easy to do with push and pop. I'm just checking to see if there's not some known simple single function that does what I want

Tough Guy Competition

2008-08-28 Thread W. eWatson
Something to do on your weekends. http://www.toughguy.co.uk/home.shtml -- W. Watson (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: Date Comparison and Manipulation Functions?

2008-08-27 Thread W. eWatson
John Machin wrote: On Aug 27, 11:24 am, W. eWatson [EMAIL PROTECTED] wrote: John Machin wrote: On Aug 27, 10:21 am, W. eWatson [EMAIL PROTECTED] wrote: I'm using IDLE for Python 2.4, and put pfydate distribution in C:\Python24\Lib\site-packages\pfydate, as required by the ttp://www.ferg.org

Wild Card String Comparison

2008-08-27 Thread W. eWatson
Is it possible to do a search for a wild card string in another string. For example, I'd like to find v*.dat in a string called bingo. v must be matched against only the first character in bingo, and not simply found somewhere in bingo, as might be the case for *v*.dat. -- Wayne

Re: Wild Card String Comparison

2008-08-27 Thread W. eWatson
Timothy Grant wrote: On Wed, Aug 27, 2008 at 8:49 PM, W. eWatson [EMAIL PROTECTED] wrote: Is it possible to do a search for a wild card string in another string. For example, I'd like to find v*.dat in a string called bingo. v must be matched against only the first character in bingo

Re: Wild Card String Comparison

2008-08-27 Thread W. eWatson
Sean DiZazzo wrote: On Aug 27, 8:49 pm, W. eWatson [EMAIL PROTECTED] wrote: Is it possible to do a search for a wild card string in another string. For example, I'd like to find v*.dat in a string called bingo. v must be matched against only the first character in bingo, and not simply found

Re: Date Comparison and Manipulation Functions?

2008-08-26 Thread W. eWatson
[EMAIL PROTECTED] wrote: check out Pyfdate: http://www.ferg.org/pyfdate from pyfdate import * t = Time().add(hours=14) print It is now, t.wdt datestring1 = 2005/10/05 #year,month,day datestring2 = 2002/09/22 #year,month,day datestring3 = 2007/11/11 #year,month,day year,month,day =

Re: Date Comparison and Manipulation Functions?

2008-08-26 Thread W. eWatson
John Machin wrote: On Aug 27, 10:21 am, W. eWatson [EMAIL PROTECTED] wrote: I'm using IDLE for Python 2.4, and put pfydate distribution in C:\Python24\Lib\site-packages\pfydate, as required by the ttp://www.ferg.org/pyfdate/download.html page. How to install pyfdate. Save pyfdate.py

Re: Date Comparison and Manipulation Functions?

2008-08-25 Thread W. eWatson
[EMAIL PROTECTED] wrote: check out Pyfdate: http://www.ferg.org/pyfdate from pyfdate import * t = Time().add(hours=14) print It is now, t.wdt datestring1 = 2005/10/05 #year,month,day datestring2 = 2002/09/22 #year,month,day datestring3 = 2007/11/11 #year,month,day year,month,day =

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-24 Thread W. eWatson
David wrote: What modules do I need to use pylab? I've installed scipy and numpy. http://matplotlib.sourceforge.net/ I'm using Python 2.4. The install looks pretty complicated for Windows. It doesn't seem like matplotlib is a module. -- Wayne Watson (Watson Adventures, Prop.,

Date Comparison and Manipulation Functions?

2008-08-24 Thread W. eWatson
Are there some date and time comparison functions that would compare, say, Is 10/05/05 later than 09/22/02? (or 02/09/22 format, yy/mm/dd) Is 02/11/07 the same as 02/11/07? Is 14:05:18 after 22:02:51? (24 hour day is fine) How about the date after 02/28/04 is 02/29/04, or the date after

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-23 Thread W. eWatson
Maric Michaud wrote: Le Saturday 23 August 2008 01:12:48 W. eWatson, vous avez écrit : The other night I surveyed a site for astronomical use by measuring the altitude (0-90 degrees above the horizon) and az (azimuth, 0 degrees north clockwise around the site to 360 degrees, almost north again

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-23 Thread W. eWatson
Carl Banks wrote: On Aug 22, 7:12 pm, W. eWatson [EMAIL PROTECTED] wrote: Is there some simple operational device in Python that would allow me to create an array (vector) of 360 points from my data by interpolating between azimuth points when necessary? All my data I rounded to the nearest

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-23 Thread W. eWatson
Scott David Daniels wrote: W. eWatson wrote: ... I'm working on this now, but my knowledge of python needs refreshing. Right now I have a file of all the az,el data I've collected, and I'd like to open it with Python for XP. However, Python doesn't like this: junkfile = open('c:\tmp

Total No. of Records in a File?

2008-08-23 Thread W. eWatson
I have an ordinary text file with a CR at the end of a line, and two numbers in each line. Is there some way to determine the number of lines (records) in the file before I begin reading it? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W,

Re: Total No. of Records in a File?

2008-08-23 Thread W. eWatson
the contents of a file without opening and reading that file. W. eWatson wrote: I have an ordinary text file with a CR at the end of a line, and two numbers in each line. Is there some way to determine the number of lines (records) in the file before I begin reading it? -BEGIN PGP SIGNATURE

Re: Total No. of Records in a File?

2008-08-23 Thread W. eWatson
Fredrik Lundh wrote: W. eWatson wrote: I have an ordinary text file with a CR at the end of a line, and two numbers in each line. Is there some way to determine the number of lines (records) in the file before I begin reading it? In the general case, no. A file is just a bunch of bytes

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-23 Thread W. eWatson
I completed a Win Python program and it has generated the necessary data, which I have in turn used successfully with the telescope software. Is there some way to turn this into an executable program for people who do not have Python? -- Wayne Watson (Watson Adventures, Prop.,

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-23 Thread W. eWatson
tom wrote: W. eWatson wrote: The other night I surveyed a site for astronomical use by measuring the altitude (0-90 degrees above the horizon) and az (azimuth, 0 degrees north clockwise around the site to 360 degrees, almost north again) of obstacles, trees. My purpose was to feed

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-23 Thread W. eWatson
Dennis Lee Bieber wrote: On Fri, 22 Aug 2008 23:18:17 -0700, W. eWatson [EMAIL PROTECTED] declaimed the following in comp.lang.python: I'll take a look. I just posted above yours with a more insightful set of data than the first three pointer. Yes, some way of bisecting, or chopping

Turning py into an Executable Program for Win?

2008-08-23 Thread W. eWatson
How do I get my py code into some executable form so that Win users who don't have python can execute it? -- 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,

<    1   2   3   4   5   >