Re: [Tutor] school physics/math courses

2008-10-17 Thread Wayne Watson
Title: Signature.html Nothing from the physics newsgroup nor from a group on education that has inight to 9-12 grades. Wayne Watson wrote: I posted a query on sci.physics (newsgroup) on this question. I'll get back if anything useful pops up. Try Amazon with a search on python sc

[Tutor] Convert a Sequence of Images into an AVI file

2008-10-16 Thread Wayne Watson
out of the file and make an avi file from them. What in Python will help me do that? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "If Stupidity got us into this mess,

Re: [Tutor] school physics/math courses

2008-10-16 Thread Wayne Watson
Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

[Tutor] How Do I tell Which Versions of Libraries/Modules I Have?

2008-10-15 Thread Wayne Watson
Title: Signature.html That's the question in the Subject. Can Idle tell me? I see a Path Browser. In general, how does one know what versions and modules are required for say something like matplotlib? -- Wayne Watson (Watson Adventures, Prop., Nevada Cit

Re: [Tutor] Looking for Clues to Make a Program Produce avi Files Instead ...

2008-10-15 Thread Wayne Watson
\n' sys.exit() else: print 'error, something went wrong!' sys.exit() -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "If Stupidit

Re: [Tutor] Looking for Clues to Make a Program Produce avi Files Instead ...

2008-10-15 Thread Wayne Watson
See movie-clue at Kent Johnson wrote: On Wed, Oct 15, 2008 at 1:25 AM, Wayne Watson <[EMAIL PROTECTED]> wrote: ... of mov files. (See Subject). Our meteor software program uses a py program to produce a movie from images taken by an all-sky camera. The frames are in a simp

[Tutor] Looking for Clues to Make a Program Produce avi Files Instead ...

2008-10-14 Thread Wayne Watson
inal movie. No audio is involved. I can post the file (600 lines+) or send it, if anyone wants to take a look at it. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "Things are going

Re: [Tutor] pylab Failure

2008-10-13 Thread Wayne Watson
ething is seriously wrong outside the program, which apparently others have successfully worked with. It came off the matplotlib web page. When I come back to this problem, I'll be better able to focus on it. Alan Gauld wrote: "Wayne Watson" <[EMAIL PROTECTED]> wrote Yes (b

Re: [Tutor] pylab Failure

2008-10-12 Thread Wayne Watson
Title: Signature.html Kent Johnson wrote: On Sun, Oct 12, 2008 at 8:34 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: What's more likely TO run python/Tkinter with graphics than IDLE? In this thread or an earlier one? pythonwin? See my previous

Re: [Tutor] pylab Failure

2008-10-12 Thread Wayne Watson
Slight corrections--in red, caps. Wayne Watson wrote: What's more likely TO run python/Tkinter with graphics than IDLE? I'm looking at py2exe right now, but that seems useful for a completed program. On that topic, I noticed that my Start->All Progs menu item now, po

Re: [Tutor] pylab Failure

2008-10-12 Thread Wayne Watson
see pretty much what I had before, except it adds: Fatal Pyton error: Pystring_InterInPlace: strings only please! The rest is about the run time error. Kent Johnson wrote: On Sun, Oct 12, 2008 at 7:56 AM, Wayne Watson <[EMAIL PROTECTED]> wrote: The terminal window flashed briefly,

Re: [Tutor] pylab Failure

2008-10-12 Thread Wayne Watson
__ as __main__.  I see  __file_ c:\\Python24'Lib\\idelib\\ide.pyw/ I have no idea what that means. Above I see bdb.run().line 366 cmd in globals,locals, then __main__line1 from pylab mount" It seems a bit odd that the previous msg window posted above says MS Visual C++ Runtime error. --

Re: [Tutor] pylab Failure

2008-10-12 Thread Wayne Watson
inish() after the plot line and it died the same way. Same if I put it before plot. Same before arrange. Dies same way with only the import line. There must be something wrong with the matplot module install? Alan Gauld wrote: "Wayne Watson" <[EMAIL PROTECTED]> wrote Here'

