Grayson, Tkinter, Chapter 5

2009-03-28 Thread W. eWatson
button, plain button, combo box, etc in the lower right corner. In fact, I suspect that's exactly it. Well, I just leave this open for comments anyway.It is a very instructive example on grids. -- W. eWatson (121.015 Deg. W, 39.262

PyFits for Windows?

2009-03-28 Thread W. eWatson
It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? -- 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: Geometry package

2009-03-28 Thread W. eWatson
k about it, the article was aimed at finding the minimal distance between two lines in space. Anyway, the Google tip might get you started. -- W. eWatson (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N,

Re: PyFits for Windows?

2009-03-29 Thread W. eWatson
Michiel Overtoom wrote: W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? According to http://www.stsci.edu/resources/software_hardware/pyfits: "PyFITS’s source code is pure Python. It requires Python version 2.3 or new

Re: PyFits for Windows?

2009-03-29 Thread W. eWatson
John Yeung wrote: On Mar 28, 4:03 pm, Michiel Overtoom wrote: W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? To install it, unpack the tar file and type: python setup.py install" It looks like PyFits is platform-i

Re: PyFits for Windows?

2009-03-29 Thread W. eWatson
W. eWatson wrote: Michiel Overtoom wrote: W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? According to http://www.stsci.edu/resources/software_hardware/pyfits: "PyFITS’s source code is pure Python. It requires Python v

Re: PyFits for Windows?

2009-03-29 Thread W. eWatson
andrew cooke wrote: W. eWatson wrote: I downloaded the tar file, and untarred it with IZarc. That's a strange way to package it, that is, for Windows. This almost suggests not many Win users are using it. One of the pages, <http://www.scipy.org/wikis/topical_software/Tutorial>, h

Re: PyFits for Windows?

2009-03-30 Thread W. eWatson
W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? I'm now on the scipy mail list. Things look hopeful, according to the first respondent, to meet my criteria mentioned in another sub-thread to this one: "I'm ho

Re: PyFits for Windows?

2009-03-31 Thread W. eWatson
W. eWatson wrote: W. eWatson wrote: It looks like PyFits downloads are for Linux. Isn't there anything available for Win (xp)? I'm now on the scipy mail list. Things look hopeful, according to the first respondent, to meet my criteria mentioned in another sub-thread to this one: &

Default Tkinter Structure of a 640x480 PIL BMP File?

2009-04-01 Thread W. eWatson
See Subject. Does it have a header, DIB, palette, and data section? What is the default depth? -- 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

PIL Handbooks

2009-04-02 Thread W. eWatson
1.1.6 has some features like digital cameras and scanners. Ah here, <http://pypi.python.org/pypi/PIL/1.1.6>. Any other news? I'd settle even for a 1.1.5 pdf of the handbook right now. -- W. eWatson (121.015 Deg. W, 39.262 Deg.

Re: PIL Handbooks

2009-04-02 Thread W. eWatson
Irmen de Jong wrote: W. eWatson wrote: I'm very new to PIL, and don't see any handbooks for 1.1.6 or the forthcoming 1.1.7. In fact, this looks like the extent of them: * Python Imaging Library Handbook for 1.1.5 (online) * Python Imaging Library Handbook for 1.1.3 (PDF) So

PIL\Tkinter and Transparencies, Rubber Lines, and Dragging Image Objects

2009-04-07 Thread W. eWatson
ng in my observation, I'd like to know what it is. To further explore "drawing graphics", what roughly is the capability of Tkinter or PIL to allow one to place a transparent layer (mode, I guess in PIL may be roughly equivalent to a layer in tools like Photoshop) on top of an image a

Re: PIL\Tkinter and Transparencies, Rubber Lines, and Dragging Image Objects

2009-04-07 Thread W. eWatson
You got it. That lamda did look a little odd. The white background is opaque and the telescope is seen as green. The program will ask for a file. I didn't write the code. Eric Brunel wrote: W. eWatson wrote: Basically, I'd like to know how one (broadly, e.g., references in Win-lan

Problem with PIL/Tkinter Program Example

2009-04-09 Thread W. eWatson
Something is amiss here. The program produces a canvas in which one can move an object around. The input file is hard coded (see open). If you want to try it, you'll need to provide a file. Python error below. Name space difficulty? #Mouse movement from Tkinter import * import PIL import Im

Re: Problem with PIL/Tkinter Program Example

2009-04-09 Thread W. eWatson
Peter Otten wrote: W. eWatson wrote: Something is amiss here. The program produces a canvas in which one can move an object around. The input file is hard coded (see open). If you want to try it, you'll need to provide a file. Python error below. Name space difficulty? Traceback

Writing a "Raw" Image to a File (Win, PIL)

2009-04-11 Thread W. eWatson
I have an image of described as: Img Info: {} size: (640, 480) format: None mode: P palette: bands: ('P',) type: I'd like to write it to a file. Apparently, I need to convert it to a string first. How do I do that? Pickle? --

Re: Writing a "Raw" Image to a File (Win, PIL)

2009-04-11 Thread W. eWatson
Diez B. Roggisch wrote: W. eWatson schrieb: I have an image of described as: Img Info: {} size: (640, 480) format: None mode: P palette: bands: ('P',) type: I'd like to write it to a file. Apparently, I need to convert it to a string first. How do I do that? Pi

Re: Writing a "Raw" Image to a File (Win, PIL)

2009-04-11 Thread W. eWatson
MRAB wrote: W. eWatson wrote: I have an image of described as: Img Info: {} size: (640, 480) format: None mode: P palette: bands: ('P',) type: I'd like to write it to a file. Apparently, I need to convert it to a string first. How do I do that? Pickle? Hav

after_cancel?

2009-04-17 Thread W. eWatson
I'm looking a program that I'm not real familiar with that uses an after_cancel method and after_id variable. Are they related to some particular widget and what is there function? Perhaps they are related to a Cancel button on a widget? --

Re: after_cancel?

2009-04-18 Thread W. eWatson
Saul Spatz wrote: W. eWatson wrote: I'm looking a program that I'm not real familiar with that uses an after_cancel method and after_id variable. Are they related to some particular widget and what is there function? Perhaps they are related to a Cancel button on a widg

Re: after_cancel?

2009-04-18 Thread W. eWatson
Saul Spatz wrote: W. eWatson wrote: I'm looking a program that I'm not real familiar with that uses an after_cancel method and after_id variable. Are they related to some particular widget and what is there function? Perhaps they are related to a Cancel button on a widg

Conventional Y Axis Label in pylab plot

2009-04-29 Thread W. eWatson
I'd like to label the plot axes as x and y. All I see is xlabel and ylabel. ylabel puts y on its side, rotated 90 degrees from the horizontal. Is there way to put it in a normal reading (science/math) position? -- W. eWatson (121.015 Deg. W, 3

Filling in Degrees in a Circle (Astronomy)

2008-08-22 Thread W. eWatson
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 this profile of obstacles (trees) to an as

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-22 Thread W. eWatson
Mensanator wrote: On Aug 22, 6:12 pm, "W. eWatson" <[EMAIL PROTECTED]> 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

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-22 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-22 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 rounde

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: jun

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, 39

Re: Total No. of "Records" in a File?

2008-08-23 Thread W. eWatson
le to know 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

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., Nevad

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 this

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 bisec

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,

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-23 Thread W. eWatson
tom wrote: W. eWatson wrote: 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

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 09/30/

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 = num

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 = num

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 page. How to install pyfdate. Save pyfdate.py into your Pytho

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\p

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 ch

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 cha

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 Deg

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 fi

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 str

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 s

Tough Guy Competition

2008-08-28 Thread W. eWatson
Something to do on your weekends. -- 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 -- http://mail.python.org/mailman/listinfo/pyth

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

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 ge

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: n

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 acco

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 nigh

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 acco

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

How Compute # of Days between Two Dates?

2008-08-31 Thread W. eWatson
ly strange 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: --

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 on

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 0

Syntax Problem with strptime in Python 2.4

2008-09-08 Thread W. eWatson
time('20080321_113405', format)[0:5]) Does anyone 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"

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 with

Correcting for Drift between Two Dates

2008-09-08 Thread W. eWatson
I can change nnn to nnn+(fraction of day 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 D

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 w

Object Not Callable, float?

2009-11-29 Thread W. eWatson
Here's an traceback error msg I get. Exception in Tkinter callback Traceback (most recent call last): File "C:\Python25\lib\lib-tk\Tkinter.py", line 1403, in __call__ return self.func(*args) File "C:\Sandia_Meteors\Sentinel_Development\Development_Sentuser+Utilities\sentuser\sentuser_200

Re: Object Not Callable, float?

2009-11-29 Thread W. eWatson
Ben Finney wrote: "W. eWatson" writes: "C:\Sandia_Meteors\Sentinel_Development\Development_Sentuser+Utilities\sentuser\sentuser_20090103+hist.py", line 467, in ShowHistogram mean = sum(hist) TypeError: 'float' object is not callable It means you're cal

Re: Object Not Callable, float?

2009-11-29 Thread W. eWatson
John Bokma wrote: "W. eWatson" wrote: Yikes. Thanks very much. Python seems to act unlike other language in which words like float are reserved. I'll use asum. The problem is that there is a function sum and you creating a float sum: sum = 0.0 and mean = sum(hist) eve

The Strong Relationship between MatLab and MatPlotLib? What One Needs to Know?

2009-11-30 Thread W. eWatson
Although MatPlotLib has plenty of examples, they do not seem to cover the fundamentals like figure. It seems as though in someway this is dependent upon a user's knowledge of MatLab. Is this true, or oes MatPlotLib provide some description of how forming a figure works? -- http://mail.python.or

Why Can't I Delete a File I Created with Win XP?

2009-12-05 Thread W. eWatson
I'm trying to store analytic data in a folder called Analysis. If the user doesn't have the folder, I make one for him, and then write a txt file into it. In this case a histogram of values, x and frequency. However, it appears that I made a mistake somewhere and cannot delete it using the Win

Re: Why Can't I Delete a File I Created with Win XP?

2009-12-05 Thread W. eWatson
e problem, and now OS somehow released it's grip, that is, whatever process was trying to use the "file" too. John Machin wrote: On Dec 5, 9:57 pm, "W. eWatson" wrote: [snip] s = self.current_path s referred to something ... s = "Analysis" b

Re: Why Can't I Delete a File I Created with Win XP?

2009-12-05 Thread W. eWatson
J wrote: On Sat, Dec 5, 2009 at 20:32, J wrote: connections eventually. So being able to find who has a lock on a given file or directory if the program dies unexpectedly would be useful. Google tells me that the program Process Explorer from SysInternals will provide most of the functional

Re: Why Can't I Delete a File I Created with Win XP?

2009-12-05 Thread W. eWatson
The original program and code are not mine. I have no idea if that specific piece of code has ever been tested. Generally the program works quite well, and when needed creates the Events folder without any difficulty. That folder is used heavily by writing new data files to it thousands of time

Re: Why Can't I Delete a File I Created with Win XP?

2009-12-05 Thread W. eWatson
J wrote: On Sat, Dec 5, 2009 at 21:14, W. eWatson wrote: What I'm trying to do is really simple. In the Win XP NG, I have two suggestions to get rid of the Analysis folder and the empty file in it. One is to use a program like you suggested, and the other is to delete it from DOS. I

What is the significance of after() in this code?

2009-12-06 Thread W. eWatson
See Subject. def StackImages(self): self.Upload("P") self.after_id = self.master.after(1,self.GetFrameOne) -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the significance of after() in this code?

2009-12-07 Thread W. eWatson
Martin P. Hellwig wrote: W. eWatson wrote: See Subject. def StackImages(self): self.Upload("P") self.after_id = self.master.after(1,self.GetFrameOne) If you are talking tkinter here, it is an alarm callback. See http://effbot.org/tkinterbook/widget.htm Ve

Why Doesn't XP Pro Show Size, Time and Date Mod of a Created File?

2009-12-07 Thread W. eWatson
I created a folder, and wrote a file to it. When I look at what files are in it, they are correct. However, The Size, Type, and Date Mod are not shown. Why am I missing those columns? I'm writing files with a suffix of dat, which seem only to match up with video CD movie. -- http://mail.python.

Re: Why Doesn't XP Pro Show Size, Time and Date Mod of a Created File?

2009-12-07 Thread W. eWatson
Mensanator wrote: On Dec 5, 11:38�pm, "W. eWatson" wrote: I created a folder, and wrote a file to it. When I look at what files are in it, they are correct. However, The Size, Type, and Date Mod are not shown. Why am I missing those columns? I'm writing files with a suffix of

Using Python to Execute a C or FORTRAN Program (Windows)

2009-12-14 Thread W. eWatson
I think Python is capable of executing a compiled C or FORTRAN program, and maybe even getting some parameters passed back. Does anyone have a example of how this might be done? I'm running under Win XP Pro. -- http://mail.python.org/mailman/listinfo/python-list

Either IDLE Can't Start a subprocess or a firewall software firewall is blocking the connection (Win)--Battlin McAfee

2009-12-16 Thread W. eWatson
See Subject msg from Python 2.5 Win XP. It is preceded by a "Socket Error". It happened while I had a simple program displayed, and I wanted to see the shell. The msg occurred when I pressed Shell on Run from the menu. I played around for awhile, but got nowhere. Same msg. I did remove my McAfe

Re: Using Python to Execute a C or FORTRAN Program (Windows)

2009-12-16 Thread W. eWatson
Mensanator wrote: On Dec 14, 8:14�pm, "W. eWatson" wrote: I think Python is capable of executing a compiled C or FORTRAN program, Sure, if it was compiled to an .exe file. and maybe even getting some parameters passed back. Sure, if the program prints to stdout. Does any

Re: Using Python to Execute a C or FORTRAN Program (Windows)

2009-12-17 Thread W. eWatson
sturlamolden wrote: On 17 Des, 03:41, "W. eWatson" wrote: His program was originally written in Python, but a new hardware device (capture card) had no good interface with Python, so he wrote it in C++, which does. From my knowledge of the Python program before the entry of c++, i

Re: Either IDLE Can't Start a subprocess or a firewall software firewall is blocking the connection (Win)--Battlin McAfee

2009-12-17 Thread W. eWatson
Alf P. Steinbach wrote: * W. eWatson: See Subject msg from Python 2.5 Win XP. It is preceded by a "Socket Error". It happened while I had a simple program displayed, and I wanted to see the shell. The msg occurred when I pressed Shell on Run from the menu. I played around for awhil

Windows, IDLE, __doc_, other

2009-12-20 Thread W. eWatson
When I use numpy.__doc__ in IDLE under Win XP, I get a heap of words without reasonable line breaks. "\nNumPy\n=\n\nProvides\n 1. An array object of arbitrary homogeneous items\n 2. Fast mathematical operations over arrays\n 3. Linear Algebra, Fourier Transforms, Random Number ... Is

Re: Windows, IDLE, __doc_, other

2009-12-20 Thread W. eWatson
Add to this. Isn't there a way to see the arguments and descriptions of functions? -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows, IDLE, __doc_, other

2009-12-21 Thread W. eWatson
Lie Ryan wrote: On 12/21/2009 1:19 PM, W. eWatson wrote: When I use numpy.__doc__ in IDLE under Win XP, I get a heap of words without reasonable line breaks. "\nNumPy\n=\n\nProvides\n 1. An array object of arbitrary homogeneous items\n 2. Fast mathematical operations over arrays

Re: Live Video Capture using Python

2009-12-21 Thread W. eWatson
David Lyon wrote: Also try.. http://www.unixuser.org/~euske/python/vnc2flv/index.html On Mon, 21 Dec 2009 11:15:32 +0530, Banibrata Dutta wrote: Have you searched the archives of this list ? I remember seeing a related discussion 5-6 months back. On Mon, Dec 21, 2009 at 2:35 AM, aditya shukl

Re: Windows, IDLE, __doc_, other

2009-12-21 Thread W. eWatson
Lie Ryan wrote: On 12/22/2009 6:39 AM, W. eWatson wrote: Wow, did I get a bad result. I hit Ctrl-P, I think instead of Alt-P, and a little window came up showing it was about to print hundreds of pages. I can canceled it, but too late. I turned off my printer quickly and eventually stopped the

Re: Windows, IDLE, __doc_, other

2009-12-21 Thread W. eWatson
Stephen Hansen wrote: On Mon, Dec 21, 2009 at 1:51 PM, W. eWatson wrote: Lie Ryan wrote: On 12/22/2009 6:39 AM, W. eWatson wrote: Wow, did I get a bad result. I hit Ctrl-P, I think instead of Alt-P, and No, its not true. A built-in module does not mean its available everywhere. It means

Re: Windows, IDLE, __doc_, other

2009-12-21 Thread W. eWatson
Stephen Hansen wrote: On Mon, Dec 21, 2009 at 2:57 PM, W. eWatson wrote: This has got to be some sort of IDLE issue then. Huh? How do you figure? When I run a simple program. If I open this program in the IDLE editor: #import math print "hello, math world." print cos(0.5) pri

Difference Between Two datetimes

2009-12-27 Thread W. eWatson
According to one web source, this program: import datetime bree = datetime.datetime(1981, 6, 16, 4, 35, 25) nat = datetime.datetime(1973, 1, 18, 3, 45, 50) difference = bree - nat print "There were", difference, "minutes between Nat and Bree" yields: There were 3071 days, 0:49:35 minutes betwe

Re: Difference Between Two datetimes

2009-12-27 Thread W. eWatson
other way to do this. Maybe not. Roy Smith wrote: In article , "W. eWatson" wrote: t1=datetime.datetime.strptime("2009/01/02 13:01:15","%y/%m/%d %H:%M:%S") doesn't do it. ValueError: time data did not match format: data=2009/01/02 13:01:15 fmt=%y/%m/%d

Re: Difference Between Two datetimes

2009-12-27 Thread W. eWatson
Ben Finney wrote: "W. eWatson" writes: How do I get the strings into a shape that will accommodate a difference? For example, t1=datetime.datetime.strptime("2009/01/02 13:01:15","%y/%m/%d %H:%M:%S") doesn't do it. ValueError: time data did not match forma

Re: Difference Between Two datetimes

2009-12-28 Thread W. eWatson
BTW, all times are local to my city. Same time zone. -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference Between Two datetimes

2009-12-28 Thread W. eWatson
Lie Ryan wrote: On 12/28/2009 5:42 PM, W. eWatson wrote: You're right. Y. Works fine. The produces datetime.datetime(2009, 1, 2, 13, 1, 15). If I now use t2=datetime.datetime.strptime("2009/01/04 13:01:15","%Y/%m/%d %H:%M:%S") I get tw as datetime.datetime(2009, 1,

Re: Difference Between Two datetimes

2009-12-28 Thread W. eWatson
Roy Smith wrote: In article , "W. eWatson" wrote: BTW, all times are local to my city. Same time zone. Yes, but how much time has elapsed between "2009/0/04 13:01:15" and "2009/06/04 13:01:15"? Even if I tell you that both timestamps were done in the sa

Re: Windows, IDLE, __doc_, other

2009-12-28 Thread W. eWatson
It the IDLE shell, it's not possible to retrieve lines entered earlier without copying them. Is there an edit facility? I suggest you download a programmers' editor (like Notepad++ or PsPad) for programming work and use the basic Python interpreter for interactive work. The basic interpreter

Re: Windows, IDLE, __doc_, other

2009-12-28 Thread W. eWatson
Lie Ryan wrote: On 12/22/2009 12:06 PM, W. eWatson wrote: ... You must be starting IDLE without subprocess. Did you see this message IDLE 2.6.1 No Subprocess when starting IDLE. Yes, I usually start in a folder where I have my py program files, and do a right-click for IDLE

Re: Difference Between Two datetimes

2009-12-28 Thread W. eWatson
D'Arcy J.M. Cain wrote: On Mon, 28 Dec 2009 08:20:28 -0800 "W. eWatson" wrote: Sort of the opposite of a stopped clock. It's right twice a day. How does one solve the DST problem? Depends on which DST problem you have. There is more than one solution depending on what th

Re: Difference Between Two datetimes

2009-12-28 Thread W. eWatson
Ben Finney wrote: "W. eWatson" writes: Lie Ryan wrote: what's strange about it? the difference between 2009/01/02 13:01:15 and 2009/01/04 13:01:15 is indeed 2 days... Can you elaborate what do you mean by 'strange'? Easily. In one case, it produces a one argument

<    1   2   3   4   5   >