From jimswalsh at gmail.com Wed Mar 5 16:24:43 2008 From: jimswalsh at gmail.com (Jim Walsh) Date: Wed, 5 Mar 2008 07:24:43 -0800 (PST) Subject: [PythonCE] Tkinter captures the little "X" close window button? Message-ID: <15852528.post@talk.nabble.com> I remember something about capturing Windows events with Tkinter but can't seem to find it now. I want to do something when the user taps the little "X" in the upper right hand corner. Can we do the default action of hiding the app? I use SmallMenu to switch apps and it shows the PythonCE window, but not my fullscreen Tkinter app. I would like to be able to switch between active apps. Any adivice? Thanks, Jim Walsh -- View this message in context: http://www.nabble.com/Tkinter-captures-the-little-%22X%22-close-window-button--tp15852528p15852528.html Sent from the Python - pythonce mailing list archive at Nabble.com. From frederic.mantegazza at gbiloba.org Wed Mar 5 17:18:12 2008 From: frederic.mantegazza at gbiloba.org (=?iso-8859-15?q?Fr=E9d=E9ric_Mantegazza?=) Date: Wed, 5 Mar 2008 17:18:12 +0100 Subject: [PythonCE] Tkinter captures the little "X" close window button? In-Reply-To: <15852528.post@talk.nabble.com> References: <15852528.post@talk.nabble.com> Message-ID: <200803051718.12363.frederic.mantegazza@gbiloba.org> On mercredi 05 mars 2008, Jim Walsh wrote: > I want to do something when the user taps the little "X" in the upper > right hand corner. Can we do the default action of hiding the app? I use something like: self.protocol("WM_DELETE_WINDOW", self._quit) to bind the X close button to my _quit() method. But I don't know how to hide the app (you mean iconify?)... -- Fr?d?ric http://www.gbiloba.org From jimswalsh at gmail.com Thu Mar 6 14:53:50 2008 From: jimswalsh at gmail.com (Jim Walsh) Date: Thu, 6 Mar 2008 05:53:50 -0800 (PST) Subject: [PythonCE] Tkinter captures the little "X" close window button? In-Reply-To: <200803051718.12363.frederic.mantegazza@gbiloba.org> References: <15852528.post@talk.nabble.com> <200803051718.12363.frederic.mantegazza@gbiloba.org> Message-ID: <15873131.post@talk.nabble.com> I think my problem is the use of overrideredirect. I want my pythonce Tkinter window to look like all good WindowsCE windows: using the top of the screen as the title bar and the little X up there. If I use: root=Tk() root.wm_state('zoomed') I get a pretty big window but still with a separate title bar wasting screen space. If I add: root.overrideredirect(True) I get a truly full screen window. But I realized the bar across the top of the screen doesn't belong to "tk" but rather to the last app. Apparently overrideredirects keeps my app out of the hands of the window manager all together. Does anyone know the best way to get a proper WinCE application appearance with Tkinter? Thanks Jim W Fr?d?ric Mantegazza-2 wrote: > > On mercredi 05 mars 2008, Jim Walsh wrote: > >> I want to do something when the user taps the little "X" in the upper >> right hand corner. Can we do the default action of hiding the app? > > I use something like: > > self.protocol("WM_DELETE_WINDOW", self._quit) > > to bind the X close button to my _quit() method. But I don't know how to > hide the app (you mean iconify?)... > > -- > Fr?d?ric > > http://www.gbiloba.org > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > > -- View this message in context: http://www.nabble.com/Tkinter-captures-the-little-%22X%22-close-window-button--tp15852528p15873131.html Sent from the Python - pythonce mailing list archive at Nabble.com. From jimswalsh at gmail.com Thu Mar 6 14:55:23 2008 From: jimswalsh at gmail.com (Jim Walsh) Date: Thu, 6 Mar 2008 05:55:23 -0800 (PST) Subject: [PythonCE] self.protocol? In-Reply-To: <200803051718.12363.frederic.mantegazza@gbiloba.org> References: <15852528.post@talk.nabble.com> <200803051718.12363.frederic.mantegazza@gbiloba.org> Message-ID: <15873133.post@talk.nabble.com> May I ask what the "self" is in your example. I don't know the protocol method? Thanks, Jim W Fr?d?ric Mantegazza-2 wrote: > > On mercredi 05 mars 2008, Jim Walsh wrote: > >> I want to do something when the user taps the little "X" in the upper >> right hand corner. Can we do the default action of hiding the app? > > I use something like: > > self.protocol("WM_DELETE_WINDOW", self._quit) > > to bind the X close button to my _quit() method. But I don't know how to > hide the app (you mean iconify?)... > > -- > Fr?d?ric > > http://www.gbiloba.org > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > > -- View this message in context: http://www.nabble.com/Tkinter-captures-the-little-%22X%22-close-window-button--tp15852528p15873133.html Sent from the Python - pythonce mailing list archive at Nabble.com. From frederic.mantegazza at gbiloba.org Thu Mar 6 15:27:01 2008 From: frederic.mantegazza at gbiloba.org (=?ISO-8859-1?Q?Fr=E9d=E9ric?=) Date: Thu, 6 Mar 2008 15:27:01 +0100 (CET) Subject: [PythonCE] self.protocol? In-Reply-To: <15873133.post@talk.nabble.com> Message-ID: <2xdpTiO8.1204813621.1759630.fma@alezan.org> Le 6/3/2008, "Jim Walsh" a ?crit: >May I ask what the "self" is in your example. I don't know the protocol >method? Have a look at: http://effbot.org/tkinterbook/tkinter-events-and-bindings.htm#protocols My object is a toplevel widget... From mdoukidis at gmail.com Mon Mar 10 06:06:11 2008 From: mdoukidis at gmail.com (Mark Doukidis) Date: Mon, 10 Mar 2008 14:06:11 +0900 Subject: [PythonCE] Tkinter captures the little "X" close window button? In-Reply-To: <15873131.post@talk.nabble.com> References: <15852528.post@talk.nabble.com> <200803051718.12363.frederic.mantegazza@gbiloba.org> <15873131.post@talk.nabble.com> Message-ID: <8d8511040803092206q5f140c45h61fb0ff5b50400f0@mail.gmail.com> On Thu, Mar 6, 2008 at 10:53 PM, Jim Walsh wrote: > > I think my problem is the use of overrideredirect. > > I want my pythonce Tkinter window to look like all good WindowsCE windows: > using the top of the screen as the title bar and the little X up there. > > If I use: > root=Tk() > root.wm_state('zoomed') > > I get a pretty big window but still with a separate title bar wasting screen > space. > > If I add: > root.overrideredirect(True) > > I get a truly full screen window. But I realized the bar across the top of > the screen doesn't belong to "tk" but rather to the last app. Apparently > overrideredirects keeps my app out of the hands of the window manager all > together. > > Does anyone know the best way to get a proper WinCE application appearance > with Tkinter? > > Thanks > Jim W > > > Fr?d?ric Mantegazza-2 wrote: > > > > On mercredi 05 mars 2008, Jim Walsh wrote: > > > >> I want to do something when the user taps the little "X" in the upper > >> right hand corner. Can we do the default action of hiding the app? > > > > I use something like: > > > > self.protocol("WM_DELETE_WINDOW", self._quit) > > > > to bind the X close button to my _quit() method. But I don't know how to > > hide the app (you mean iconify?)... > > > > -- > > Fr?d?ric > > > > http://www.gbiloba.org > > _______________________________________________ > > PythonCE mailing list > > PythonCE at python.org > > http://mail.python.org/mailman/listinfo/pythonce > > > > > > -- > View this message in context: http://www.nabble.com/Tkinter-captures-the-little-%22X%22-close-window-button--tp15852528p15873131.html > Sent from the Python - pythonce mailing list archive at Nabble.com. > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > Hi Jim, Been a while but looking at some old code, I have a work around. What I have done (and others) is to HIDE the titlebar from view. eg: sizex, sizey = root.maxsize() sizey -=25 # shift to hide titlebar geometry = "%dx%d+0+%d" % (sizex,sizey,0) root.geometry(geometry) root.resizable(0,0) # disable resizing then you can create a "button" explicitly for closing the app (place where you wish). This is a fudge, but hope it can help if no others respond. Mark Doukidis From jimswalsh at gmail.com Tue Mar 11 05:16:15 2008 From: jimswalsh at gmail.com (James Walsh) Date: Mon, 10 Mar 2008 21:16:15 -0700 Subject: [PythonCE] Can you tell if the input area is showing Message-ID: <197788230803102116j70d8f19rbe395d5032d25023@mail.gmail.com> Is there a way to tell if the input area (virtual keyboard or writing area) is showing and to adjust my window appropriately? I am using Tkinter. Thanks, Jim W -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080310/b2b6a861/attachment.htm From marclebrun at skynet.be Sun Mar 16 05:16:04 2008 From: marclebrun at skynet.be (Marc Lebrun) Date: Sun, 16 Mar 2008 05:16:04 +0100 Subject: [PythonCE] Firebird Database on Intermec CK30 Message-ID: <47DC9F04.502@skynet.be> Hi, I'm new to Pocket PC programming and don't know where to start :-) I have to devellop a simple application for the factory where I work. We use Intermec CK30 handheld computers with barcode scanner, It's running some kind of windows software. My app will have to access a Firebird SQL database. The terminals are connected to the network through a wifi connection. I have seen that the simplest way to do a GUI app with PythonCE is using Tkinter. For the database, is there a version of FBCLIENT.DLL compiled for ARM platform ? Thanks for your responses :-) Marc. From josepharmbruster at gmail.com Sun Mar 16 03:45:34 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Sat, 15 Mar 2008 22:45:34 -0400 Subject: [PythonCE] TMobile Wing Success and Development Inquiries In-Reply-To: <197788230803102116j70d8f19rbe395d5032d25023@mail.gmail.com> References: <197788230803102116j70d8f19rbe395d5032d25023@mail.gmail.com> Message-ID: <47DC89CE.5000808@gmail.com> Luke (and PythonCE), It's been a while! Are you still leading off PythonCE? I lost touch for a while as my old MDA with Mobile 5 took a few hits and became dis-functional. Fortunately, my birthday was today and I finally buckled down and got a new cell phone, the brand new TMobile wing! When I got home, I went straight to sf and grabbed: PythonCE.WM.CAB and installed :-) sys.getwindowsversion() (5, 2, 1235, 3, '') I was not sure if anyone had installed on this exact phone and reported success, so I wanted to do so. Where does development stand with CE currently? Have there been any motions to do anything like merge with 2.6? Joseph Armbruster From josepharmbruster at gmail.com Mon Mar 17 02:46:33 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Sun, 16 Mar 2008 21:46:33 -0400 Subject: [PythonCE] trunk merge? Message-ID: <47DDCD79.3050604@gmail.com> All, I have spent a good portion of today merging the code published in: PythonCE-2.5-20061219-source.zip with that of http://svn.python.org/projects/python/trunk @ 61395. I am not quite sure who the right person is to contact about this. What I would like to do is set up a branch to commit these changes to get other eyes on the subject. I could set one up on a personal server, then send a link out if that would be more convenient. Let me know, Joseph Armbruster From coder_infidel at hotmail.com Mon Mar 17 11:33:06 2008 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Mon, 17 Mar 2008 19:33:06 +0900 Subject: [PythonCE] trunk merge? In-Reply-To: <47DDCD79.3050604@gmail.com> References: <47DDCD79.3050604@gmail.com> Message-ID: -------------------------------------------------- From: "Joseph Armbruster" Sent: Monday, March 17, 2008 10:46 AM To: Subject: [PythonCE] trunk merge? > All, > > I have spent a good portion of today merging the code published in: > PythonCE-2.5-20061219-source.zip with that of > http://svn.python.org/projects/python/trunk @ 61395. > > I am not quite sure who the right person is to contact about this. What I > would like to do is set up a branch to commit these changes to get other > eyes > on the subject. > > I could set one up on a personal server, then send a link out if that > would be > more convenient. > > Let me know, > Joseph Armbruster Hi, Can you please create the branch in our SourceForge Subversion repository? It would be ideal to first import the official Python source (trunk) into our repository, then use Subversion to create our local branch. I guess you are not already a developer on the SourceForge project though? If you agree, please send me your SourceForge user name. Luke From josepharmbruster at gmail.com Mon Mar 17 13:01:43 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Mon, 17 Mar 2008 08:01:43 -0400 Subject: [PythonCE] trunk merge? In-Reply-To: References: <47DDCD79.3050604@gmail.com> Message-ID: <47DE5DA7.6020205@gmail.com> Luke, Definitely, i'm familiar with svn and will have no problem doing the import and such. Let me know when the account is all situated and i'll get started. For now, I have to head off to work :-) Joseph Armbruster Luke Dunstan wrote: > -------------------------------------------------- > From: "Joseph Armbruster" > Sent: Monday, March 17, 2008 10:46 AM > To: > Subject: [PythonCE] trunk merge? > >> All, >> >> I have spent a good portion of today merging the code published in: >> PythonCE-2.5-20061219-source.zip with that of >> http://svn.python.org/projects/python/trunk @ 61395. >> >> I am not quite sure who the right person is to contact about this. >> What I >> would like to do is set up a branch to commit these changes to get >> other eyes >> on the subject. >> >> I could set one up on a personal server, then send a link out if that >> would be >> more convenient. >> >> Let me know, >> Joseph Armbruster > > Hi, > > Can you please create the branch in our SourceForge Subversion > repository? It would be ideal to first import the official Python source > (trunk) into our repository, then use Subversion to create our local > branch. I guess you are not already a developer on the SourceForge > project though? If you agree, please send me your SourceForge user name. > > Luke > > > From wolfsch at web.de Mon Mar 17 12:47:56 2008 From: wolfsch at web.de (Wolfgang Schneider) Date: Mon, 17 Mar 2008 12:47:56 +0100 Subject: [PythonCE] Printing non-ascii characters Message-ID: <685219531@web.de> Hello everyone, I try without success to print non-ascii characters to the console. aStr = 'sch?nes Wetter' uStr = aStr.decode('latin-1') (or simpler: uStr = u'sch?nes Wetter') print uStr results in >>> schXXnes Wetter (XX indicating non-printable characters) On desktop Python installations the screen output is as desired: >>> sch?nes Wetter Whatever decoding I do, I can not manage to get the desired result on Windows CE. Is this an encoding/decoding problem I am unable to handle properly or rather a limitation of PythonCE or the operating system (WM6)? sys.stdout.encoding is alway set to 'ascii' and I dont know how to change it. Some article I recently read discouraged from changing the default encoding ?! I would appreciate any help. Wolfgang From josepharmbruster at gmail.com Tue Mar 18 02:10:52 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Mon, 17 Mar 2008 21:10:52 -0400 Subject: [PythonCE] developers inquiry Message-ID: <47DF169C.9090900@gmail.com> All, I was recently added as a developer to PythonCE on SF. I am attempting to find the subversion repository for PythonCE but have had no luck at all. Can anyone point me in the right direction? Thank You, Joseph Armbruster From christopher at christec.co.nz Tue Mar 18 02:31:29 2008 From: christopher at christec.co.nz (Christopher Fairbairn) Date: Mon, 17 Mar 2008 21:31:29 -0400 Subject: [PythonCE] developers inquiry Message-ID: <20080318013821.0497D1E4018@bag.python.org> Hi, On Tue Mar 18 13:10 , Joseph Armbruster sent: >I was recently added as a developer to PythonCE on SF. I am attempting to find >the subversion repository for PythonCE but have had no luck at all. Can anyone >point me in the right direction? I don't think there is one. I am not aware of one anyway. One or two minor releases on SourceForge last year were made by me (adding very initial Smartphone support for example). I didn't try to add the changes to a source control repositry etc as it seemed one would need to be created from scratch. I didn't really know who was in charge or control of the direction of the PythonCE project and didn't want to step over my authority etc. Since then I haven't had too much personal time to spend on the project. I do have a few additional patches floating around somewhere... This is compounded by the fact that there doesn't seem to be an active development effort surrounding the port. Since I submitted my last set of patches I've only had one person offer to help, and they "disappeared". I don't have the time to invest to make a fully polished port by myself. I would potentially be interested in giving you a helping hand (I am an expert in Windows CE / Windows Mobile development) if you do setup a SVN repository somewhere and managed to get a more active development process going. Hope this helps, Christopher Fairbairn Windows Mobile Development blog - http://www.christec.co.nz/blog/ From ron at vnetworx.net Tue Mar 18 02:39:56 2008 From: ron at vnetworx.net (Ron Guerin) Date: Mon, 17 Mar 2008 21:39:56 -0400 Subject: [PythonCE] developers inquiry In-Reply-To: <47DF169C.9090900@gmail.com> References: <47DF169C.9090900@gmail.com> Message-ID: <47DF1D6C.5010101@vnetworx.net> Joseph Armbruster wrote: > All, > > I was recently added as a developer to PythonCE on SF. I am attempting to find > the subversion repository for PythonCE but have had no luck at all. Can anyone > point me in the right direction? That would have to be because there isn't one. http://sourceforge.net/svn/?group_id=104228 At least not at SourceForge. There is a CVS repo there though. - Ron From christopher at christec.co.nz Tue Mar 18 03:00:38 2008 From: christopher at christec.co.nz (Christopher Fairbairn) Date: Mon, 17 Mar 2008 22:00:38 -0400 Subject: [PythonCE] developers inquiry Message-ID: <20080318020048.5E82F1E4013@bag.python.org> Hi, On Tue Mar 18 13:39 , Ron Guerin sent: >At least not at SourceForge. There is a CVS repo there though. Unless it has changed recently the CVS repository is significantly out of date. I don't think it matches up with any of the previous 3 or 4 releases. The only reliable way to get the source is via one of the source ZIP files made as part of each release. If anyone is interested in merging some patches I have some that I could probably find and clean up a little. I changed the build scripts so that PythonCE could also build via Visual Studio 2005 or 2008 if these tools are detected on the build machine, had support for X86 Windows CE devices (as well as ARM devices) and had a number of small UI changes in progress. Hope this helps, Christopher fairbairn Windows Mobile Development blog - http://www.christec.co.nz/blog/ From josepharmbruster at gmail.com Tue Mar 18 03:07:57 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Mon, 17 Mar 2008 22:07:57 -0400 Subject: [PythonCE] developers inquiry In-Reply-To: <20080318013821.0497D1E4018@bag.python.org> References: <20080318013821.0497D1E4018@bag.python.org> Message-ID: <47DF23FD.7090004@gmail.com> Christopher, So is there anyone but yourself that is an "active" developer? I will probably not need help doing the port. I would like another set of eyes to review the merge changes, mainly the parts Known to be vital. As of now, I only have to get through /Modules which has tons of changes and is going to be quite an effort indeed. Ultimately, I would like to see both 2.6 and 3k work on my phone :-) First things first I figure... see how I do with 2.6, release to the community and let them decide if it's any good. If it is, I will go ahead and do 3k, which will be substantially more work but fun nevertheless. Joseph Armbruster Christopher Fairbairn wrote: > Hi, > > On Tue Mar 18 13:10 , Joseph Armbruster sent: >> I was recently added as a developer to PythonCE on SF. I am attempting to find >> the subversion repository for PythonCE but have had no luck at all. Can anyone >> point me in the right direction? > > I don't think there is one. I am not aware of one anyway. > > One or two minor releases on SourceForge last year were made by me (adding very > initial Smartphone support for example). I didn't try to add the changes to a source > control repositry etc as it seemed one would need to be created from scratch. I > didn't really know who was in charge or control of the direction of the PythonCE > project and didn't want to step over my authority etc. > > Since then I haven't had too much personal time to spend on the project. I do have a > few additional patches floating around somewhere... > > This is compounded by the fact that there doesn't seem to be an active development > effort surrounding the port. Since I submitted my last set of patches I've only had > one person offer to help, and they "disappeared". I don't have the time to invest to > make a fully polished port by myself. > > I would potentially be interested in giving you a helping hand (I am an expert in > Windows CE / Windows Mobile development) if you do setup a SVN repository somewhere > and managed to get a more active development process going. > > Hope this helps, > Christopher Fairbairn > Windows Mobile Development blog - http://www.christec.co.nz/blog/ > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > From josepharmbruster at gmail.com Tue Mar 18 03:11:03 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Mon, 17 Mar 2008 22:11:03 -0400 Subject: [PythonCE] developers inquiry In-Reply-To: <20080318020048.5E82F1E4013@bag.python.org> References: <20080318020048.5E82F1E4013@bag.python.org> Message-ID: <47DF24B7.8010707@gmail.com> Christopher, Is there any way to switch the repo from cvs to svn in SF? That's turning me off from wanting to put code in there. If it's all out of date, midas well just take the snapshots currently available, switch to svn and import them into a nice tree structure. Your thoughts? Joseph Armbruster Christopher Fairbairn wrote: > Hi, > > On Tue Mar 18 13:39 , Ron Guerin sent: >> At least not at SourceForge. There is a CVS repo there though. > > Unless it has changed recently the CVS repository is significantly out of date. I don't > think it matches up with any of the previous 3 or 4 releases. > > The only reliable way to get the source is via one of the source ZIP files made as part of > each release. > > If anyone is interested in merging some patches I have some that I could probably find and > clean up a little. I changed the build scripts so that PythonCE could also build via Visual > Studio 2005 or 2008 if these tools are detected on the build machine, had support for X86 > Windows CE devices (as well as ARM devices) and had a number of small UI changes in progress. > > Hope this helps, > Christopher fairbairn > Windows Mobile Development blog - http://www.christec.co.nz/blog/ > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > From bkc at murkworks.com Tue Mar 18 04:06:36 2008 From: bkc at murkworks.com (Brad Clements) Date: Mon, 17 Mar 2008 23:06:36 -0400 Subject: [PythonCE] developers inquiry In-Reply-To: <47DF24B7.8010707@gmail.com> References: <20080318020048.5E82F1E4013@bag.python.org> <47DF24B7.8010707@gmail.com> Message-ID: <47DF31BC.1030204@murkworks.com> Joseph Armbruster wrote: > Christopher, > > Is there any way to switch the repo from cvs to svn in SF? That's turning me > off from wanting to put code in there. If it's all out of date, midas well > just take the snapshots currently available, switch to svn and import them into > a nice tree structure. > As far as I know, the cvs repo doesn't have anything useful in it. Wayback when I updated Mark hammond's original CE port, I tried to make all the changes needed to get the CE stuff checked into Python's main trunk source. However I never managed to get it fully ironed out to make it acceptable for incorporation in Python's main source tree. So as you've seen in this thread, source is typically hand-patched from a python trunk, then binaries are built and uploaded, and maybe the source tree gets zipped up too. maybe it would be good to consider launchpad and bazaar for revision control. You could use the upstream support in launchpad to tie off Python's main svn trunk. Personally I no longer have a working CE device, so have not worked on or used PythonCE for over 4 years. Sorry! -- Brad Clements, bkc at murkworks.com (315)268-1000 http://www.murkworks.com AOL-IM: BKClements From josepharmbruster at gmail.com Tue Mar 18 13:14:42 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Tue, 18 Mar 2008 08:14:42 -0400 Subject: [PythonCE] trunk merge? In-Reply-To: References: <47DDCD79.3050604@gmail.com> <47DEF761.5040302@gmail.com> Message-ID: <47DFB232.8000803@gmail.com> Luke, Cool, I was able to see it this morning. Quite empty indeed :-) I can go ahead and do the initial imports (if everyones ok with that). However, before I do so I would like to talk structure a bit. Currently, there are a few sources available from sf, 2.4/2.5 focused. How do you / others feel about having a layout like this: /external .. third party libs go here .. /pythonce /branches /release24-maint /release25-maint /tags /trunk (2.6 merge will go here) It parallels the python svn repository on purpose. Your thoughts? Joseph Armbruster Luke Dunstan wrote: > > -------------------------------------------------- > From: "Joseph Armbruster" > Sent: Tuesday, March 18, 2008 7:57 AM > To: "Luke Dunstan" > Subject: Re: [PythonCE] trunk merge? > >> Luke, >> >> I'm having a hard time finding the Sourceforge Subversion Repository. >> The only thing I can seem to find is a cvs repo linked from the >> project. Am I missing something? >> >> Thank You, >> Joseph Armbruster > > No, there is no source in Subversion yet. I have now enabled it. Let me > know if any other settings need to be changed. > > Luke > > > From bkc at murkworks.com Tue Mar 18 13:47:13 2008 From: bkc at murkworks.com (Brad Clements) Date: Tue, 18 Mar 2008 07:47:13 -0500 Subject: [PythonCE] trunk merge? In-Reply-To: <47DFB232.8000803@gmail.com> References: <47DDCD79.3050604@gmail.com> <47DEF761.5040302@gmail.com> <47DFB232.8000803@gmail.com> Message-ID: <47DFB9D1.9090005@murkworks.com> Joseph Armbruster wrote: > Luke, > > Cool, I was able to see it this morning. Quite empty indeed :-) I can go > ahead and do the initial imports (if everyones ok with that). However, before > I do so I would like to talk structure a bit. Can I suggest again looking at Launchpad + bazaar and the upstream following mode launchpad supports? The purpose of upstream following is to make it much easier to merge future changes from Python base code into you project. If you go with straight svn, how will you automatically merge upstream changes w/o doing it all by hand? From josepharmbruster at gmail.com Tue Mar 18 14:10:09 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Tue, 18 Mar 2008 09:10:09 -0400 Subject: [PythonCE] trunk merge? In-Reply-To: <47DFB9D1.9090005@murkworks.com> References: <47DDCD79.3050604@gmail.com> <47DEF761.5040302@gmail.com> <47DFB232.8000803@gmail.com> <47DFB9D1.9090005@murkworks.com> Message-ID: <938f42d70803180610v4264ded2u572d4991de7d5710@mail.gmail.com> Brad, I'm not familiar with launchpad + bazaar but I will definitely investigate. Can you give the details on how this would work? I would think by-hand is the safest way to start. Once the main merge with 2.6 is complete, keeping it up to date should not be entirely difficult even if this was only done at a rate of once per week. Joseph Armbruster On Tue, Mar 18, 2008 at 8:47 AM, Brad Clements wrote: > Joseph Armbruster wrote: > > Luke, > > > > Cool, I was able to see it this morning. Quite empty indeed :-) I can > go > > ahead and do the initial imports (if everyones ok with that). However, > before > > I do so I would like to talk structure a bit. > > Can I suggest again looking at Launchpad + bazaar and the upstream > following mode launchpad supports? > > The purpose of upstream following is to make it much easier to merge > future changes from Python base code into you project. > > If you go with straight svn, how will you automatically merge upstream > changes w/o doing it all by hand? > > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080318/5f8cff57/attachment.htm From frederic.mantegazza at gbiloba.org Tue Mar 18 14:00:18 2008 From: frederic.mantegazza at gbiloba.org (=?ISO-8859-1?Q?Fr=E9d=E9ric?=) Date: Tue, 18 Mar 2008 14:00:18 +0100 (CET) Subject: [PythonCE] PDA running PythonCE Message-ID: Hello, For a panoramic head control software, we need to buy a PDA with BlueTooth, running PythonCE. I think to buy a used one, and we don't want to spend too much money. IWe don't need gadgets; only python and BT ;o) What hardware do you suggest? Do you know plans to buy old stocks or so? Thanks, From coder_infidel at hotmail.com Tue Mar 18 14:56:37 2008 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Tue, 18 Mar 2008 22:56:37 +0900 Subject: [PythonCE] trunk merge? In-Reply-To: <47DDCD79.3050604@gmail.com> <47DEF761.5040302@gmail.com> <47DFB232.8000803@gmail.com> References: <47DDCD79.3050604@gmail.com> <47DEF761.5040302@gmail.com> <47DFB232.8000803@gmail.com> Message-ID: -------------------------------------------------- From: "Joseph Armbruster" Sent: Tuesday, March 18, 2008 9:14 PM To: "Luke Dunstan" ; Subject: Re: [PythonCE] trunk merge? > Luke, > > Cool, I was able to see it this morning. Quite empty indeed :-) I can go > ahead and do the initial imports (if everyones ok with that). However, > before I do so I would like to talk structure a bit. > > Currently, there are a few sources available from sf, 2.4/2.5 focused. > How do you / others feel about having a layout like this: > > /external > .. third party libs go here .. > /pythonce > /branches > /release24-maint > /release25-maint > /tags > /trunk (2.6 merge will go here) > > > It parallels the python svn repository on purpose. > > Your thoughts? > Joseph Armbruster I have not had a lot of experience with Subversion yet, but I was reading the manual section on "vendor branches", and they suggest to have both the original source (e.g. Python trunk) and patched source (PythonCE trunk for 2.6) in the repository in separate directories. That way, to update our own source we first update our copy of the Python trunk source, and then use the Subversion merge command to automatically merge the changes into our branch. For example: /python /trunk <- (1) update to latest Python source /pythonce /trunk <- (2) merge /python/trunk into here If there are other source control tools that make it easier though, then go for it. Luke > > > Luke Dunstan wrote: >> >> -------------------------------------------------- >> From: "Joseph Armbruster" >> Sent: Tuesday, March 18, 2008 7:57 AM >> To: "Luke Dunstan" >> Subject: Re: [PythonCE] trunk merge? >> >>> Luke, >>> >>> I'm having a hard time finding the Sourceforge Subversion Repository. >>> The only thing I can seem to find is a cvs repo linked from the project. >>> Am I missing something? >>> >>> Thank You, >>> Joseph Armbruster >> >> No, there is no source in Subversion yet. I have now enabled it. Let me >> know if any other settings need to be changed. >> >> Luke >> >> >> > > From josepharmbruster at gmail.com Tue Mar 18 15:11:25 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Tue, 18 Mar 2008 10:11:25 -0400 Subject: [PythonCE] trunk merge? In-Reply-To: References: <47DDCD79.3050604@gmail.com> <47DEF761.5040302@gmail.com> <47DFB232.8000803@gmail.com> Message-ID: <938f42d70803180711j1d4a46d6i672a9f7c4abb1dab@mail.gmail.com> Luke, We could take it to that level if you want but I don't exactly see the need for that level of complexity here. As long as our commits are explicit about which revision in svn.python.org we are merging from, that should be enough. I think the most important question is how you all wish to treat 2.4 / 2.5. If they are strictly for maintenance (as svn.python.org) then all we have to do is start out by placing them in their own branch and then tag releases appropriately. From 2.6 on out, we could develop in trunk and branch when necessary. Joseph Armbruster On Tue, Mar 18, 2008 at 9:56 AM, Luke Dunstan wrote: > -------------------------------------------------- > From: "Joseph Armbruster" > Sent: Tuesday, March 18, 2008 9:14 PM > To: "Luke Dunstan" ; > Subject: Re: [PythonCE] trunk merge? > > > Luke, > > > > Cool, I was able to see it this morning. Quite empty indeed :-) I can > go > > ahead and do the initial imports (if everyones ok with that). However, > > before I do so I would like to talk structure a bit. > > > > Currently, there are a few sources available from sf, 2.4/2.5 focused. > > How do you / others feel about having a layout like this: > > > > /external > > .. third party libs go here .. > > /pythonce > > /branches > > /release24-maint > > /release25-maint > > /tags > > /trunk (2.6 merge will go here) > > > > > > It parallels the python svn repository on purpose. > > > > Your thoughts? > > Joseph Armbruster > > I have not had a lot of experience with Subversion yet, but I was reading > the manual section on "vendor branches", and they suggest to have both the > original source (e.g. Python trunk) and patched source (PythonCE trunk for > 2.6) in the repository in separate directories. That way, to update our > own > source we first update our copy of the Python trunk source, and then use > the > Subversion merge command to automatically merge the changes into our > branch. > For example: > > /python > /trunk <- (1) update to latest Python source > /pythonce > /trunk <- (2) merge /python/trunk into here > > If there are other source control tools that make it easier though, then > go > for it. > > Luke > > > > > > > Luke Dunstan wrote: > >> > >> -------------------------------------------------- > >> From: "Joseph Armbruster" > >> Sent: Tuesday, March 18, 2008 7:57 AM > >> To: "Luke Dunstan" > >> Subject: Re: [PythonCE] trunk merge? > >> > >>> Luke, > >>> > >>> I'm having a hard time finding the Sourceforge Subversion Repository. > >>> The only thing I can seem to find is a cvs repo linked from the > project. > >>> Am I missing something? > >>> > >>> Thank You, > >>> Joseph Armbruster > >> > >> No, there is no source in Subversion yet. I have now enabled it. Let me > >> know if any other settings need to be changed. > >> > >> Luke > >> > >> > >> > > > > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080318/244c0211/attachment.htm From marclebrun at skynet.be Tue Mar 18 17:12:55 2008 From: marclebrun at skynet.be (Marc Lebrun) Date: Tue, 18 Mar 2008 17:12:55 +0100 Subject: [PythonCE] Using FBCLIENT.DLL with PythonCE Message-ID: <47DFEA07.9050000@skynet.be> Hi, Where can I find a version of FBCLIENT.DLL ported to WinCE and ARM processors ? I have to write an app on such devices using Python and Kinterbasdb and I hope this is sufficient to work, what do you think ? Thanks Marc. From christopher at christec.co.nz Tue Mar 18 22:39:15 2008 From: christopher at christec.co.nz (Christopher Fairbairn) Date: Tue, 18 Mar 2008 17:39:15 -0400 Subject: [PythonCE] trunk merge? Message-ID: <20080318213953.A68D61E401A@bag.python.org> Hi, Does anyone have an idea on what some of the issues surrounding earlier attempts/investigations at merging the PythonCE specific changes into the main Python trunk were? I can have a guess at what a couple of these may be, but it would be handy to keep these things in mind if a more increased development effort starts to build around the PythonCE port. I have a couple of ideas on things that we could do to reduce the size of our diff, and to reduce the amount of "core" Python code we touch which may help any eventual patch be accepted. I also like the idea of having a place in SVN for third party libraries. I have a couple of small patches to libraries such as pygame to make them more usable/compatible with the PythonCE port. It would be nice to have these in revision control before being able to push the changes upstream. Would that be the intention for that directory? Thanks, Christopher Fairbairn From josepharmbruster at gmail.com Tue Mar 18 23:55:12 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Tue, 18 Mar 2008 18:55:12 -0400 Subject: [PythonCE] IRC In-Reply-To: <20080318213953.A68D61E401A@bag.python.org> References: <20080318213953.A68D61E401A@bag.python.org> Message-ID: <47E04850.6060703@gmail.com> All, If anyone wants to discuss any merge-topics or other pythonce such things, I will be on freenode in #pythonce. I am usually logged into irc most of the day. Just be sure to check my away status. :-) Joseph Armbruster From bkc at murkworks.com Wed Mar 19 05:36:39 2008 From: bkc at murkworks.com (Brad Clements) Date: Wed, 19 Mar 2008 00:36:39 -0400 Subject: [PythonCE] trunk merge? In-Reply-To: <20080318213953.A68D61E401A@bag.python.org> References: <20080318213953.A68D61E401A@bag.python.org> Message-ID: <47E09857.8020704@murkworks.com> Christopher Fairbairn wrote: > Hi, > > Does anyone have an idea on what some of the issues surrounding earlier attempts/investigations at > merging the PythonCE specific changes into the main Python trunk were? Two biggies where the lack of proper errno support and floating point math problems. You could check the python dev list history. better yet, google suggests http://mail.python.org/pipermail/pythonce/2006-January/001236.html And this text (sorry a quote of a quote) from http://www.mail-archive.com/pythonce at python.org/msg00403.html > Message: 10 > Date: Fri, 06 Jan 2006 14:51:31 -0500 > From: "Brad Clements" <[EMAIL PROTECTED]> > Subject: Re: [PythonCE] Empty project or Human Friendly Project? > To: pythonce at python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=US-ASCII > > On 6 Jan 2006 at 14:30, Tim Lesher wrote: > > > Just my opinion, but I don't think PythonCE will get much traction > > unless and until someone decides to clean up the build and contribute > > it back to the core. -- Tim Lesher <[EMAIL PROTECTED]> > > > For sure, > > and a few years back I started down that road. > > Older versions of Windows CE have big incompatibability issues. > > I tried, for example, to cleanup NaN handling in various places, getpath.c > implementation and so on. > > My cleanup was done via C macros that would be "compiled out" on standard > platforms. > > I sent a few trial balloons up to the python-dev list, but my approach was not > generally liked. > > I had spent hours editing code to stick these damn macros in, and while it > worked, it apparently wasn't an acceptable solution. > > > Unfortunately I can't remember now exactly what the story was.. anyway, for as > much as I've tried to get my clients interested in Python on CE, I've never > had any > interest from any of them. So my Python CE support has been low. > > Combine that with the difficult problem of integrating the CE port back into > the > mainline code and .. I have just let the project slip by. > > Anyway.. it would be great to get our changes back into the mainline code, > but I > don't think it's a simple problem to solve.. :-( > -- Brad Clements, bkc at murkworks.com (315)268-1000 http://www.murkworks.com AOL-IM: BKClements From josepharmbruster at gmail.com Wed Mar 19 04:17:16 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Tue, 18 Mar 2008 23:17:16 -0400 Subject: [PythonCE] Temporary repository for trunk merge Message-ID: <47E085BC.8080007@gmail.com> All, While it is determined if the svn repository should be used and how it should be used, I would like to keep development moving forward. To support this, I have created a Temporary repository at the following location: https://www.joevial.com/svn/pythonce This is where I (and anyone else interested) will be performing the merge work. If you are interested in obtaining an account for the time being, do not hesitate to contact me. Joseph Armbruster From josepharmbruster at gmail.com Wed Mar 19 23:00:14 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Wed, 19 Mar 2008 18:00:14 -0400 Subject: [PythonCE] Active in #pythonce Message-ID: <47E18CEE.3090503@gmail.com> All, I will be in and out of #pythonce on freenode from here on out this evening. Feel free to join me if you'd like to discuss merging and such. Joseph Armbruster From josepharmbruster at gmail.com Fri Mar 21 19:30:21 2008 From: josepharmbruster at gmail.com (Joseph Armbruster) Date: Fri, 21 Mar 2008 14:30:21 -0400 Subject: [PythonCE] 2.6 update Message-ID: <938f42d70803211130t10b25343u16c94d8eb5325426@mail.gmail.com> All, After moving my merge tree over to the latest 2.6a1 release and installing the latest version of scons, I encountered some resistance. If you plan on attempting to do so on your own, read through my advice here: http://sourceforge.net/forum/forum.php?thread_id=1976841&forum_id=358833 scons does not trap the error, so it took a bit of tracing. This issue has also been discussed on python-dev recently... I was able to successfully complete a build with my tree merged over and should have my first commit in tonight. Cheers! Joseph Armbruster -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080321/d6da8359/attachment.htm From alexandre.delattre at enst-bretagne.fr Sat Mar 22 17:07:39 2008 From: alexandre.delattre at enst-bretagne.fr (Alexandre Delattre) Date: Sat, 22 Mar 2008 18:07:39 +0200 Subject: [PythonCE] 2.6 update Message-ID: <200803221708.m2MH8Uov015463@courrier.enst-bretagne.fr> Congratulations ! I'll be glad to try the new features of Py 2.6 right on my pda :) Btw, I have a suggestion to make compiling/porting C extension modules easier in future PythonCE builds: Indeed, the functions implemented in wince_compatibility.c are not available from a C extension module. Using the __declspec(dllexport) notation for these function would allow extensions to dynamically link with them, and benefit for instance of proper errno and current directory support. Great work anyway, Alex From christopher at christec.co.nz Sun Mar 23 02:25:21 2008 From: christopher at christec.co.nz (Christopher Fairbairn) Date: Sun, 23 Mar 2008 14:25:21 +1300 Subject: [PythonCE] 2.6 update In-Reply-To: <200803221708.m2MH8Uov015463@courrier.enst-bretagne.fr> References: <200803221708.m2MH8Uov015463@courrier.enst-bretagne.fr> Message-ID: <743927F0-70A1-477C-B7F6-396EEF11E92C@christec.co.nz> Hi, On 23/03/2008, at 5:07 AM, Alexandre Delattre wrote: > Btw, I have a suggestion to make compiling/porting C extension > modules easier in future PythonCE builds: > > Indeed, the functions implemented in wince_compatibility.c are not > available from a C extension module. > > Using the __declspec(dllexport) notation for these function would > allow extensions to dynamically link with them, and benefit for > instance of proper errno and current directory support. While Joseph has been concentrating on getting a Python 2.6 merge up and running I have been working on some related things to hopefully make a future merge into the Python trunk more acceptable/easier. One of them is essentially the changes you suggest above. With a few additional modifications it helps reduce the number of #ifdef MS_WINCE required through the core Python source code, and it makes them not only available for extension modules but also other supporting libraries such as libsdl etc. I'm particularly keen to get the SDL graphics library compiled with access to Python's concept of a current working directory etc, as this will mean a lot of pygame based projects will run on PythonCE without major changes. Using the existing pygame/libsdl ports requires all file paths to be replaced with full paths to any graphic or sound resources etc. My changes to how wince_compatibility.c works means although libsdl will get access to Python's current working directory concept etc, it still doesn't have a direct dependency on PythonCE being installed (i.e. SDL still works without PythonCE installed). The other change I have been experimenting with is a replacement of the SCONS based build system for PythonCE. The Win32 desktop versions of Python are currently built via a series of Visual Studio 2008 project files. I have started writing a little script that converts these project files so that they build for Pocket PC 2003 (in a similar fashion to an existing script which converts the VS2008 files into a format compatible with VS2005). My progress seems to be going well. My hope is that if we can start building using the same process as the desktop it will be easier to get the changes submitted upstream. Any changes the core Python developers make to how Python builds for the desktop would instantly be reflected in the PythonCE build process. This also helps resolve some of the differences that currently occur between the desktop and PythonCE builds. How many people are currently building PythonCE with Embedded Visual C v4? One thing Joseph and myself have been thinking about is further developing the work I have been doing to produce a script that would convert the VS2008 based project files into a format compatible with Embedded Visual C. This isn't of particular interest to me (as I have been using Visual Studio to build PythonCE for quite a while), but I do realise that unlike for the desktop there isn't a free version of Visual Studio that is capable of developing PDA applications. Hope this helps, Christopher Fairbairn From sabin1 at gmail.com Thu Mar 27 18:58:23 2008 From: sabin1 at gmail.com (sabin) Date: Thu, 27 Mar 2008 18:58:23 +0100 Subject: [PythonCE] pythonCE wrapper for OpenGL ES Message-ID: <32a0bb490803271058g69643a3ep7a5bd209b0f23151@mail.gmail.com> Hello, I am new to pythonCE programming and am currently investigating the posibility to make an openGL ES application in pythonCE (and PyS60). I am trying to develop a 3D rendering library which uses OpenGL ES and should work both on WinCE and Symbian. The Symbian port of python (pys60) has an fully working OpenGL ES wrapper, but i can't find anything about pythonCE. Can anyone shed some light on this problem? Any answer is apreciated, Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080327/e5f5f22f/attachment.htm From adam.walley at gmail.com Sun Mar 30 12:47:45 2008 From: adam.walley at gmail.com (Adam Walley) Date: Sun, 30 Mar 2008 11:47:45 +0100 Subject: [PythonCE] serial input problem Message-ID: <518d94ee0803300347p24b0161agb9437bdde03b4088@mail.gmail.com> Hi, All. I'm new to the list, but have been reading the posts for some time - I find it very useful. My question is about the Ceserial module. I use it on my PPC running WM5, with PythonCE 2.5. I have found that the Ceserial module works very well when communicating with another PC, but I have problems with other devices. For example, when connecting to my analog modem, I get the following: PPC: AT Modem: ?j5 (this should be '0') The full modem response in hex is: 0D A1 6A 35 0A As you can see the response is somehow garbled. I have a feeling this is something to do with the way WM5 handles things (ascii-unicode?), but have not figured out how to either change the settings or write some code to decode it. I know that my modem is receiving the commands correctly, because it responds (i.e. picks up, dials out, etc...). When I use my terminal program on the PPC I get the correct response from the modem. This shows me it is possible, and also that somewhere between WM5 and PythonCE there is something that scrambles the incoming data. I hope someone can point me in the right direction. Adam -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080330/55572f10/attachment.htm From adam.walley at gmail.com Mon Mar 31 15:09:00 2008 From: adam.walley at gmail.com (Adam Walley) Date: Mon, 31 Mar 2008 14:09:00 +0100 Subject: [PythonCE] serial input problem In-Reply-To: <518d94ee0803310515n522b4dc7n639d8ab218b94b14@mail.gmail.com> References: <518d94ee0803300347p24b0161agb9437bdde03b4088@mail.gmail.com> <47EFE824.9090608@jan-ischebeck.de> <518d94ee0803310515n522b4dc7n639d8ab218b94b14@mail.gmail.com> Message-ID: <518d94ee0803310609h5539135fk9fb4ce51a16f6f41@mail.gmail.com> From: Adam Walley Date: 31 Mar 2008 13:15 Subject: Re: [PythonCE] serial input problem To: Jan Ischebeck Hi, Jan. Thanks for the reply. I am using 19200 baud, but I have also checked 2400, 4800, 9600, 14400, 38400, 57600 - same result. The other settings are 8N1 (set as 8,0,1 in the ceserial module). I have checked my modem settings to see that there is nothing which could interfere, but AFAIK all seems ok. I have made sure my wiring is ok too. All these checks are good, but the fact is that my terminal program works correctly, and PythonCE continues to give me these scrambled answers. The first character usually seems to be correct, but after that it seems to be garbage. The "OK" reply from my modem comes in as: 13 A1 6A 35 (in hex). If I switch to numeric modem responses the modem replies with "0" instead of "OK". In this case, PythonCE gives me a "0" followed by a square (indicating a character which cannot be displayed). I feel like I am missing something simple, but just cannot put my finger on it. Just a note on encoding, my 'sys.getdefaultencoding()' is 'ascii' and my ' sys.getfilesystemencoding()' is 'mbcs'. I hope you can help. Adam On 30/03/2008, Jan Ischebeck wrote: > > Hi Adam, > > Have you checked Baudrate, Stopbit and Parity Settings? > > The begin of the modems answer in hex makes sense ( 0x0D = 13 = carriage > return). The last byte is 0x0A = 10 = line feed. > > But A1 6A 35 is neither raw unicode, utf-8 or utf-16 so I guess > something is wrong with the line settings. > > Jan > > Adam Walley wrote: > > > > PPC: AT > > Modem: ?j5 (this should be '0') > > > > The full modem response in hex is: 0D A1 6A 35 0A > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20080331/2a0dde03/attachment.htm