[python-win32] BSTR
Gabriel Genellina
gabrielg_laburando at yahoo.com.ar
Fri Apr 14 21:05:28 CEST 2006
Some remarks (altough not directly related to your
current problem):
> >while CCDCamera.ImageReady == False:
> > time.sleep
Should be time.sleep(1) or something. Remember that in
Python you always need to use () to call a function.
>if CCDCamera.LinkEnabled == False:
It's not a good idea to compare strictly against
True/False; for True just remove the comparison; for
False use the "not" operator:
>if not CCDCamera.LinkEnabled:
>>> def always_true():
... return 3 # any number!=0 is considered true
...
>>> if always_true(): print 'Ok'
... else: print 'Wrong!'
...
Ok
>>> if always_true()==True: print 'Ok'
... else: print 'Wrong!'
...
Wrong!
>>>
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
More information about the Python-win32
mailing list