[Tutor] pylab Failure

2008-10-11 Thread Wayne Watson
ge (mV)') title('About as simple as it gets, folks') grid(True) show() finish() -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "Things are going to get

Re: [Tutor] Critiquing My Program

2008-10-11 Thread Wayne Watson
ost images of something I'm trying to fix, and an easy visual image can help a lot. However the post works, it's under my name. Kent Johnson wrote: On Sat, Oct 11, 2008 at 12:28 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: Perhaps at the top of my list is the use of

Re: [Tutor] Critiquing My Program

2008-10-11 Thread Wayne Watson
Title: Signature.html Here's where the code resides Kent Johnson wrote: On Sat, Oct 11, 2008 at 4:06 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: Unfortunately, I need to stick to 2.4 or possibly 2.5 for awhile. I posted the code. Posting the URL to the

[Tutor] Critiquing My Program

2008-10-11 Thread Wayne Watson
nts to critique what I have, just ask for a copy. I'll send you a copy (files, output?) of this rapidly changing program. However, I suspect my initial exploration will cease by mid-week. It's already providing useful data, so I may want to give it a rest before really getting deep in

[Tutor] Tuple of Tuples

2008-10-11 Thread Wayne Watson
tuple") to list >>> x.append((1,2)) >>> x [(1, 2)] That'll probably do me. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "Truth is mighty an

[Tutor] Running Two Versions of Python on the Same PC

2008-10-11 Thread Wayne Watson
Title: Signature.html Is it possible to do as in Subject on Win XP? Say, 2.4 and 2.5. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "Truth is mighty and will prevail. The

Re: [Tutor] Text Scatter Plots?

2008-10-10 Thread Wayne Watson
ires python 2.3 as a min. Any idea? Kent Johnson wrote: On Mon, Sep 29, 2008 at 11:33 AM, Wayne Watson <[EMAIL PROTECTED]> wrote: I don't really want to dabble with graphics at this point, although I have some months ago, but maybe I can grab something very elementary an

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-10 Thread Wayne Watson
Title: Signature.html I decided on WinMerge. It works fine, but unless I missed it does not highlight changed lines on a b/w printer. I found some options for color, but none of them applied to the "yellow" line highlighting for differences. Wayne Watson wrote: I'm sure

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Wayne Watson
Title: Signature.html Make that "with" and not "win" comp. Wayne Watson wrote: Well, maybe I'll give Cygwin a go again. I tried it 2-3 years ago and it was troublesome. I'd really like to have Unix/Linux available, so maybe. I really don't use Linux any

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Wayne Watson
en in a Win env. What's the trick win comp? The window disappears quickly. Alan Gauld wrote: "Wayne Watson" <[EMAIL PROTECTED]> wrote Is there a Win Python environment that provides Linux like facilities like diff (compare) and checking in and out program files? Cygwin p

