Re: [Tutor] Loops

2009-02-14 Thread pa yo
Thanks Alan. after a few hours scratching my head I finally fixed it by removing all the indents and remaking them in the correct position. Payo On Sat, Feb 14, 2009 at 1:52 AM, Alan Gauld wrote: > "pa yo" wrote > >> The way I have come up with to solve this problem is to put the >> following

Re: [Tutor] Copy file function works, but not with adding the date copied

2009-02-14 Thread bob gailer
Please don't attach a reply of this nature to comments I made that you have not responded to. If you want our help, please respond to our comments and questions. cclpia...@comcast.net wrote: Hi Bob, I found out from Alan Gauld that the file i was attempting to open was a binary file. And bec

Re: [Tutor] Copy file function works, but not with adding the date copied

2009-02-14 Thread cclpianos
Hi Bob, I found out from Alan Gauld that the file i was attempting to open was a binary file. And because of that the strangeness occurred. I haven't yet learned to work with the binaries as of yet. Thanks! Pat 4. Re: Copy file function works,but not with adding the date copi

[Tutor] Fwd: Extract image from RTF file

2009-02-14 Thread Marc Tompkins
Forgot to Reply All. -- Forwarded message -- From: Marc Tompkins Date: Sat, Feb 14, 2009 at 11:35 AM Subject: Re: [Tutor] Extract image from RTF file To: Bryan Fodness On Sat, Feb 14, 2009 at 8:40 AM, Bryan Fodness wrote: > I have a large amount of RTF files where the only thi

Re: [Tutor] Extract image from RTF file

2009-02-14 Thread Alan Gauld
"Bryan Fodness" wrote I have a large amount of RTF files where the only thing in them is an image. I would like to extract them an save them as a png. The link I posted on another thread claims to handle images in RTF files http://www.nava.de/2005/04/06/pyrtf/ HTH. -- Alan Gauld Author

[Tutor] Extract image from RTF file

2009-02-14 Thread Bryan Fodness
I have a large amount of RTF files where the only thing in them is an image. I would like to extract them an save them as a png. Eventually, I would like to also grab some text that is on the image. I think PIL has something for this. Does anyone have any suggestion on how to start this?

Re: [Tutor] extracting phrases and their memberships from syntax

2009-02-14 Thread عماد نوفل
2009/2/14 Paul McGuire > -Original Message- > From: Emad Nawfal (عماد نوفل) [mailto:emadnaw...@gmail.com] > Sent: Saturday, February 14, 2009 8:59 AM > To: Paul McGuire > Cc: tutor@python.org > Subject: Re: [Tutor] extracting phrases and their memberships from syntax > > > Thank you so mu

Re: [Tutor] Keeping Dictonary Entries Ordered

2009-02-14 Thread Wayne Watson
Title: Signature.html It looks like a secondary list should do the trick. I'm not adverse to keeping one. My list is maybe 30-40 items at most. When I posted originally, I was just trying to find if I had overlooked something. It appears that without a secondary list, it gets pretty tricky. A

Re: [Tutor] extracting phrases and their memberships from syntax

2009-02-14 Thread Paul McGuire
-Original Message- From: Emad Nawfal (عماد نوفل) [mailto:emadnaw...@gmail.com] Sent: Saturday, February 14, 2009 8:59 AM To: Paul McGuire Cc: tutor@python.org Subject: Re: [Tutor] extracting phrases and their memberships from syntax Thank you so much Paul, Kent, and Hoftkamp. I was askin

Re: [Tutor] extracting phrases and their memberships from syntax

2009-02-14 Thread عماد نوفل
On Fri, Feb 13, 2009 at 10:20 AM, Paul McGuire wrote: > Pyparsing has a built-in helper called nestedExpr that fits neatly in with > this data. Here is the whole script: > > from pyparsing import nestedExpr > > syntax_tree = nestedExpr() > results = syntax_tree.parseString(st_data) > > from ppri