Re: [Tutor] parse emails as they come in

2008-04-01 Thread linuxian iandsd
ok - as i mentioned in my first email i use procmail to put THE BODY of all incoming mail into a file (that is one per incoming email as i use the variable $date-$time in the name). now this file can contain only one email but it can also contain 2 or more (this happens if for example there is a d

Re: [Tutor] how do I use windows.h with python?

2008-04-01 Thread elis aeris
I know how to check msdn site, but I don't understand how things are organized under windll where do they have this ? On Tue, Apr 1, 2008 at 5:45 PM, Alan Gauld <[EMAIL PROTECTED]> wrote: > > "elis aeris" <[EMAIL PROTECTED]> wrote > > > this is a sample code that use window.h function i THINK. >

Re: [Tutor] how do I use windows.h with python?

2008-04-01 Thread Alan Gauld
"elis aeris" <[EMAIL PROTECTED]> wrote > this is a sample code that use window.h function i THINK. > > where can I read up on windll ? The Windows API is documented on the MSDN website. Alternatively find a copy of the Win32API help file, it is usually distributed with development tools like

[Tutor] how do I use windows.h with python?

2008-04-01 Thread elis aeris
this is a sample code that use window.h function i THINK. where can I read up on windll ? class RECT(Structure): _fields_ = [ ('left', c_ulong), ('top', c_ulong), ('right', c_ulong), ('bottom', c_ulong) ] # time.sleep(2) GetForegroundWindow = windll.user32.GetForegro

[Tutor] Sync between Powerpoint slides and Video

2008-04-01 Thread Guess?!?
Hello All, I recently came across couple of websites (www.parleys.com and www.zentation.com) and loved the sync technology between ppt and streaming video. This makes website experience look fast and impressive. I was just curious to know the how is it all done. What technology/software is being us

[Tutor] [ANN] May 2008 Python course

2008-04-01 Thread wesley chun
* apologies if you receive cross-posted duplicates * FINAL REMINDER Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's well-received "Core Python Programming," for another comprehensive intro course next month in beautiful Northern Cal

Re: [Tutor] parse emails as they come in

2008-04-01 Thread Steve Willoughby
On Tue, Apr 01, 2008 at 09:07:04PM +, linuxian iandsd wrote: > a=open('/home/john/data/file_input.tmp', 'r') > b=open('/home/john/data/file_output', 'w') This is collecting mail as it comes in? If you have a mail rule in place to dump mail into this file_input.tmp file, you could run into tro

Re: [Tutor] simple, probably stupid question: single key in console / idle

2008-04-01 Thread Alan Gauld
"Alan Gauld" <[EMAIL PROTECTED]> wrote >> I import msvcrt (running on Windows) but I cant get it to run. >> Is ther somewhere a sample I could peek on? > I just noticed the bit about IDLE in the subject. msvcrt only works in a DOS console it won't work in IDLE because IDLE is detecting the key

Re: [Tutor] parse emails as they come in

2008-04-01 Thread linuxian iandsd
well, my script is so simple ! nothing complicated #!/usr/bin/python # import re, sys a=open('/home/john/data/file_input.tmp', 'r') b=open('/home/john/data/file_output', 'w') aa=a.readlines() n=0 for L in aa: # I split every line because i only need what's after the ":" # the email comes in the

Re: [Tutor] Problem with logic while extracting data from binary file

2008-04-01 Thread Michael Langford
I tried to extract methods, and invert your logic of your if/else statements as to put shorter code blocks higher, and tried to roll many of your if statements into the checks of the while loops. This is algorithm I ended up with. Is this what you were trying to do? The last while loop is pointless

Re: [Tutor] Interactive plots...

2008-04-01 Thread Michael Langford
If you're just talking about something like this (ascii art) drawing: 1:* * * * * * * * ** 0: * * * ** * * * * * * * * * * * * * * -

Re: [Tutor] simple, probably stupid question: single key in console / idle

2008-04-01 Thread Alan Gauld
"Sommer, Matthias" <[EMAIL PROTECTED]> wrote > In the library reference I found "kbhit()" and "getch()" from > msvcrt. > I import msvcrt (running on Windows) but I cant get it to run. > Is ther somewhere a sample I could peek on? You can look at the event handling topic in my tutor. It goves an

[Tutor] Testing 321

2008-04-01 Thread Evans Anyokwu
Please ignore, switching email address. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] simple, probably stupid question: single key in console / idle

2008-04-01 Thread Sommer, Matthias
Hello, I'm just starting programming in Python. ATM I do write some smaller practices. In them I want to read single keys, if pressed. If none pressed I do not want to wait. In the library reference I found "kbhit()" and "getch()" from msvcrt. I import msvcrt (running on Windows) but I cant