Re: [Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Wayne Watson
Title: Signature.html I'm sure you're correct, but I posted a similar message about diff on the Newsgroup, and got nowhere. Anyway, it looks like there are some good choices. Thanks. Kent Johnson wrote: On Thu, Oct 9, 2008 at 12:03 PM, Wayne Watson <[EMAIL PROTECTED]> wro

[Tutor] Python Working Environment, Checkout, Compare (diff), ...

2008-10-09 Thread Wayne Watson
to see the line by line differences between what I now have and the original program. Is there some way I might be able to simply identity my code from the original?  I suppose I could put a comment after every line, but that seems tedious. -- Wayne Watson (Watson Adventures, Prop.,

Re: [Tutor] Reading Files and Such

2008-10-09 Thread Wayne Watson
Title: Signature.html bob gailer wrote: Wayne Watson wrote: I have a Python application that requires the program be run in a specific folder, Win XP. It analyzes and modifies txt files there, and only txt files. The mods require creating a tmp file. The tmp files could just as well be

[Tutor] Tutor Archives and PC Crash

2008-09-30 Thread Wayne Watson
My Win/PC crashed yesterday and I'm not able to follow my recent posts. I'm on another computer now. Is there an archive for the tutor list? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Text Scatter Plots?

2008-09-29 Thread Wayne Watson
l the finery of using GUIs. However, it seems as though there ought to be some really simple set up to just produce a scatter plot. Maybe I'm overestimating the difficulty. Alan Gauld wrote: "Wayne Watson" <[EMAIL PROTECTED]> wrote Is there a text graphics module that does s

[Tutor] Text Scatter Plots?

2008-09-29 Thread Wayne Watson
Title: Signature.html Is there a text graphics module that does say scatter plots or histograms? I'm thinking of stuff prior to the graphics era of computing. I'm looking for something really simple. -- Wayne Watson (Watson Adventures, Prop., Nevad

[Tutor] Reading Files and Such

2008-09-29 Thread Wayne Watson
the folder. It purely analyzes the data in the txt files. Is there some way of doing the reading without the use of os.listdir()? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "Tru

Re: [Tutor] Where Does the DOS Window Come From?

2008-09-24 Thread Wayne Watson
of use, I maybe have seen the message twice. It runs every day for about 10 hours per day. I don't think the program stopped when it was issued. Kent Johnson wrote: On Wed, Sep 24, 2008 at 11:36 AM, Wayne Watson <[EMAIL PROTECTED]> wrote: I'm looking at a GUI applicati

[Tutor] Where Does the DOS Window Come From?

2008-09-24 Thread Wayne Watson
I find why it's used? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) "Truth is mighty and will prevail. There is nothing wrong with this, except that it a

Re: [Tutor] How Match a Dot?

2008-09-23 Thread Wayne Watson
nks. Kent Johnson wrote: On Tue, Sep 23, 2008 at 10:02 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: How do I match a dot in, for example, abc.txt? I want to match it exactly. There must be some sort of escape. Assuming you want to match in a regular _expression_, use \

[Tutor] How Match a Dot?

2008-09-23 Thread Wayne Watson
Title: Signature.html How do I match a dot in, for example, abc.txt? I want to match it exactly. There must be some sort of escape. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time

Re: [Tutor] Local Unbound Mystery

2008-09-20 Thread Wayne Watson
Title: Signature.html Thanks. Still much to learn. Where is your tutorial? Alan Gauld wrote: "Wayne Watson" <[EMAIL PROTECTED]> wrote tried it, but, once the program ends (or dies?), the DOS-like window disappears. How does one prevent that? Another newbie gotcha! :-)

Re: [Tutor] Local Unbound Mystery

2008-09-20 Thread Wayne Watson
create keyop in this example. UnboundLocalError: local variable 'updown' referenced before assignment HTH, -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)

Re: [Tutor] Local Unbound Mystery

2008-09-20 Thread Wayne Watson
HTH, -- 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 "Though no one can go back and make a brand new

Re: [Tutor] Local Unbound Mystery

2008-09-20 Thread Wayne Watson
Title: Signature.html Kent Johnson wrote: On Sat, Sep 20, 2008 at 7:26 AM, Wayne Watson <[EMAIL PROTECTED]> wrote: I do not think I've made an inaccurate observation. Is it possible the IDLE shell is leaving something behind that I can't see? Maybe I had two sh

Re: [Tutor] Local Unbound Mystery

2008-09-20 Thread Wayne Watson
Title: Signature.html Alan Gauld wrote: "Wayne Watson" <[EMAIL PROTECTED]> wrote I do not think I've made an inaccurate observation. Is it possible the IDLE shell is leaving something behind that I can't see? That's very possible. The interpreter will

Re: [Tutor] Local Unbound Mystery

2008-09-20 Thread Wayne Watson
global statement in the full program, and it's working. This was not the case yesterday. I give up trying to explain this. It works as it should, so I'm going to continue making the mods before all this happened. Sander Sweers wrote: On Sat, Sep 20, 2008 at 00:23, Wayne Wa

Re: [Tutor] Local Unbound Mystery

2008-09-19 Thread Wayne Watson
_Dev/debug.py", line 35, in ?     sync_low2high_files()   File "C:/Sandia_Meteors/Improved_Sentinel/Sentinel_Playground/Utility_Dev/debug.py", line 13, in sync_low2high_files     print updown UnboundLocalError: local variable 'updown' referenced before assignment ... http://eff

[Tutor] Local Unbound Mystery

2008-09-19 Thread Wayne Watson
dia_Meteors\Improved_Sentinel\Sentinel_Playground\Utility_Dev\SU_DateTimeAdjust.py", line 35, in sync_low2high_files     print updown UnboundLocalError: local variable 'updown' referenced before assignment -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA

Re: [Tutor] deltatime difficulty

2008-09-18 Thread Wayne Watson
alidating user input. Otherwise, it's close to release, 600+ lines.  It should be very useful for its purpose, which is to basically re-adjust file time stamps.  This was my baby-steps Python program to get to the next program,, which is a bit more formidable. Martin Walsh wrote: Hi W

Re: [Tutor] deltatime difficulty

2008-09-18 Thread Wayne Watson
Title: Signature.html Well, that works. Thanks. How do I know what modules (?) or methods are in datetime? greg whittier wrote: On Thu, Sep 18, 2008 at 8:38 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: What's the problem here. It seems right to me. line 9 is diff =...

[Tutor] deltatime difficulty

2008-09-18 Thread Wayne Watson
round/Utility_Dev/junk.py", line 9, in adjust_ftime     diff = datetime.timedelta(seconds = sec) AttributeError: type object 'datetime.datetime' has no attribute 'timedelta' -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 D

[Tutor] Sort Output

2008-09-17 Thread Wayne Watson
t sort from making it the same I have to resort to copying b into a first? What is the proper way to retain a variable with the original values of a? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)

