[PythonCE] General questions

Frédéric Mantegazza frederic.mantegazza at gbiloba.org
Mon Jan 7 13:38:29 CET 2008


Le 7/1/2008, "Alexandre Delattre" <alexandre.delattre at enst-bretagne.fr>
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


More information about the PythonCE mailing list