From frederic.mantegazza at gbiloba.org Tue Jan 1 21:41:19 2008 From: frederic.mantegazza at gbiloba.org (=?iso-8859-15?q?Fr=E9d=E9ric_Mantegazza?=) Date: Tue, 1 Jan 2008 21:41:19 +0100 Subject: [PythonCE] General questions In-Reply-To: <20071021161917.e6o25lqs08kwsss0@webmail.enst-bretagne.fr> References: <20071021161917.e6o25lqs08kwsss0@webmail.enst-bretagne.fr> Message-ID: <200801012141.19974.frederic.mantegazza@gbiloba.org> On dimanche 21 octobre 2007, alexandre.delattre at enst-bretagne.fr wrote: > As far as I know, communications with PythonCE can be made : > > ? - by serial port, using the port of pyserial, ceserial ? > (http://www.problemboard.com/dl/ceserial.zip), this works for real ? > serial port and bluetooth serial port profile. I found a little bluetooth/serial module for my panoramic head project: http://www.adeunis-rf.com/list_produits.php?lng=FR&gid=6&pid=ARF32+Data Do you think the com will be totally transparent with this module? My goal is to drive a serial device, and I would like to avoid bluetooth programmin stuff... Thanks, -- Fr?d?ric http://www.gbiloba.org From alexandre.delattre at enst-bretagne.fr Thu Jan 3 13:30:51 2008 From: alexandre.delattre at enst-bretagne.fr (Alexandre Delattre) Date: Thu, 03 Jan 2008 13:30:51 +0100 Subject: [PythonCE] General questions References: 20071021161917.e6o25lqs08kwsss0@webmail.enst-bretagne.fr Message-ID: <477CD57B.2030908@enst-bretagne.fr> Hi Fred?ric and happy new year to all :) > I found a little bluetooth/serial module for my panoramic head project: > http://www.adeunis-rf.com/list_produits.php?lng=FR&gid=6&pid=ARF32+Data > Do you think the com will be totally transparent with this module? My goal > is to drive a serial device, and I would like to avoid bluetooth > programmin stuff... I've used only ceserial with bluetooth in little projects like winamp/bmpx remote controller, and a sms sender via a bluetooth phone, and so far it seems to work like a regular serial port. However, there's some little tricks to make it work at first : 1) You must create an ongoing port in your bluetooth settings, by default the outgoing port is COM6 2) In your code: from ceserial import Serial s = Serial("COM6:") # "COM6" only will not work, since it is based on the CreateFileW WinCE API function s.open() # This will pop a dialog allowing to choose which bt device to connect # Then regular serial code Hope it helps, Alexandre From frederic.mantegazza at gbiloba.org Thu Jan 3 13:46:36 2008 From: frederic.mantegazza at gbiloba.org (=?ISO-8859-1?Q?Fr=E9d=E9ric?= Mantegazza) Date: Thu, 3 Jan 2008 13:46:36 +0100 (CET) Subject: [PythonCE] General questions In-Reply-To: <477CD57B.2030908@enst-bretagne.fr> Message-ID: Le 3/1/2008, "Alexandre Delattre" a ?crit: >Hi Fred?ric and happy new year to all :) Thanks! Meilleurs vouex ? toi ?galement ! >I've used only ceserial with bluetooth in little projects like winamp/bmpx remote controller, and a sms sender via a bluetooth phone, >and so far it seems to work like a regular serial port. >However, there's some little tricks to make it work at first : > >1) You must create an ongoing port in your bluetooth settings, by default the outgoing port is COM6 >2) In your code: > >from ceserial import Serial > >s = Serial("COM6:") # "COM6" only will not work, since it is based on the CreateFileW WinCE API function Is it possible to use this syntax: s = Serial(5) (0 = COM1, so 5 = COM6) ? >s.open() # This will pop a dialog allowing to choose which bt device to connect No way to automatically connect to a specific bt device? ># Then regular serial code > >Hope it helps, Yes :o) If it is as simple as you described, I'll go this way and use bt instead of wired serial port... -- Fr?d?ric From alexandre.delattre at enst-bretagne.fr Mon Jan 7 12:25:58 2008 From: alexandre.delattre at enst-bretagne.fr (Alexandre Delattre) Date: Mon, 07 Jan 2008 12:25:58 +0100 Subject: [PythonCE] General questions References: 477CD57B.2030908@enst-bretagne.fr Message-ID: <47820C46.1050109@enst-bretagne.fr> > 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 >>/s.open() # This will pop a dialog allowing to choose which bt device to connect /> >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. Regards, Alexandre From frederic.mantegazza at gbiloba.org Mon Jan 7 13:38:29 2008 From: frederic.mantegazza at gbiloba.org (=?ISO-8859-1?Q?Fr=E9d=E9ric?= Mantegazza) Date: Mon, 7 Jan 2008 13:38:29 +0100 (CET) Subject: [PythonCE] General questions In-Reply-To: <47820C46.1050109@enst-bretagne.fr> Message-ID: Le 7/1/2008, "Alexandre Delattre" 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 From alexandre.delattre at enst-bretagne.fr Mon Jan 7 14:51:09 2008 From: alexandre.delattre at enst-bretagne.fr (Alexandre Delattre) Date: Mon, 07 Jan 2008 14:51:09 +0100 Subject: [PythonCE] General questions References: 47820C46.1050109@enst-bretagne.fr Message-ID: <47822E4D.6@enst-bretagne.fr> > 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 head. When needed, you can reset the setting at the same place you enable the bluetooth serial port. Regards, Alexandre From zerounonove at gmail.com Wed Jan 9 14:21:34 2008 From: zerounonove at gmail.com (zerounonove) Date: Wed, 9 Jan 2008 14:21:34 +0100 Subject: [PythonCE] CherryPy Message-ID: Hi, i'm trying to port a python application to pythonce, it use CherryPy and CherryTemplate I've tried to install cherrypy but installation fails because distutils module is not implemented (if i read correctly) so resolved by install on pc and then copying files in dir site-packages It works but when i turn off the pocketpc and then turn on, if cherrypy is running (what i need) it try to invoke some methods to restart the web service... and then i got an exception of module "os" not having attribute "execv" (think is not implemented yet) Any help? Some of you had tried CherryPy succesfully? Thanks Andrea -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080109/f04efc12/attachment.htm From mak at trisoft.com.pl Wed Jan 16 21:30:14 2008 From: mak at trisoft.com.pl (Grzegorz Makarewicz) Date: Wed, 16 Jan 2008 21:30:14 +0100 Subject: [PythonCE] wooooow - it works on my spv-e650 - htc s710 Message-ID: <478E6956.9060701@trisoft.com.pl> Hi, all Like in topic - pythonCE.WM.cab works on HTC omap-ti processors (htc s710 - at last on spv e650) I have rebuild it several times from source - always for pocketpc (pspc2000-pspc2003, wm 5) - but never for wm 6 smartphone Time to try Python on smartphone. mak Thanks for all developers. Can'I help - somehow ? - testing, building, scons, ready to use .vcproj files ? - anything but no documentation. My compiler is vs2005 sp2. From mseewald at gmail.com Sat Jan 19 17:41:56 2008 From: mseewald at gmail.com (Michael Seewald) Date: Sat, 19 Jan 2008 17:41:56 +0100 Subject: [PythonCE] How could I check free disk space? Message-ID: Dear all, I searched the mailing list for quite some time, but could not find an answer to the following question: Is there a way to check for free disk space with PythonCE? I would like to check if the memory card that is inserted into the phone provides enough disk space for a download. And, last but not least, I would like like to congratulate everybody who made this project possible. PythonCE runs like a charm on my Samsung SGH-i600 "Blackjack" (windows mobile 6). It was great to find even precompiled binaries for this phone! Thank you & kind regards, Michael Seewald -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080119/5381e27e/attachment.htm From Rens.Duijsens at interaccess.nl Sun Jan 20 17:59:43 2008 From: Rens.Duijsens at interaccess.nl (Rens Duijsens) Date: Sun, 20 Jan 2008 17:59:43 +0100 Subject: [PythonCE] Tkinter installation problem References: 000801c835b1$c23759b0$2000a8c0@depid.local <475473F6.6060508@enst-bretagne.fr> Message-ID: <1DF614F7076F194A90056978ED20DF14011B7718@nthvsexch02.interaccess.nl> Hello, I'm trying to install Tkinter on my HTC Bleu Angel. After installation I tried some code: #------------------------------------------------ from sys import exit from Tkinter import * root = Tk() Button(root, text='Test', command=exit).pack() root.mainloop() #------------------------------------------------ I'm getting an error on 'root=Tk()'. This error is a complete novell that basicly tells me I have not installed 'Tcl'. Where do I find this, and how do I install this please? Friendly greetings Rens -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080120/c10b58f5/attachment.htm From Rens.Duijsens at interaccess.nl Sun Jan 20 23:19:44 2008 From: Rens.Duijsens at interaccess.nl (Rens Duijsens) Date: Sun, 20 Jan 2008 23:19:44 +0100 Subject: [PythonCE] Tkinter installation problem References: 000801c835b1$c23759b0$2000a8c0@depid.local <475473F6.6060508@enst-bretagne.fr> <1DF614F7076F194A90056978ED20DF14011B7718@nthvsexch02.interaccess.nl> <4793B03E.3020707@email.it> Message-ID: <1DF614F7076F194A90056978ED20DF14011B771B@nthvsexch02.interaccess.nl> Hi, thanks for your responce. No... I got the files from http://www.murkworks.com/Research/Python/PocketPCPython/PPCPythonR2Notes I have de-installed all of it, and installed the files you directed me to. Now it works. Thanks! Do I have to do the second part of the page? Cause I do not quite onderstand this second part. Thank you for your assistance. Rens ________________________________ Verzonden: zo 20-1-2008 21:34 Aan: Rens Duijsens Onderwerp: Re: [PythonCE] Tkinter installation problem Rens Duijsens ha scritto: > > Hello, > > I'm trying to install Tkinter on my HTC Bleu Angel. > After installation I tried some code: > #------------------------------------------------ > from sys import exit > from Tkinter import * > root = Tk() > > Button(root, text='Test', command=exit).pack() > root.mainloop() > #------------------------------------------------ > > I'm getting an error on 'root=Tk()'. > This error is a complete novell that basicly tells me I have not > installed 'Tcl'. > > Where do I find this, and how do I install this please? > It should all be included in the package that you probably downloaded here: http://prdownloads.sourceforge.net/pythonce/Tkinter-Files.zip?download But did you follow the indications given here (top of the page): http://pythonce.sourceforge.net/Wikka/Tkinter ? If you already did, can you post the exact error that you get? Pietro Battiston -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080120/cb89434b/attachment.htm From toobaz at email.it Mon Jan 21 01:46:20 2008 From: toobaz at email.it (Pietro Battiston) Date: Mon, 21 Jan 2008 01:46:20 +0100 Subject: [PythonCE] Tkinter installation problem In-Reply-To: <1DF614F7076F194A90056978ED20DF14011B771B@nthvsexch02.interaccess.nl> References: 000801c835b1$c23759b0$2000a8c0@depid.local <475473F6.6060508@enst-bretagne.fr> <1DF614F7076F194A90056978ED20DF14011B7718@nthvsexch02.interaccess.nl> <4793B03E.3020707@email.it> <1DF614F7076F194A90056978ED20DF14011B771B@nthvsexch02.interaccess.nl> Message-ID: <4793EB5C.60202@email.it> Rens Duijsens ha scritto: > Hi, > > thanks for your responce. > No... I got the files from > http://www.murkworks.com/Research/Python/PocketPCPython/PPCPythonR2Notes > > I have de-installed all of it, and installed the files you directed me to. > Now it works. Thanks! > > Do I have to do the second part of the page? > Cause I do not quite onderstand this second part. I never had to, and probably you won't. But if you ever get a "No more winhandle map slots" error message, think about it... > Thank you for your assistance. You're welcome Pietro