Re: [Tutor] Python class at Foothill College

2008-09-12 Thread Wayne Watson
ass, please register beforehand by going to: http://www.foothill.fhda.edu/reg/index.php If you have questions, you can contact the instructor at: [EMAIL PROTECTED] ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/t

Re: [Tutor] No Blank Separator between Date and Time Valid?

2008-09-12 Thread Wayne Watson
Do you know of a work around? I can probably provide a simple one by looking for a blank between the time and date. Wayne Watson wrote: Thanks. Yes, 2.4 for Win. Now to find out if the fellow who wrote the s/w package I'm writing a utility for can move his s/w to 2.4. M

Re: [Tutor] No Blank Separator between Date and Time Valid?

2008-09-12 Thread Wayne Watson
Title: Signature.html Thanks. Yes, 2.4 for Win. Now to find out if the fellow who wrote the s/w package I'm writing a utility for can move his s/w to 2.4. Martin Walsh wrote: Wayne Watson wrote: This program segment allows an invalid date to go undetected. See below.

[Tutor] SBC/Yahoo and Spamguard--Stuck in Limbo

2008-09-12 Thread Wayne Watson
title of as part of an e-mail address to let the messages through? Presently, I have to go into the Yahoo mailer and move them from the Spam folder into the Inbox. -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std

Re: [Tutor] How Fix Misdirected Posts to Tutor

2008-09-12 Thread Wayne Watson
Title: Signature.html Thanks. That seems to work. However, I thought I had experimented with it and found otherwise.  Now to remember to do that. It's the only list I have that requires Reply All. It's certainly working now! Kent Johnson wrote: On Fri, Sep 12, 2008 at 7:39 AM, Wa

Re: [Tutor] No Blank Separator between Date and Time Valid?

2008-09-12 Thread Wayne Watson
Title: Signature.html Ah, thanks. I think I figured it out. It's my wonderful Yahoo/Spamguard. It's  probably holding the messages, including mine(!), on the server in the spam folder. In the meantime I'll look at the URL. Kent Johnson wrote: On Fri, Sep 12, 2008 at 7:28 A

Re: [Tutor] Releasing a File for Access

