Re: [python-win32] Trying to send info through serial port

2010-06-11 Thread Roberto Aguilar
On Jun 11, 2010, at 8:08 AM, Dan Ackerman wrote: > Hello, > I need to be able to send some information through my computer's serial port. > I am using python version 2.6, the pyserial 1.21 module, and the pywin > module. My code seems to be sending info somewhere, because any print > statement I

Re: [python-win32] Trying to send info through serial port

2010-06-11 Thread J.D. Main
Hi, I have found that the serial port doesn't get opened sometimes. Here's what I do: import serial ser = serial.Serial() ser.port = 0 ser.baudrate = 9600 ser.timeout = 1 ser.open() You can see if the port is open by printing the serial object. In your code you'll use: print ser one of the

[python-win32] Trying to send info through serial port

2010-06-11 Thread Dan Ackerman
Hello, I need to be able to send some information through my computer's serial port. I am using python version 2.6, the pyserial 1.21 module, and the pywin module. My code seems to be sending info somewhere, because any print statement I add after the import serial command doesn't show up in my

Re: [python-win32] problems when running python script from windows service app

2010-06-11 Thread Damian Okrasa
2010/6/11 Mark Hammond : > On 10/06/2010 9:28 PM, Damian Okrasa wrote: >> >> I'm using Python 3.1.2 on Windows 7. I have windows service written in >> C which starts python script and it doesn't work. However when C >> program isn't windows service it works flawlessly. > > Why not just implement th

Re: [python-win32] PyIMAPISession && IID_IMAPIAdviseSink

2010-06-11 Thread Arn Vollebregt
> I'm traveling at the moment so can't look in any detail, but what would > help is if you could attach a diff rather than the modified files. Here you go. Regards, Arn Vollebregt PyIMsgStore.cpp.patch Description: Binary data PyIMsgStore.h.patch Description: Binary data _

Re: [python-win32] problems when running python script from windows service app

2010-06-11 Thread Mark Hammond
On 10/06/2010 9:28 PM, Damian Okrasa wrote: I'm using Python 3.1.2 on Windows 7. I have windows service written in C which starts python script and it doesn't work. However when C program isn't windows service it works flawlessly. Why not just implement the service directly in Python? // log.

Re: [python-win32] PyIMAPISession && IID_IMAPIAdviseSink

2010-06-11 Thread Mark Hammond
On 10/06/2010 8:25 PM, Arn Vollebregt wrote: I have made an attempt at implementing the Advise function for PyIMsgStore, as you will find attached. However, following the trend thusfar, onNotify() still is not called. Am I on the wrong path here, or am I still missing something? I'm traveling a