Le 7/1/2008, "Alexandre Delattre" <[EMAIL PROTECTED]>
a écrit:

>> Is it possible to use this syntax:
>>
>>    s = Serial(5)
>>
>>(0 = COM1, so 5 = COM6) ?
>
>I don't think you can with the current ceserial, but you can always do 
>something like this:
>
>if isinstance(port, int):
>    port = "COM%i:" %port
>elif insinstance(port, str):
>    if not port.endswith(":"):
>        port = "%s:" %port

Ok, thanks.

>>No way to automatically connect to a specific bt device?
>
>Well, at least not the first time, but on the dialog you can check the option 
>"Always use this device",
>so further call to open will not show the dialog and use the device selected 
>first time.

I guess this is true while the app is running, but as soon as I close it,
I will get the dialog again next time I run it?

--
   Frédéric
_______________________________________________
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce

Reply via email to