2008-09-12 Thread Wayne Watson
k at the os module and the stat() function. Take a read of the Using the OS topic in my tutorial for basic info on using all of these features. Alan G. http://www.freenetpages.co.uk/hp/alan.gauld/ -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

[Tutor] How Fix Misdirected Posts to Tutor

2008-09-12 Thread Wayne Watson
Maybe the solution is to unsubscribe and resubscribe? I'm using SeaMonkey (Mozilla) for mail and browsing. -- 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&quo

Re: [Tutor] Releasing a File for Access

2008-09-12 Thread Wayne Watson
w me to determine if a file is locked, or that I can break the lock at some level. Alan Gauld wrote: "Wayne Watson" <[EMAIL PROTECTED]> wrote I need to use something like sys.exit(). sys.exit won't change the file permissions etc. It simply sets the exit status of the p

Re: [Tutor] Releasing a File for Access

2008-09-12 Thread Wayne Watson
Title: Signature.html I'm using 2.4 for Win. I'll look into the tempfile module. Tim Golden wrote: Wayne Watson wrote: Enclosed is a segment of a program which copies a txt file, but replaces the first line with a new one. The new one has a suffix of tmp. After it executed th

[Tutor] No Blank Separator between Date and Time Valid?

2008-09-12 Thread Wayne Watson
date and time: 2008/1/1 x00:00:30  <- Invalid input caught Invalid date input. Use /mm/dd hh:mm:ss. prefix:  False Enter date and time: end bye ... -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time

Re: [Tutor] Releasing a File for Access

2008-09-11 Thread Wayne Watson
e 70 characters per line, and typically no more than 100 lines. I know of no other way to make it faster. It should be sufficient for these purposes. Although I user might try to rename  500 files at a single shot. bob gailer wrote: Wayne Watson wrote: Enclosed is a segment of a program whi

[Tutor] Releasing a File for Access

2008-09-11 Thread Wayne Watson
(input_file):     if j == 0: # replace header     output_file.write("Event time: "+new_event_date)     continue     output_file.write(line) # copy other lines     output_file.close()     input_file.close()     print "modified txt file with event info"     # now c

[Tutor] No Blank Separator between Date and Time Valid?

2008-09-11 Thread Wayne Watson
0080101_30.27 Enter date and time: 2008/1/100:00:30 <- Why is this valid. The fields are not spearated. dout:  20080110_30 prefix:  v20080110_30.27 OK:  v20080110_30.27 Enter date and time: 2008/1/1 x00:00:30  <- Invalid input caught Invalid date input. Use /

Re: [Tutor] Looking at a String as a Struct?

2008-09-11 Thread Wayne Watson
Title: Signature.html Wayne Watson wrote: Thanks. I had a hunch that might be a good way to do it. I saw something like this in other s/w. Now I know what they were up to. Omer wrote: Class Person:     def __init__(str):         self.Firstname = str[0:4]         self.Surname

Re: [Tutor] Fwd: Looking at a String as a Struct?

2008-09-11 Thread Wayne Watson
t the mess. -- Forwarded message -- From: Jaggo <[EMAIL PROTECTED]> Date: Thu, Sep 11, 2008 at 6:25 PM Subject: Re: [Tutor] Looking at a String as a Struct? To: Wayne Watson <[EMAIL PROTECTED]> I think had I faced this sort of a problem I would've created a Class for 'em

Re: [Tutor] Looking at a String as a Struct?

2008-09-11 Thread Wayne Watson
t Johnson wrote: On Thu, Sep 11, 2008 at 6:58 AM, Wayne Watson <[EMAIL PROTECTED]> wrote: Is it possible in Python to look at a string as a "struct". I don't think a struct exists in python. Actually, is there something analogous to a record. In the case of st

[Tutor] Looking at a String as a Struct?

2008-09-11 Thread Wayne Watson
t-name, date_of birth, which consists of month, day, and year, and finally SSN, street_address, state, city, and zip_code. I'd like to access these fields directly instead of lastname = record[38:55]. What if fields are not just strings, but some numeric values? -- Wayne Watson (Wat

Re: [Tutor] Dealing with Microseconds

