Re: [PythonCE] General questions

2008-01-07 Thread Alexandre Delattre
> 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? Nope, it's a system-wide setting, this may be problematic if different apps have to connect differents devices, but in your case this will always connect to your panoramic

Re: [PythonCE] General questions

2008-01-07 Thread Frédéric Mantegazza
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

Re: [PythonCE] General questions

2008-01-07 Thread Alexandre Delattre
> 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(":"):