From rebirth at orcon.net.nz Mon Jun 1 02:19:41 2009 From: rebirth at orcon.net.nz (David McNab) Date: Mon, 01 Jun 2009 12:19:41 +1200 Subject: [PythonCE] (Solved!) Using serial ports In-Reply-To: <1243805254.4198.12.camel@rebirth> References: <1243768111.20583.2.camel@rebirth> <1243805254.4198.12.camel@rebirth> Message-ID: <1243815581.4198.18.camel@rebirth> Hi all, It seems the problem is triggered by setting the baudrate prior to calling the '.open()' method. The following works: from ceserial import Serial, SerialException port = Serial(port='COM1:') port.open() port.baudrate = 115200 The following fails: from ceserial import Serial, SerialException port = Serial(port='COM1:') port.baudrate = 115200 port.open() This fails too: from ceserial import Serial, SerialException port = Serial(port='COM1:', baudrate=115200) port.open() Cheers David On Mon, 2009-06-01 at 09:27 +1200, David McNab wrote: > On Sun, 2009-05-31 at 23:08 +1200, David McNab wrote: > > Also, I tried the 'ceserial.py' module which has popped up on some > > discussions, but it crashes in its Serial.open() method with a most > > unhelpful exception string '50'. > > More info on that: > > Seems that Serial.open() gets a bad return code when it calls > windll.coredll.SetupComm() to set the buffer sizes. If I comment out the > exception, then self._configurePort crashes with the same exception. > > I'm trying to open COM1: on an h4350. > > Can anyone please shed some light. > > Thanks > David > > > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce From nimret at nimret.com Wed Jun 10 21:57:28 2009 From: nimret at nimret.com (Nimret Sandhu) Date: Wed, 10 Jun 2009 12:57:28 -0700 Subject: [PythonCE] packaging app into cab's Message-ID: <200906101257.28729.nimret@nimret.com> Hi Folks - I've been playing around with pythonce on my windows mobile phone and am very impressed by it. I was wondering if anyone can point me to some good resources for packaging pythonce and my application into one installable cab. Thanks! -- Nimret Sandhu http://www.nimret.com http://www.nimsoft.biz From david-pyceml at lestat.st Thu Jun 11 10:00:27 2009 From: david-pyceml at lestat.st (David Goncalves) Date: Thu, 11 Jun 2009 10:00:27 +0200 Subject: [PythonCE] packaging app into cab's In-Reply-To: <200906101257.28729.nimret@nimret.com> References: <200906101257.28729.nimret@nimret.com> Message-ID: <4A30B99B.9070107@lestat.st> Hi, > I've been playing around with pythonce on my windows mobile phone and am very > impressed by it. I was wondering if anyone can point me to some good > resources for packaging pythonce and my application into one installable cab. If you are using Linux you can use the 'pocketpc-cab' package that contains tools for creating CAB files. If you are using Windows system you can look at 'WinCECabManager' (shareware) that does the same thing (with a gui). Hope that helps. Regards. From rajashekharv at gmail.com Thu Jun 11 11:15:32 2009 From: rajashekharv at gmail.com (rajashekhar v) Date: Thu, 11 Jun 2009 14:45:32 +0530 Subject: [PythonCE] Help required to send keys for Windows mobile Message-ID: Hi Group, I'm Rajashekhar and newfor the Python CE on the windows mobile environment. I have HTC mobile and i have installed the PythonCE 2.5 uisng the PythonCE.WM.CABfrom http://ftp.heanet.ie/disk1/sourceforge/p/py/pythonce/. I'm writing some scripts on python to invoke particular applications from idle screen and send keys to do action related to those keys. for e.g When i execute the Python scripit it should open the calendar by sending Left Soft Key(LSK) and it has to open Menu if i send Right Soft Key(RSK). Here, I'm facing one problem related sending the keystrokes, how can i send the keystokes from pyton scripts ? Any modules which are there for windows mobile, if it is there please mention where can i get it. **And also I have few source files written in C language to do the above functionality, how can I build these to .pyd for *windows mobile environment. * Any ideas or suggestion please let me know. Thanks, Rajashekhar -------------- next part -------------- An HTML attachment was scrubbed... URL: From jabapyth at gmail.com Thu Jun 11 14:37:47 2009 From: jabapyth at gmail.com (Jared Forsyth) Date: Thu, 11 Jun 2009 08:37:47 -0400 Subject: [PythonCE] packaging app into cab's In-Reply-To: <4A30B99B.9070107@lestat.st> References: <200906101257.28729.nimret@nimret.com> <4A30B99B.9070107@lestat.st> Message-ID: <9a5375240906110537l521d43d5ra19f747e6de5a27a@mail.gmail.com> unfortunately there aren't any packages that specifically package pythonce along side -- the best you can do (which is what i do) is just provide a link to the pythonce cab -- that way they won't need to install pythonce more than once if they want more than one of your packages. jared On Thu, Jun 11, 2009 at 4:00 AM, David Goncalves wrote: > Hi, > > I've been playing around with pythonce on my windows mobile phone and am >> very impressed by it. I was wondering if anyone can point me to some good >> resources for packaging pythonce and my application into one installable >> cab. >> > > If you are using Linux you can use the 'pocketpc-cab' package that contains > tools for creating CAB files. > > If you are using Windows system you can look at 'WinCECabManager' > (shareware) that > does the same thing (with a gui). > > > Hope that helps. > > Regards. > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nimret at nimret.com Thu Jun 11 19:04:17 2009 From: nimret at nimret.com (Nimret Sandhu) Date: Thu, 11 Jun 2009 10:04:17 -0700 Subject: [PythonCE] packaging app into cab's In-Reply-To: <9a5375240906110537l521d43d5ra19f747e6de5a27a@mail.gmail.com> References: <200906101257.28729.nimret@nimret.com> <4A30B99B.9070107@lestat.st> <9a5375240906110537l521d43d5ra19f747e6de5a27a@mail.gmail.com> Message-ID: <200906111004.17370.nimret@nimret.com> yeah, I think I'll probably end up with this solution also. As you mention that way at least they won't have to install it twice. thanks for the responses folks. cheers, -- Nimret Sandhu http://www.nimret.com http://www.nimsoft.biz On Thursday 11 June 2009 05:37:47 am Jared Forsyth wrote: > unfortunately there aren't any packages that specifically package pythonce > along side -- the best you can do (which is what i do) is just provide a > link to the pythonce cab -- that way they won't need to install pythonce > more than once if they want more than one of your packages. > > jared > > On Thu, Jun 11, 2009 at 4:00 AM, David Goncalves wrote: > > Hi, > > > > I've been playing around with pythonce on my windows mobile phone and am > > > >> very impressed by it. I was wondering if anyone can point me to some > >> good resources for packaging pythonce and my application into one > >> installable cab. > > > > If you are using Linux you can use the 'pocketpc-cab' package that > > contains tools for creating CAB files. > > > > If you are using Windows system you can look at 'WinCECabManager' > > (shareware) that > > does the same thing (with a gui). > > > > > > Hope that helps. > > > > Regards. > > > > _______________________________________________ > > PythonCE mailing list > > PythonCE at python.org > > http://mail.python.org/mailman/listinfo/pythonce From nimret at nimret.com Thu Jun 11 19:06:44 2009 From: nimret at nimret.com (Nimret Sandhu) Date: Thu, 11 Jun 2009 10:06:44 -0700 Subject: [PythonCE] Help required to send keys for Windows mobile In-Reply-To: References: Message-ID: <200906111006.44424.nimret@nimret.com> Hi Rajashekhar - have you looked at the various gui toolkits for pythonce? I believe that's what you have to use to accept user input. I downloaded ppygui to my HTC mogul and it's working great on it. I also liked the installer for ppygui but I did have to tweak the folder name that I extracted it out to match the name in the install script. you may run into this issue depending on which folder you extract the contents of ppygui to before running the install script. cheers, -- Nimret Sandhu http://www.nimret.com http://www.nimsoft.biz On Thursday 11 June 2009 02:15:32 am rajashekhar v wrote: > Hi Group, > > I'm Rajashekhar and newfor the Python CE on the windows mobile environment. > I have HTC mobile and i have installed the PythonCE 2.5 uisng the > PythonCE.WM.CABCE.WM.CAB>from http://ftp.heanet.ie/disk1/sourceforge/p/py/pythonce/. > > I'm writing some scripts on python to invoke particular applications from > idle screen and send keys to do action related to those keys. > for e.g When i execute the Python scripit it should open the calendar by > sending Left Soft Key(LSK) and it has to open Menu if i send Right Soft > Key(RSK). > Here, I'm facing one problem related sending the keystrokes, how can i send > the keystokes from pyton scripts ? > > Any modules which are there for windows mobile, if it is there please > mention where can i get it. > > **And also I have few source files written in C language to do the above > functionality, how can I build these to .pyd for *windows mobile > environment. * > Any ideas or suggestion please let me know. > > Thanks, > Rajashekhar From tech_dev at wildintellect.com Thu Jun 11 21:12:01 2009 From: tech_dev at wildintellect.com (Alex Mandel) Date: Thu, 11 Jun 2009 12:12:01 -0700 Subject: [PythonCE] packaging app into cab's In-Reply-To: <9a5375240906110537l521d43d5ra19f747e6de5a27a@mail.gmail.com> References: <200906101257.28729.nimret@nimret.com> <4A30B99B.9070107@lestat.st> <9a5375240906110537l521d43d5ra19f747e6de5a27a@mail.gmail.com> Message-ID: <4A315701.1050804@wildintellect.com> Give me a few minutes to find it but I wrote some scripts to make this easier. The basics I have a python app with gui that lets you pick whatever files you want, then builds the ini for the pocket pc sdk cab builder(from microsoft), builds a cab. Then you take that cab and modify an NSIS script that already references a pythonce install and add the cab to the list of things to install, this uses activesync to detect if it's already installed and if the version has changed. Alex Jared Forsyth wrote: > unfortunately there aren't any packages that specifically package pythonce > along side -- the best you can do (which is what i do) is just provide a > link to the pythonce cab -- that way they won't need to install pythonce > more than once if they want more than one of your packages. > > jared > > On Thu, Jun 11, 2009 at 4:00 AM, David Goncalves wrote: > >> Hi, >> >> I've been playing around with pythonce on my windows mobile phone and am >>> very impressed by it. I was wondering if anyone can point me to some good >>> resources for packaging pythonce and my application into one installable >>> cab. >>> >> If you are using Linux you can use the 'pocketpc-cab' package that contains >> tools for creating CAB files. >> >> If you are using Windows system you can look at 'WinCECabManager' >> (shareware) that >> does the same thing (with a gui). >> >> >> Hope that helps. >> >> Regards. >> From tech_dev at wildintellect.com Thu Jun 11 22:25:14 2009 From: tech_dev at wildintellect.com (Alex Mandel) Date: Thu, 11 Jun 2009 13:25:14 -0700 Subject: [PythonCE] packaging app into cab's In-Reply-To: <4A315701.1050804@wildintellect.com> References: <200906101257.28729.nimret@nimret.com> <4A30B99B.9070107@lestat.st> <9a5375240906110537l521d43d5ra19f747e6de5a27a@mail.gmail.com> <4A315701.1050804@wildintellect.com> Message-ID: <4A31682A.6040201@wildintellect.com> I won't have time to find/write the documentation on this stuff for a few days but here are all the files. Cabbuilder, a wxpython app that helps you build CAB files Requires the Win CE 4.2 library since it's just a wrapper around the microsoft cab tools. https://code.launchpad.net/~wildintellect/+junk/cabbuilder PDA-Backup, A tcl/tk python app for windows mobile, the nsi file demonstrates how to package mutliple CAB files, including the pythonce into a single desktop installer someone can run. https://code.launchpad.net/~wildintellect/+junk/pdabackup You can browse down to the individual files or poke around the help on Launchpad and Bazaar to grab a copy of the source code for everything. You have to click on "all revisions" at the bottom of those pages to browse the files. It's GPLv3 for now(except for the parts that aren't mine like tcl/tk and python), I'm probably missing that statement from most of the files. I'll be more than happy to seed projects if people want to improve the code, it hasn't been worked on for 1 year and probably won't be since it's from an old job. Alex Alex Mandel wrote: > Give me a few minutes to find it but I wrote some scripts to make this > easier. The basics I have a python app with gui that lets you pick > whatever files you want, then builds the ini for the pocket pc sdk cab > builder(from microsoft), builds a cab. Then you take that cab and modify > an NSIS script that already references a pythonce install and add the > cab to the list of things to install, this uses activesync to detect if > it's already installed and if the version has changed. > > Alex > > Jared Forsyth wrote: >> unfortunately there aren't any packages that specifically package pythonce >> along side -- the best you can do (which is what i do) is just provide a >> link to the pythonce cab -- that way they won't need to install pythonce >> more than once if they want more than one of your packages. >> >> jared >> >> On Thu, Jun 11, 2009 at 4:00 AM, David Goncalves wrote: >> >>> Hi, >>> >>> I've been playing around with pythonce on my windows mobile phone and am >>>> very impressed by it. I was wondering if anyone can point me to some good >>>> resources for packaging pythonce and my application into one installable >>>> cab. >>>> >>> If you are using Linux you can use the 'pocketpc-cab' package that contains >>> tools for creating CAB files. >>> >>> If you are using Windows system you can look at 'WinCECabManager' >>> (shareware) that >>> does the same thing (with a gui). >>> >>> >>> Hope that helps. >>> >>> Regards. >>> From rajashekharv at gmail.com Mon Jun 15 13:01:22 2009 From: rajashekharv at gmail.com (rajashekhar v) Date: Mon, 15 Jun 2009 16:31:22 +0530 Subject: [PythonCE] Global defpaths error while building Python Message-ID: Hi Group, *I have download pythonce source, and try to build** it** to generate CAB file**. I have downloaded and installed all the below requirements which are mentioned in the readme-wince.txt. - Python 2.5 for Windows, installed on your PC - Microsoft eMbedded Visual C++ 4.0 with Service Pack 4 - Pocket PC 2003 SDK As per the readme.txt , i executed the scons cab, but i'm getting the below errors. Please help me to resolve this. ** >> > C:\Source\python-wince\PCbuild\WinCE>scons >> > scons: Reading SConscript files ... >> > : global name >> 'defpaths' >>** > is not defined: In the pythonce group some one has faced the same problem and reply was like this. **I got the same problem trying to compile PythonCE. I resolved it by creating en empty 'defpaths' list on line 365 of msevc.py and manually added 'include_path', 'lib_path' and 'exe_path' to it.* As per this suggestion, manually add the paths of what ?? include_path = ?? lib_path = ?? exe_path = ?? Please help me . Thanks, Rajashekhar -------------- next part -------------- An HTML attachment was scrubbed... URL: From sini.makela at gmail.com Mon Jun 15 14:53:23 2009 From: sini.makela at gmail.com (=?ISO-8859-1?Q?Sini_M=E4kel=E4?=) Date: Mon, 15 Jun 2009 15:53:23 +0300 Subject: [PythonCE] Global defpaths error while building Python In-Reply-To: References: Message-ID: <231c97d10906150553k21df8dd2s4cf0f6d0461ca636@mail.gmail.com> Hi, > As per the readme.txt , i executed the scons cab, but i'm getting the below > errors. > > Please help me to resolve this. > > >>> > C:\Source\python-wince\PCbuild\WinCE>scons >>> > scons: Reading SConscript files ... >>> > : global name > >>> 'defpaths' >>> > is not defined: I'm sure there is some proper way to fix that problem and somebody might tell us how, but I just ended up setting the exe_path as follows: exe_path = r'C:\Program Files\Microsoft eMbedded C++ 4.0\EVC\wce420\bin' I didn't have to set the other paths, as the script was able to find the other registry values and didn't end up in those exception handlers that would have called for non-existing defpaths. HTH, - Sini