2008-09-10 Thread Wayne Watson
.7*3), ... 27 (2.7*10 and not 20), ... Kent Johnson wrote: On Wed, Sep 10, 2008 at 8:13 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: I'd like to allow a user to enter a drift rate in seconds per day into a program along with the date and time, a base, to begin calculation o

[Tutor] Dealing with Microseconds

2008-09-10 Thread Wayne Watson
2.74 might be entered.  Using 2.74 for a time that's 24 hours from the base would cause me to record the increase as 2 seconds. How can I account for fractional increases? I see that the tuple allows for microseconds, but I'm not sure arithmetic or formatting is allowed on it.  --

Re: [Tutor] Formating from hhmms to hh:mm:ss

2008-09-08 Thread Wayne Watson
This sure was tricky business, but it's working. Thanks to all who participated. Now if I can my "tutor" posting problem squared away! Kent Johnson wrote: On Sun, Sep 7, 2008 at 11:27 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: Well, maybe. Here'

Re: [Tutor] Formating from hhmms to hh:mm:ss

2008-09-07 Thread Wayne Watson
x27; >From a PLEAC web: # The easiest way to convert this to a datetime seems to be; now = datetime.datetime(*time.strptime("16/6/1981", "%d/%m/%Y")[0:5]) # the '*' operator unpacks the tuple, producing the argument list. I tried the [0:6] and it got the same resul

Re: [Tutor] Formating from hhmms to hh:mm:ss

2008-09-07 Thread Wayne Watson
roblem is reminiscent of my problems. IDLE? Python 2.4.x? Kent Johnson wrote: On Sun, Sep 7, 2008 at 9:33 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: Here's as far as I can go with this. The last line of output asks the question I need an answer for. (Once again my dir

Re: [Tutor] Formating from hhmms to hh:mm:ss

2008-09-07 Thread Wayne Watson
? I need the result 20080321_113405 -- 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 &q

Re: [Tutor] Formating from hhmms to hh:mm:ss

2008-09-07 Thread Wayne Watson
nts of the file and the output.  I'm pretty sure the problem will be identified quickly if you do that. On Sun, Sep 7, 2008 at 6:56 PM, Wayne Watson <[EMAIL PROTECTED]> wrote: I have no idea how the time class module got into this. Possibly it's a remnant of having t

[Tutor] Formating from hhmms to hh:mm:ss

2008-09-07 Thread Wayne Watson
me, I have a function that converts hhmmss to hh:mm:ss,  and another to go the other way. In between, I add seconds. Maybe datetime can do this more easily without the use of my functions? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 D

[Tutor] Inserting an Indent in IDLE?

2008-09-07 Thread Wayne Watson
Title: Signature.html Occasionally I would like to indent 20-30 lines of code. I don't see a way to do this in IDLE other than brute force. The Replace dialog doesn't seem to offer a way. Does it by any chance use regular expressions to do this? -- Wayne Watson (Watson

[Tutor] Exit from a Program While in IDLE

2008-09-04 Thread Wayne Watson
hen I get to the last line, it exits next. Win XP, Python 2.4. -- 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] Message 'list' object has no attribute 'strptime ?

2008-09-04 Thread Wayne Watson
ot;)     nhour   = int(hour)     nminute = int(minute)     nsecond = int(second)     except:     print     print "Invalid date values or format (hh:mm:ss): ", in_time     print "Valid examples: 15:55:02, 8:20:5"     print "Invalid examples: 14: 2:33

[Tutor] Message 'list' object has no attribute 'strptime ?

2008-09-04 Thread Wayne Watson
ribute 'strptime' However, in another function the line   x = time.strptime(fmt_date, "%m %d %Y") with fmt_date = "10 02 2008" works just fine. Does my format string in strptime for time have a problem? If I use the shell to set fmt_time and x = time.strptime(fmt_time, ...,

[Tutor] Checking for a Valid Date

2008-09-01 Thread Wayne Watson
ction? -- 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 Interesting government experience prior to thei

Re: [Tutor] How Compute # of Days between Two Dates?

2008-09-01 Thread Wayne Watson
Title: Signature.html How do I just get the current time? The following gives me 00:00:00. import datetime dt = datetime.time() print "dt: ", dt greg whittier wrote: On Mon, Sep 1, 2008 at 10:17 AM, Wayne Watson <[EMAIL PROTECTED]> wrote: That's the que

[Tutor] Responding to Tutor Posts, Reply-To

2008-09-01 Thread Wayne Watson
a Reply-To, which sends the post to the list. Did I set something up wrong when I subscribed? -- 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°

[Tutor] How Compute # of Days between Two Dates?

2008-09-01 Thread Wayne Watson
words not some really strange period of time well outside our current era of history. -- 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°

[Tutor] Working with IDLE in XP, Set Up for A New Program

2008-08-27 Thread Wayne Watson
folder of my py files, and not somewhere else. -- 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 “We

[Tutor] Python open of c:\ path Problem

2008-08-23 Thread Wayne Watson
oblematic segment is just a hack of a similar statement which has the same problem and a much longer path. I suspect the problem is with the back slash. Comments? BTW, how does one continue a long statement that has, say, a long path to a file? -- Wayne Watson (Watson Adventures, Prop.,

Re: [Tutor] IDE

2008-06-12 Thread Wayne Oliver
Alan Gauld wrote: > > "Tom" <[EMAIL PROTECTED]> wrote >> Does anyone know which of the IDE's mentioned above have a similar >> feature. (I'm on Vista,sorry!) > > Most will do it one way or another. > > We mentioned filtering the buiffer in vim, emacs has a shell bvuffer > facility in which you can

[Tutor] Setting the PC Clock to Correct Time

2008-04-19 Thread Wayne Watson
am is activated at dusk. -- 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 "Philosophy

[Tutor] Diff for Python

2008-04-04 Thread Wayne Watson
Is there a Linux diff-like command for Python code? I'd like to see the difference between two py files. -- 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

Re: [Tutor] Saving an Image in a Given Format

2008-03-29 Thread Wayne Watson
I see that I misunderstood the syntax of Python for: current_image.convert current_image.save current_image is a "pointer" whose type is some class, so convert() and save() must be methods in that class. The question is what class/module? PIL? Wayne Watson wrote: > I'm pr

[Tutor] Saving an Image in a Given Format

2008-03-29 Thread Wayne Watson
dn't work? I see that current_image.convert is involved in one place and current_image.save in the first. What module owns these "current" methods? Hmmm, maybe I needed to use jpeg? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W

[Tutor] Putting the Output of Help to a File

2008-02-18 Thread Wayne Watson
See Subject. Is it possible? -- 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 "I know th

[Tutor] tkSimpleDialog, Tkinter, and IDLE

2008-02-18 Thread Wayne Watson
importing the name tkSimpleDialog. Hasn't it just been obtained with from? When I enter import tkinter into IDLE, it objects. However, if I run a program in idle that imports it, then all is OK. What's up there? -- Wayne Watson (Watson Adventures, Prop., Nevad

[Tutor] Following the Mouse in a Graphics Area

2008-02-17 Thread Wayne Watson
. -- 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 "I know that this defies the law of gravity, but

[Tutor] Producing a pop-up on graphics area?

2008-02-15 Thread Wayne Watson
I want to allow a user who is looking at a graphic area that contains an image to be able to right-click on the graphic to produce a menu of choices. What's available to do that? -- Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 3

[Tutor] Understanding the ImageDraw Options

2008-02-13 Thread Wayne Watson
omething similar for ImageDraw? -- 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 "I know th

[Tutor] Various Topics from IDLE to ImageDraw Options

2008-02-13 Thread Wayne Watson
ere is are there more detailed explanations somewhere for the options? For example, I found a rather helpful document at New Mexico Tech, which goes into considerable detail on options for Tkinter. See page 4 of <http://infohost.nmt.edu/tcc/help/pubs/tkinter.pdf> by John Shipman. --

<    4   5   6   7   8   9