From ke7fxl at gmail.com Mon May 1 06:05:50 2006 From: ke7fxl at gmail.com (Tod Haren) Date: Sun, 30 Apr 2006 21:05:50 -0700 Subject: [PythonCE] PythonCE IDE and Form Designer in Development In-Reply-To: <8f654c1e0604270641t5508a737uc15b643b79e46392@mail.gmail.com> References: <8f654c1e0604270641t5508a737uc15b643b79e46392@mail.gmail.com> Message-ID: <6f5b2c4e0604302105j3793a968o6bcc15a555c019d1@mail.gmail.com> Very cool. I vote yes. From johnny at debris.demon.nl Mon May 1 08:36:41 2006 From: johnny at debris.demon.nl (Johnny deBris) Date: Mon, 01 May 2006 08:36:41 +0200 Subject: [PythonCE] Remote Interactive Python shell Message-ID: <4455AC79.8080800@debris.demon.nl> Hello! After a couple of years of catching dust, I started playing with my IPaq a bit over the weekend. Installed the latest PythonCE (great work btw, works like a charm), opened it, typed two lines of Python code... and found again that the little keyboard thingie is not the most ideal for input. To overcome this, I wrote a little script, that allows executing Python code remotely. There's a little server that can be started on the IPaq, after that the client can be used to either present a Python prompt from the server, or send complete files to it to be executed. Type 'python ripshell.py' to start the server, 'python ripshell.py -' to start the client and have the server present a prompt, or 'python ripshell.py ' to execute a Python script. Stdin, stdout and stderr are redirected from the server to the client. I was quite delighted, no more pressing little fake keys with the stylo to test Python code on my IPaq, so I figured perhaps you guys might be interested in it too. Added a BSD-style license, so you can kdo with it whatever you wish basically... Note that you will need to have a pocket pc with an IP address, I think normally when connected via IR or USB and ActiveSync that's not the case (I tested with USB and Linux/SynCE myself). If you have questions or remarks, mail me! Cheers, Guido P.S. To cleanly shut down the server, send it "raise SystemExit('quit')". -------------- next part -------------- A non-text attachment was scrubbed... Name: ripshell-0.1.tar.gz Type: application/x-gzip Size: 3183 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonce/attachments/20060501/495482e6/attachment.bin From coder_infidel at hotmail.com Mon May 1 16:00:24 2006 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Mon, 1 May 2006 22:00:24 +0800 Subject: [PythonCE] Python 2.4.3 for Windows CE / ARM (bug fix release) Message-ID: A new bug fix release of Python for Windows CE is available. Download it here: http://sourceforge.net/project/showfiles.php?group_id=104228 The release notes are linked from this page, but a direct link is: http://sourceforge.net/project/shownotes.php?release_id=413801&group_id=104228 Luke From coder_infidel at hotmail.com Mon May 1 16:06:34 2006 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Mon, 1 May 2006 22:06:34 +0800 Subject: [PythonCE] Fwd: IdleCE problem: No module named Tkconstants References: <20060420164550.36443.qmail@web50210.mail.yahoo.com> Message-ID: ----- Original Message ----- From: "Ed Blake" To: Sent: Friday, April 21, 2006 12:45 AM Subject: Re: [PythonCE] Fwd: IdleCE problem: No module named Tkconstants > > Yeah, I was going to post about what I did to get IdleCE working when I > moved > to Python 2.4, but I was lazy and didn't want to say anything stupid. > Basically paths are setup correctly on PythonCE 2.4, but none of the > Tkinter > .py files are included. Just copy everything from /lib/Tkinter on your pc > to > /lib/Tkinter on your winCE - then edit/replace Tkinter.py using the > instructions in the readme. > > At least I think that was all that was needed to get it running... Maybe > I > should fix the bugs and do a new release? Also somebody should put the > Tkinter pyc files into the zip for the next release of PythonCE, What good > is > it to include it in the path but not the distro? At first I thought so too, but actually the Tkinter .pyc files really are in the zip file, but sys.path doesn't point to them (it only points to a lib-tk directory outside the zip file). The latest release should fix this problem. Luke > > --- Roman Bischoff wrote: > >> After a hard reset I lost my whole Python installation on the iPaq. >> Now I'm re-installing it, and migrating to the newer versions. >> >> ... > >> I get this error: >> >> Traceback (innermost last): >> File "\Program Files\Python24\Lib\Editor.py", line 10, in ? >> from Tkinter import * >> File "\Program Files\Python24\Lib\Tkinter.py", line 42, in ? >> from Tkconstants import * >> exceptions.ImportError: No module named Tkconstants >> >> ... >> >> Roman > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > From coder_infidel at hotmail.com Mon May 1 16:26:40 2006 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Mon, 1 May 2006 22:26:40 +0800 Subject: [PythonCE] Problem calling python References: <20060412161901.83983.qmail@web50209.mail.yahoo.com> Message-ID: ----- Original Message ----- From: "Ed Blake" To: Sent: Thursday, April 13, 2006 12:19 AM Subject: Re: [PythonCE] Problem calling python > > I've been wondering about that. Don't you get the full path to a script > when > it is run? Otherwise how would Python know where to find the file it's > supposed to execute? How can you open a file without knowing where it is? > And if you do know where a script is being run from - shouldn't that be > the > scripts initial working directory? Your suggestion has been implemented in the latest release. Luke > > --- Luke Dunstan wrote: > >> >> While you are debugging this, please be aware that unlike most operating >> systems, Windows CE has no concept of a "current directory" at all. The >> command prompt gives the illusion of a current directory for convenience >> but >> once you start another program it will have no way of knowing what the >> command prompt current directory was. PythonCE also emulates a current >> directory for compatibility with other Python platforms but it is always >> "\Temp" when you start PythonCE. You can see what the current (emulated) >> directory is using os.getcwd(). >> >> Luke >> > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > From bpederse at gmail.com Tue May 2 20:47:18 2006 From: bpederse at gmail.com (Brent Pedersen) Date: Tue, 2 May 2006 11:47:18 -0700 Subject: [PythonCE] webserver on CE Message-ID: hi, i have a set of python CGI scripts that work on a server by serving an html form, and storing data in a text file on submission (uh, yeah, hence CGI). i'd like to get a setup so that these scripts could be used in the field (no web connection). i tried using a simple python script that acts as a webserver on the handheld GPS unit with windows CE (then access via http://localhost/), but some of the imports that the scriptServer.py (off activestate) used was missing. is there a standard FREE webserver out there for windows CE? or is there some other simple means i could use to generate a form and have input stored to a text file? i'd prefer to use html, since that's what's already used on the main server... any other ideas on storing content of an html form on submission (without web connection)? thanks, -brent -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20060502/dee86ebf/attachment.htm From redefined.horizons at gmail.com Wed May 3 01:45:27 2006 From: redefined.horizons at gmail.com (Redefined Horizons) Date: Tue, 2 May 2006 16:45:27 -0700 Subject: [PythonCE] Curious about Python for Windows CE Message-ID: I am still pretty new to Python, but my company is investigating the possibilty of developing applications on Windows CE Devices, and I had a couple of questions: I'd like to use Python as my development environment for Windows CE Devices. What is the current status of Python on Windows CE? Is it still very "experimental", or is it something that I can use for development of a relatively stable application? Is there a GUI toolkit for Windows CE that I can use in Python? Something like a port of PyGTK or wxWidgets? Is there any work being done with Python for Pocket PCs that run Linux, and not Windows CE? Thanks, Scott Huey -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20060502/0fc35b5c/attachment.html From coder_infidel at hotmail.com Wed May 3 06:21:24 2006 From: coder_infidel at hotmail.com ( Luke Dunstan) Date: Wed, 3 May 2006 12:21:24 +0800 Subject: [PythonCE] webserver on CE References: Message-ID: Can you explain more about the missing imports? If the script is designed to be portable to Windows then in most cases it should work on Windows CE. Luke ----- Original Message ----- From: Brent Pedersen To: pythonce at python.org Sent: Wednesday, May 03, 2006 2:47 AM Subject: [PythonCE] webserver on CE hi, i have a set of python CGI scripts that work on a server by serving an html form, and storing data in a text file on submission (uh, yeah, hence CGI). i'd like to get a setup so that these scripts could be used in the field (no web connection). i tried using a simple python script that acts as a webserver on the handheld GPS unit with windows CE (then access via http://localhost/), but some of the imports that the scriptServer.py (off activestate) used was missing. is there a standard FREE webserver out there for windows CE? or is there some other simple means i could use to generate a form and have input stored to a text file? i'd prefer to use html, since that's what's already used on the main server... any other ideas on storing content of an html form on submission (without web connection)? thanks, -brent ------------------------------------------------------------------------------ _______________________________________________ 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/20060503/69b6fd99/attachment.htm From johnny at debris.demon.nl Wed May 3 08:20:02 2006 From: johnny at debris.demon.nl (Johnny deBris) Date: Wed, 03 May 2006 08:20:02 +0200 Subject: [PythonCE] webserver on CE In-Reply-To: References: Message-ID: <44584B92.2020509@debris.demon.nl> Brent Pedersen wrote: > > is there a standard FREE webserver out there for windows CE? > or is there some other simple means i could use to generate a form and > have input stored to a text file? > i'd prefer to use html, since that's what's already used on the main > server... > You could use core Python's BaseHTTPServer, I guess, although it's a little simple and you'd have to implement relatively much yourself it shouldn't be too hard to write a small CGI-capable webserver with it. I guess it won't be usable out-of-the-box, and I guess CGIHTTPServer won't work either, because there's no 'current directory' on CE, but writing your own GET and POST handlers should not be very hard. Cheers, Guido From gmc at serveisw3.net Wed May 3 11:41:07 2006 From: gmc at serveisw3.net (=?ISO-8859-1?Q?Gonzalo_Monz=F3n?=) Date: Wed, 03 May 2006 11:41:07 +0200 Subject: [PythonCE] [Fwd: Re: Curious about Python for Windows CE] Message-ID: <44587AB3.1040902@serveisw3.net> -------------- next part -------------- An embedded message was scrubbed... From: =?ISO-8859-1?Q?Gonzalo_Monz=F3n?= Subject: Re: [PythonCE] Curious about Python for Windows CE Date: Wed, 03 May 2006 11:37:56 +0200 Size: 5105 Url: http://mail.python.org/pipermail/pythonce/attachments/20060503/0d5c1c04/attachment.mht From jeff_barish at earthlink.net Thu May 11 04:53:05 2006 From: jeff_barish at earthlink.net (jeffbarish) Date: Wed, 10 May 2006 19:53:05 -0700 (PDT) Subject: [PythonCE] Reverting to PythonCE 2.3 Message-ID: <4333415.post@talk.nabble.com> I wanted to try the new PythonCE 2.4 that Luke published. It loaded easily and worked great -- except that wxPython will not work with it. Accordingly, I need to go back to 2.3. I kept backups of everything, so I thought that I was safe, but of course this is Windows so nothing is easy. PythonCE 2.3 runs when I navigate to it using File Explorer, but the Python entry that I see under that start menu does not work (nothing happens) and it does not work to tap on a Python program (The file 'X' cannot be opened...). I guess that the Registry needs to be updated. Does anyone agree with that guess? What tools are available for editing the registry (I am using Windows Mobile 5)? Any idea what changes need to be made to the registry? -- View this message in context: http://www.nabble.com/Reverting-to-PythonCE-2.3-t1597668.html#a4333415 Sent from the Python - pythonce forum at Nabble.com. From jeff_barish at earthlink.net Thu May 11 04:53:05 2006 From: jeff_barish at earthlink.net (jeffbarish) Date: Wed, 10 May 2006 19:53:05 -0700 (PDT) Subject: [PythonCE] Reverting to PythonCE 2.3 Message-ID: <4333415.post@talk.nabble.com> I wanted to try the new PythonCE 2.4 that Luke published. It loaded easily and worked great -- except that wxPython will not work with it. Accordingly, I need to go back to 2.3. I kept backups of everything, so I thought that I was safe, but of course this is Windows so nothing is easy. PythonCE 2.3 runs when I navigate to it using File Explorer, but the Python entry that I see under the start menu does not work (nothing happens) and it does not work to tap on a Python program (The file 'X' cannot be opened...). I guess that the Registry needs to be updated. Does anyone agree with that guess? What tools are available for editing the registry (I am using Windows Mobile 5)? Any idea what changes need to be made to the registry? -- View this message in context: http://www.nabble.com/Reverting-to-PythonCE-2.3-t1597668.html#a4333415 Sent from the Python - pythonce forum at Nabble.com. From gmc at serveisw3.net Thu May 11 08:29:24 2006 From: gmc at serveisw3.net (=?ISO-8859-1?Q?Gonzalo_Monz=F3n?=) Date: Thu, 11 May 2006 08:29:24 +0200 Subject: [PythonCE] Reverting to PythonCE 2.3 In-Reply-To: <4333415.post@talk.nabble.com> References: <4333415.post@talk.nabble.com> Message-ID: <4462D9C4.9030803@serveisw3.net> jeffbarish escribi?: > I wanted to try the new PythonCE 2.4 that Luke published. It loaded > easily > and worked great -- except that wxPython will not work with it. > Accordingly, I need to go back to 2.3. I kept backups of everything, > so I > thought that I was safe, but of course this is Windows so nothing is > easy. PythonCE 2.3 runs when I navigate to it using File Explorer, but > the Python > entry that I see under that start menu does not work (nothing happens) > and > it does not work to tap on a Python program (The file 'X' cannot be > opened...). I guess that the Registry needs to be updated. Does anyone > agree with that guess? What tools are available for editing the > registry (I > am using Windows Mobile 5)? Any idea what changes need to be made to the > registry? > -- > View this message in context: > http://www.nabble.com/Reverting-to-PythonCE-2.3-t1597668.html#a4333415 > Sent from the Python - pythonce forum at Nabble.com. > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > > > Hi Jeffbarish, Yes, sure you need to update the registry values for the .py/.pyc file assotiation to be able to tap again and run python files. Thought you could use the 'old' 2.3 setup-registry, it will update the registry keys. I don't know if you have got this in your current 2.3 install, so I've attached the files. Place them on the python lib folder (/program files/python/lib) and tap on the .lnk file, it will re-associate the python.exe from that folder with the .py files. Also probably would need to update the start menu link, you will have to make a new one for the new python.exe. Finally, I'd like to ask some questions!! I haven't heard of anybody using python on a windows mobile! sure your answers will be interesting for all!! Are you using python on windows mobile 5 with success? ARM cpu? Does wxwindows run fine? What kind of use you give to it? Thank you for your reply !! :-) Gonzalo Monz?n From pythonce at electricmonk.nl Thu May 11 10:28:27 2006 From: pythonce at electricmonk.nl (Ferry Boender) Date: Thu, 11 May 2006 10:28:27 +0200 Subject: [PythonCE] Reverting to PythonCE 2.3 In-Reply-To: <4462D9C4.9030803@serveisw3.net> References: <4333415.post@talk.nabble.com> <4462D9C4.9030803@serveisw3.net> Message-ID: <20060511082827.GA5422@localhost.localdomain> * Gonzalo Monz?n [2006-05-11 09:31:15]: > > Finally, I'd like to ask some questions!! I haven't heard of anybody > using python on a windows mobile! sure your answers will be interesting > for all!! I haven't used Python much on my mobile yet, but I have installed it on my Windows Mobile 5 ARM 'smartphone' (HTC Wizard) and it seems to work great.. Previous releases of PythonCE often failed to work completely or had problems when loading the win32foo libs (Python would crash). The recently released version is the first (that I tried) that worked for everything I had the time to try. Haven't tried wxwindows yet. Greets, -- Ferry Boender http://www.electricmonk.nl From jeff_barish at earthlink.net Thu May 11 16:35:02 2006 From: jeff_barish at earthlink.net (jeffbarish) Date: Thu, 11 May 2006 07:35:02 -0700 (PDT) Subject: [PythonCE] Reverting to PythonCE 2.3 In-Reply-To: <4462D9C4.9030803@serveisw3.net> References: <4333415.post@talk.nabble.com> <4462D9C4.9030803@serveisw3.net> Message-ID: <4341565.post@talk.nabble.com> Thank you for the suggestion. I should have mentioned before that I did try to run setup-registry (and also Setup Registry). Both are still present in the lib folder. However, neither will run, producing the same message I get whenever I try to do anything (The file 'setup-registry' cannot be opened...). I assumed that they are both .py files, so they would not run until the registry got fixed -- oh, I now see that setup-registry is a .py but Setup Registry may be something else. Actually, when I run Setup Registry I get the message "The file 'python' cannot be opened". I could not find your attachment, but I presume that it is the same file that I have already. If winCE had a console, I would try running the command "python setup-registry", but as fas as I can tell there is no console available for Windows Mobile 5. I even thought of running python and using the system command, but pythonCE does not have that command. I tried doing an import setup-registry (after changing the name to setupregistry to make it a legal Python name). I get the message "Setting up registry to allow double clicking of Python files to work". Sounds promising, but I still can't run any Python commands by tapping them. How do I update the start menu link? I never created it in the first place, so I am not familiar with that procedure. I am pretty green when it comes to winCE (and hoping to keep it that way because most of what I have seen is disgusting). In response to your question, yes, I have been using Python on Windows Mobile 5 (ARM) for many months. It works fine. I have also been having a mostly good experience with wxPython. The version of wxPython that I found (the one originally created by Brian Retford) is based on an old wxPython. I have had to design around some bugs or quirks, but otherwise the library works fine. My main complaint is that they run a little slow, so I would not try using them on a platform that did not have a fast processor. Robin Dunn is working on a new version of wxPython for winCE, but I have no information on its status. -- View this message in context: http://www.nabble.com/Reverting-to-PythonCE-2.3-t1597668.html#a4341565 Sent from the Python - pythonce forum at Nabble.com. From jeff_barish at earthlink.net Thu May 11 23:31:03 2006 From: jeff_barish at earthlink.net (jeffbarish) Date: Thu, 11 May 2006 14:31:03 -0700 (PDT) Subject: [PythonCE] Reverting to PythonCE 2.3 In-Reply-To: <4341565.post@talk.nabble.com> References: <4333415.post@talk.nabble.com> <4462D9C4.9030803@serveisw3.net> <4341565.post@talk.nabble.com> Message-ID: <4349283.post@talk.nabble.com> Or, if no one knows how to edit the registry in Windows Mobile 5, does anyone know how to reload the OS? I checked at the Dell and Microsoft web sites but found nothing. -- View this message in context: http://www.nabble.com/Reverting-to-PythonCE-2.3-t1597668.html#a4349283 Sent from the Python - pythonce forum at Nabble.com. From coder_infidel at hotmail.com Fri May 12 17:04:33 2006 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Fri, 12 May 2006 23:04:33 +0800 Subject: [PythonCE] Reverting to PythonCE 2.3 References: <4333415.post@talk.nabble.com> <4462D9C4.9030803@serveisw3.net><4341565.post@talk.nabble.com> <4349283.post@talk.nabble.com> Message-ID: Total Commander can edit the registry on the device or Remote Registry Editor from Microsoft eMbedded Visual C++ 4.0 can do it remotely, at least on Pocket PC 2003. I think at least one of them should work on WM5. If not, you can write a Python program on the PC using the ActiveSync Remote API (RAPI) with ctypes. Luke ----- Original Message ----- From: "jeffbarish" To: Sent: Friday, May 12, 2006 5:31 AM Subject: Re: [PythonCE] Reverting to PythonCE 2.3 > > Or, if no one knows how to edit the registry in Windows Mobile 5, does > anyone > know how to reload the OS? I checked at the Dell and Microsoft web sites > but found nothing. > -- From shane.holloway at ieee.org Fri May 12 17:13:47 2006 From: shane.holloway at ieee.org (Shane Holloway (IEEE)) Date: Fri, 12 May 2006 09:13:47 -0600 Subject: [PythonCE] Reverting to PythonCE 2.3 In-Reply-To: <4349283.post@talk.nabble.com> References: <4333415.post@talk.nabble.com> <4462D9C4.9030803@serveisw3.net> <4341565.post@talk.nabble.com> <4349283.post@talk.nabble.com> Message-ID: <6D5FF99D-1ACD-4BA0-8B7A-208303EEB725@ieee.org> Well, it's actually easier than that. Look for a hard reset. It will simply wipe your RAM and revert to the ROM image on the device. Make sure you have everything you need backed up though -- it *will* be gone unless it is in a non-volatile storage area. On May 11, 2006, at 15:31, jeffbarish wrote: > > Or, if no one knows how to edit the registry in Windows Mobile 5, > does anyone > know how to reload the OS? I checked at the Dell and Microsoft web > sites > but found nothing. > -- > View this message in context: http://www.nabble.com/Reverting-to- > PythonCE-2.3-t1597668.html#a4349283 > Sent from the Python - pythonce forum at Nabble.com. > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce From gmc at serveisw3.net Fri May 12 18:11:38 2006 From: gmc at serveisw3.net (=?ISO-8859-1?Q?Gonzalo_Monz=F3n?=) Date: Fri, 12 May 2006 18:11:38 +0200 Subject: [PythonCE] Reverting to PythonCE 2.3 In-Reply-To: <4341565.post@talk.nabble.com> References: <4333415.post@talk.nabble.com> <4462D9C4.9030803@serveisw3.net> <4341565.post@talk.nabble.com> Message-ID: <4464B3BA.10606@serveisw3.net> jeffbarish escribi?: >Thank you for the suggestion. I should have mentioned before that I did try >to run setup-registry (and also Setup Registry). Both are still present in >the lib folder. However, neither will run, producing the same message I get >whenever I try to do anything (The file 'setup-registry' cannot be >opened...). I assumed that they are both .py files, so they would not run >until the registry got fixed -- oh, I now see that setup-registry is a .py >but Setup Registry may be something else. Actually, when I run Setup >Registry I get the message "The file 'python' cannot be opened". I could > > It is strange, that message means that python.exe is not found. Inside setup-registry.lnk I can see: #"\Program Files\Python\Lib\python.exe" "\Program Files\Python\Lib\setup-registry.py" A simple shell script! ;-) As you can see, the .lnk file is a shortcut to python.exe, and ...py script to execute, as first argument. I think you have some path issue. Is python installed on the \Program Files\Python\ folder? >not find your attachment, but I presume that it is the same file that I have > > I replied a copy to your email address as a zip file, perhaps was rejected by mail filters, as did for this python-ce maillist, get rejected as said could not send executable files... >already. If winCE had a console, I would try running the command "python >setup-registry", but as fas as I can tell there is no console available for >Windows Mobile 5. I even thought of running python and using the system >command, but pythonCE does not have that command. I tried doing an import >setup-registry (after changing the name to setupregistry to make it a legal >Python name). I get the message "Setting up registry to allow double >clicking of Python files to work". Sounds promising, but I still can't run > > That message means you got succesfull python working and executed the setup-registry.py file. This script, as you could see if you open it in a text editor, does some registry editing as to register python.exe, and obviously, uses the same path as the shortcut file, so if the shortcut to python.exe does not work, that one will not work ever. Check the installation path! Your issue is pretty simple. You've got a python.exe but it isn't in the folder where setup-registry.py expects to! >any Python commands by tapping them. > >How do I update the start menu link? I never created it in the first place, > > Remove it from \Windows\Start Menu\.... go to python.exe folder with file manager, select copy option by tapping over the file for a second, then get back to ...\Start Menu\ and again contextual menu and create shortcut -I don't know the precise names as I only have spanish WinCE 3 devices, and no one Windows Mobile 5... >so I am not familiar with that procedure. I am pretty green when it comes >to winCE (and hoping to keep it that way because most of what I have seen is >disgusting). > >In response to your question, yes, I have been using Python on Windows >Mobile 5 (ARM) for many months. It works fine. I have also been having a >mostly good experience with wxPython. The version of wxPython that I found >(the one originally created by Brian Retford) is based on an old wxPython. >I have had to design around some bugs or quirks, but otherwise the library > > You managed to get that done, and you can't get this path trouble solved by yourself in minutes!!? ;-) >works fine. My main complaint is that they run a little slow, so I would >not try using them on a platform that did not have a fast processor. Robin >Dunn is working on a new version of wxPython for winCE, but I have no >information on its status. >-- >View this message in context: http://www.nabble.com/Reverting-to-PythonCE-2.3-t1597668.html#a4341565 >Sent from the Python - pythonce forum at Nabble.com. > >_______________________________________________ >PythonCE mailing list >PythonCE at python.org >http://mail.python.org/mailman/listinfo/pythonce > > > Regards, Gonzalo. From jeff_barish at earthlink.net Fri May 12 23:41:33 2006 From: jeff_barish at earthlink.net (jeffbarish) Date: Fri, 12 May 2006 14:41:33 -0700 (PDT) Subject: [PythonCE] Reverting to PythonCE 2.3 In-Reply-To: References: <4333415.post@talk.nabble.com> <4462D9C4.9030803@serveisw3.net> <4341565.post@talk.nabble.com> <4349283.post@talk.nabble.com> Message-ID: <4366078.post@talk.nabble.com> Got it. Thanks to everyone for the advice. I finally figured out that I could install Python 2.3.5 even though 2.3.4 would not install. Everything (including wxPython) seems to run fine with 2.3.5, although the error message (coming from wxPython) about needing a newer comctl32.dll looks more emphatic. I am happy to avoid a hard reset, but glad to know that the option is available. -- View this message in context: http://www.nabble.com/Reverting-to-PythonCE-2.3-t1597668.html#a4366078 Sent from the Python - pythonce forum at Nabble.com. From jeff_barish at earthlink.net Fri May 12 23:56:21 2006 From: jeff_barish at earthlink.net (jeffbarish) Date: Fri, 12 May 2006 14:56:21 -0700 (PDT) Subject: [PythonCE] Reverting to PythonCE 2.3 In-Reply-To: References: <4333415.post@talk.nabble.com> <4462D9C4.9030803@serveisw3.net> <4341565.post@talk.nabble.com> <4349283.post@talk.nabble.com> Message-ID: <4366289.post@talk.nabble.com> Got it. Thanks to everyone for the advice. I finally figured out that I could install Python 2.3.5 even though 2.3.4 would not install, and everything (including wxPython) seems to run fine with 2.3.5 (although the error message (coming from wxPython) about needing a newer comctl32.dll looks more emphatic). I am happy to avoid a hard reset, but glad to know that the option is available. -- View this message in context: http://www.nabble.com/Reverting-to-PythonCE-2.3-t1597668.html#a4366289 Sent from the Python - pythonce forum at Nabble.com. From bandung at skyesystems.com Sun May 14 01:56:08 2006 From: bandung at skyesystems.com (Bandung) Date: Sat, 13 May 2006 23:56:08 +0000 (UTC) Subject: [PythonCE] =?utf-8?q?raw=5Finput_for_pythonce_ver_2=2E4=2E3_gives?= =?utf-8?q?_EOF_Error?= Message-ID: I seemed have gotten idlece working along with Tkinter and python works well except for a few problems. The one that I would like to find a work around to is with the input() and raw_input() commands. Both return an EOFError When reading a line the line of code is def main() x = raw_input() From fuzzyman at voidspace.org.uk Sun May 14 12:18:16 2006 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Sun, 14 May 2006 11:18:16 +0100 Subject: [PythonCE] raw_input for pythonce ver 2.4.3 gives EOF Error In-Reply-To: References: Message-ID: <446703E8.7020403@voidspace.org.uk> Bandung wrote: > I seemed have gotten idlece working along with Tkinter and python works well > except for a few problems. The one that I would like to find a work around to > is with the input() and raw_input() commands. Both return an EOFError When > reading a line > > the line of code is > > def main() > x = raw_input() > > Hello, I'm afraid the underlying console for PocketPC doesn't support these functions. An older version of PythonCE used to have a workaround, but it looks like the code is lost in the mists of time. :-( Fuzzyman http://www.voidspace.org.uk/python/shareware.shtml > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > > From eyecreate at gmail.com Mon May 15 16:26:03 2006 From: eyecreate at gmail.com (The Head Guy) Date: Mon, 15 May 2006 10:26:03 -0400 Subject: [PythonCE] Pyeditce is online! Message-ID: <8f654c1e0605150726k5b7b4dbbyd58db5c45dd9c71d@mail.gmail.com> After about 10 days of waiting, my sourceforge page is up! Please visit pyeditce.sf.net to see information and download the IDE and Designer for PythonCE! Please read the news too before you download anything. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20060515/4769a763/attachment.html From tech_dev at wildintellect.com Mon May 15 22:35:31 2006 From: tech_dev at wildintellect.com (Alex Mandel) Date: Mon, 15 May 2006 13:35:31 -0700 Subject: [PythonCE] wxWidgets Example Message-ID: Does anyone have a wxWidgets for CE example that they could send me or point to online. I'm trying to develop some applications with BOA IDE and there is information about putting it on WinCE but I can't find any examples. I'm trying to avoid learning a whole new interface system (Tkinter) just for the CE devices since I use wxWidgets on the desktop already. Thanks, Alex From eol.ruin at gmail.com Tue May 16 17:44:20 2006 From: eol.ruin at gmail.com (Eol Ruin) Date: Tue, 16 May 2006 17:44:20 +0200 Subject: [PythonCE] Pyeditce is online! (The Head Guy) Message-ID: <482a3d050605160844h3125a5cbg789ff4d16719ce60@mail.gmail.com> Nice one. Looks intriguing. Hopefully I will find some time to try. Only suggestion would be cut the images (Screenshots) down ... The take 200KB+. Converting in GIF might help. Regards, Arno Pucher -- www.thew4.org =(there is no question that cannot be answered if we use our brain)= From lxo at Cs.Nott.AC.UK Tue May 16 19:29:45 2006 From: lxo at Cs.Nott.AC.UK (Leif Oppermann) Date: Tue, 16 May 2006 18:29:45 +0100 Subject: [PythonCE] wxWidgets Example In-Reply-To: References: Message-ID: <446A0C09.9030608@cs.nott.ac.uk> I am not an expert user of PythonCE but I found Adam Kruszewski's "all-in-one bundle" very easy to install. If I remember correctly, it comes with some wxWidgets examples as well. The package might not be the newest but you could give it a go. It definitely worked for me. Get it from his blog at http://blogs.unixage.com/blojsom/blog/adam.kruszewski/python/ Or directly http://ft.atr.bydgoszcz.pl/~leeloo/PythonCE2.3.4-StorageCard.zip Cheers, Leif Alex Mandel wrote: >Does anyone have a wxWidgets for CE example that they could send me or >point to online. I'm trying to develop some applications with BOA IDE >and there is information about putting it on WinCE but I can't find any > examples. > > This message has been checked for viruses but the contents of an attachment may still contain software viruses, which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. From bandung at skyesystems.com Tue May 16 23:42:08 2006 From: bandung at skyesystems.com (Bandung) Date: Tue, 16 May 2006 14:42:08 -0700 (PDT) Subject: [PythonCE] Can't Get My Import Module Command to Work Properly Message-ID: <4419614.post@talk.nabble.com> Using the PythonCE interactive window, I am trying to shortcut having to type in a sys.path.append() command every time I want to run a python script that is not in the standard path. So I created a module called paths.py with several sys.path.append commands in it. When I import this module into the interpreter, the interpreter appears to accept it with no errors. However, I can't run any python scripts that are within the new paths that my append() commands define. If I fire up a python shell interpretor and type these two commands - the sys.path.append() command and then type another command line like ... from "new_module" import * this works. But if I put them in a module called "paths" and import that module into my interpreter session, it doesn't work. Why? (1. This doesn't work) >>>import paths The paths.py file is sitting in the Python24\Lib directory and contains the following, ------- #paths.py # append this path to system path import sys sys.path.append("\My Documents\Personal") from calctaxes import * No such module "calctaxes" error results. ------ The use of any functions within calctaxes fails even though the file calctaxes.py sits in the directory \My Documents\Personal (2. But this works if I type the following into the interpreter... >>>import sys >>>sys.path.append("\My Documents\Personal") >>>from calctaxes import * Then all of my functions within calctaxes work from the interpreter. -- View this message in context: http://www.nabble.com/Can%27t-Get-My-Import-Module-Command-to-Work-Properly-t1631521.html#a4419614 Sent from the Python - pythonce forum at Nabble.com. From mdoukidis at gmail.com Wed May 17 03:15:11 2006 From: mdoukidis at gmail.com (Mark Doukidis) Date: Wed, 17 May 2006 09:15:11 +0800 Subject: [PythonCE] Can't Get My Import Module Command to Work Properly In-Reply-To: <4419614.post@talk.nabble.com> References: <4419614.post@talk.nabble.com> Message-ID: <8d8511040605161815qdb5317dl8553251ec89cf3cc@mail.gmail.com> Try using "sitecustomize.py". This is the setup I used for Python2.3: # sitecustomize.py to be placed in python library directory. import os import sys if os.name == 'ce': sys.path.append("\My Documents\Personal") Hope this is useful. Mark Doukidis On 5/17/06, Bandung wrote: > > Using the PythonCE interactive window, I am trying to shortcut having to type > in a sys.path.append() command every time I want to run a python script that > is not in the standard path. So I created a module called paths.py with > several sys.path.append commands in it. > > When I import this module into the interpreter, the interpreter appears to > accept it with no errors. However, I can't run any python scripts that are > within the new paths that my append() commands define. > > If I fire up a python shell interpretor and type these two commands - the > sys.path.append() command and then type another command line like ... from > "new_module" import * this works. But if I put them in a module called > "paths" and import that module into my interpreter session, it doesn't work. > Why? > > (1. This doesn't work) > >>>import paths > > The paths.py file is sitting in the Python24\Lib directory and contains the > following, > ------- > #paths.py > # append this path to system path > import sys > sys.path.append("\My Documents\Personal") > from calctaxes import * > No such module "calctaxes" error results. > ------ > > The use of any functions within calctaxes fails even though the file > calctaxes.py sits in the directory \My Documents\Personal > > (2. But this works if I type the following into the interpreter... > > >>>import sys > >>>sys.path.append("\My Documents\Personal") > >>>from calctaxes import * > > > Then all of my functions within calctaxes work from the interpreter. > -- > View this message in context: http://www.nabble.com/Can%27t-Get-My-Import-Module-Command-to-Work-Properly-t1631521.html#a4419614 > Sent from the Python - pythonce forum at Nabble.com. > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > From coder_infidel at hotmail.com Wed May 17 14:02:58 2006 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Wed, 17 May 2006 20:02:58 +0800 Subject: [PythonCE] Can't Get My Import Module Command to Work Properly References: <4419614.post@talk.nabble.com> <8d8511040605161815qdb5317dl8553251ec89cf3cc@mail.gmail.com> Message-ID: Or even easier: "The most convenient way is to add a path configuration file to a directory that's already on Python's path, usually to the .../site-packages/ directory. Path configuration files have an extension of .pth, and each line must contain a single path that will be appended to sys.path. (Because the new paths are appended to sys.path, modules in the added directories will not override standard modules. This means you can't use this mechanism for installing fixed versions of standard modules.)" (from the Python manual) For example, I have a file "sdcard.pth" in \Program Files\Python24 containing a single line: \sd-mmc Card\python Luke ----- Original Message ----- From: "Mark Doukidis" To: "Bandung" Cc: Sent: Wednesday, May 17, 2006 9:15 AM Subject: Re: [PythonCE] Can't Get My Import Module Command to Work Properly > Try using "sitecustomize.py". This is the setup I used for Python2.3: > > # sitecustomize.py to be placed in python library directory. > import os > import sys > > if os.name == 'ce': > sys.path.append("\My Documents\Personal") > > Hope this is useful. > > Mark Doukidis > > On 5/17/06, Bandung wrote: >> >> Using the PythonCE interactive window, I am trying to shortcut having to >> type >> in a sys.path.append() command every time I want to run a python script >> that >> is not in the standard path. So I created a module called paths.py with >> several sys.path.append commands in it. >> >> When I import this module into the interpreter, the interpreter appears >> to >> accept it with no errors. However, I can't run any python scripts that >> are >> within the new paths that my append() commands define. >> >> If I fire up a python shell interpretor and type these two commands - the >> sys.path.append() command and then type another command line like ... >> from >> "new_module" import * this works. But if I put them in a module called >> "paths" and import that module into my interpreter session, it doesn't >> work. >> Why? >> >> (1. This doesn't work) >> >>>import paths >> >> The paths.py file is sitting in the Python24\Lib directory and contains >> the >> following, >> ------- >> #paths.py >> # append this path to system path >> import sys >> sys.path.append("\My Documents\Personal") >> from calctaxes import * >> No such module "calctaxes" error results. >> ------ >> >> The use of any functions within calctaxes fails even though the file >> calctaxes.py sits in the directory \My Documents\Personal >> >> (2. But this works if I type the following into the interpreter... >> >> >>>import sys >> >>>sys.path.append("\My Documents\Personal") >> >>>from calctaxes import * >> >> >> Then all of my functions within calctaxes work from the interpreter. >> -- >> View this message in context: >> http://www.nabble.com/Can%27t-Get-My-Import-Module-Command-to-Work-Properly-t1631521.html#a4419614 >> Sent from the Python - pythonce forum at Nabble.com. >> >> _______________________________________________ >> PythonCE mailing list >> PythonCE at python.org >> http://mail.python.org/mailman/listinfo/pythonce >> > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > From bandung at skyesystems.com Wed May 17 15:02:27 2006 From: bandung at skyesystems.com (Bandung) Date: Wed, 17 May 2006 06:02:27 -0700 (PDT) Subject: [PythonCE] Can't Get My Import Module Command to Work Properly In-Reply-To: References: <4419614.post@talk.nabble.com> <8d8511040605161815qdb5317dl8553251ec89cf3cc@mail.gmail.com> Message-ID: <4429981.post@talk.nabble.com> The *.pth is the easiest solution to the problem of being able to run a script within a given directory. Mark, your solution also works wrt to appending the needed directory. In fact it is the same as mine. Only difference is the name of the file and the fact that I don't use an os import line. The problem I was having related to the following command line within my paths.py file from calctaxes import * This wasn't working. It turns out that the reason it didn't work was because I typed import paths What I should have typed was from paths import * Now when I use function within calctaxes, they work. That is, I can type the following tx = calc(10,5) Before I would get an error. calc does not exist. -- View this message in context: http://www.nabble.com/Can%27t-Get-My-Import-Module-Command-to-Work-Properly-t1631521.html#a4429981 Sent from the Python - pythonce forum at Nabble.com. From bandung at skyesystems.com Wed May 17 16:30:16 2006 From: bandung at skyesystems.com (Bandung) Date: Wed, 17 May 2006 07:30:16 -0700 (PDT) Subject: [PythonCE] raw_input for pythonce ver 2.4.3 gives EOF Error In-Reply-To: <446703E8.7020403@voidspace.org.uk> References: <446703E8.7020403@voidspace.org.uk> Message-ID: <4431634.post@talk.nabble.com> Thank you for this input. I suppose python ce also doesn't support the launching of scripts with the python myscript.py -i %1 for the same reason. I tried creating a file extension *.pyi that called the above command in order to circumvent the lack of a console. I get a Null : Null error. These limitations prevent me from running a script in such a way as use the interpreter to debug the script, check variable values, etc. Even if I execute a script via the idlece utility, the resulting pythonce interpreter that pops up only shows output. I can't get it to accept inputs so that I can debug things. Looks like I have to use my destop tools in order to get things debugged. Is this your experience too? -- View this message in context: http://www.nabble.com/raw_input-for-pythonce-ver-2.4.3-gives-EOF-Error-t1614478.html#a4431634 Sent from the Python - pythonce forum at Nabble.com. From eyecreate at gmail.com Thu May 18 00:38:47 2006 From: eyecreate at gmail.com (The Head Guy) Date: Wed, 17 May 2006 18:38:47 -0400 Subject: [PythonCE] dll loading error Message-ID: <8f654c1e0605171538o5e0dc55focf778d67aa8d604e@mail.gmail.com> I have been experimenting with the "ports" of wxwindows/wxpython and pygame to the pythonce port. Any program I use that uses pygame or wxpython/wxwindows comes up with a "load dll error, file not found". I have the files "name_of_file.pyd" in both the DLL directory and in the Lib directory in its corresponding folder. Am I putting the files in the wrong spot, or is there something deeper? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20060517/5638db8a/attachment.html From bandung at skyesystems.com Thu May 18 04:39:18 2006 From: bandung at skyesystems.com (Bandung) Date: Wed, 17 May 2006 19:39:18 -0700 (PDT) Subject: [PythonCE] Pyeditce is online! In-Reply-To: <8f654c1e0605150726k5b7b4dbbyd58db5c45dd9c71d@mail.gmail.com> References: <8f654c1e0605150726k5b7b4dbbyd58db5c45dd9c71d@mail.gmail.com> Message-ID: <4443390.post@talk.nabble.com> I have tried the program and I do like it. I would like it if your file loading dialog box accepted not only *py files but all file using the *.* mask. In that way I can open files with the *.pyw extension. -- View this message in context: http://www.nabble.com/Pyeditce-is-online%21-t1621223.html#a4443390 Sent from the Python - pythonce forum at Nabble.com. From eyecreate at gmail.com Thu May 18 16:22:20 2006 From: eyecreate at gmail.com (The Head Guy) Date: Thu, 18 May 2006 10:22:20 -0400 Subject: [PythonCE] pyeditce is online! Message-ID: <8f654c1e0605180722o5e92a40ep203ef4bb1d0ace2a@mail.gmail.com> I am going about to change the whole open file dialog structure, as of this is the most complained about part. I have found a few "replacements" for the default ones in .net, but I need to spend time to reprogram it. I will add support to open .pyw files too, but I also don't want every file on the Pocket pc to be shown either, as it takes too much time to load then. I will find a compromise to these things, most likely adding .pyw to the list of file types to show. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20060518/6e853ec3/attachment.html From fuzzyman at voidspace.org.uk Fri May 19 00:11:49 2006 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 18 May 2006 23:11:49 +0100 Subject: [PythonCE] raw_input for pythonce ver 2.4.3 gives EOF Error In-Reply-To: <4431634.post@talk.nabble.com> References: <446703E8.7020403@voidspace.org.uk> <4431634.post@talk.nabble.com> Message-ID: <446CF125.8020407@voidspace.org.uk> Bandung wrote: > Thank you for this input. I suppose python ce also doesn't support the > launching of scripts with the > > python myscript.py -i %1 > > for the same reason. I tried creating a file extension *.pyi that called > the above command in order to circumvent the lack of a console. I get a > Null : Null error. > > These limitations prevent me from running a script in such a way as use the > interpreter to debug the script, check variable values, etc. > > Even if I execute a script via the idlece utility, the resulting pythonce > interpreter that pops up only shows output. I can't get it to accept inputs > so that I can debug things. > > Looks like I have to use my destop tools in order to get things debugged. > Is this your experience too? > Afraid so. :-) However: building an interactive shell, like IDLE, using Pocket Tkinter (in fact based on the IDLE code I guess) is almost certainly possible... Fuzzyman http://www.voidspace.org.uk/python/shareware.shtml > -- > View this message in context: http://www.nabble.com/raw_input-for-pythonce-ver-2.4.3-gives-EOF-Error-t1614478.html#a4431634 > Sent from the Python - pythonce forum at Nabble.com. > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > > From fuzzyman at voidspace.org.uk Fri May 19 00:27:36 2006 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 18 May 2006 23:27:36 +0100 Subject: [PythonCE] Tk/Tcl Widgets Message-ID: <446CF4D8.8040505@voidspace.org.uk> Hello all, I wondered if you'd seen this : http://wiki.tcl.tk/8442 It's a GUI built with Tk/Tcl for the PocketPC. It certainly shows what is possible. :-) Fuzzyman http://www.voidspace.org.uk/python/shareware.shtml From bandung at skyesystems.com Fri May 19 02:49:31 2006 From: bandung at skyesystems.com (Bandung) Date: Thu, 18 May 2006 17:49:31 -0700 (PDT) Subject: [PythonCE] Tk/Tcl Widgets In-Reply-To: <446CF4D8.8040505@voidspace.org.uk> References: <446CF4D8.8040505@voidspace.org.uk> Message-ID: <4461524.post@talk.nabble.com> This is a nice find. I agree with you that it certainly shows what's possible. Alas, but I have given my heart to Pythoning and I can't bear to learn another language. I have waded into this Tkintering thingy because of the lack of an up to date wxPython capability for the poacketpc. I would probably consider learning wx before embarking on tcl. But boy, is it tempting!!! If I'm still being frustrrated with my existing pocketpc development tools three months from now, then its off to tcling I go. -- View this message in context: http://www.nabble.com/Tk-Tcl-Widgets-t1646602.html#a4461524 Sent from the Python - pythonce forum at Nabble.com. From fuzzyman at voidspace.org.uk Fri May 19 10:58:00 2006 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Fri, 19 May 2006 09:58:00 +0100 Subject: [PythonCE] Tk/Tcl Widgets In-Reply-To: <4461524.post@talk.nabble.com> References: <446CF4D8.8040505@voidspace.org.uk> <4461524.post@talk.nabble.com> Message-ID: <446D8898.5090902@voidspace.org.uk> Bandung wrote: > This is a nice find. I agree with you that it certainly shows what's > possible. Alas, but I have given my heart to Pythoning and I can't bear to > learn another language. > Actually, my point is that seeing as this is done with Tk - it ought to be possible with PythonCE ! :-) (Tkinter is just a bridge into Tk/Tcl) It's a shame IronPython can't be made to work with the compact .NET framework. :-( All the best, Fuzzyman http://www.voidspace.org.uk/python/shareware.shtml > I have waded into this Tkintering thingy because of the lack of an up to > date wxPython capability for the poacketpc. I would probably consider > learning wx before embarking on tcl. > > But boy, is it tempting!!! If I'm still being frustrrated with my existing > pocketpc development tools three months from now, then its off to tcling I > go. > -- > View this message in context: http://www.nabble.com/Tk-Tcl-Widgets-t1646602.html#a4461524 > Sent from the Python - pythonce forum at Nabble.com. > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > > From bandung at skyesystems.com Fri May 19 16:11:07 2006 From: bandung at skyesystems.com (Bandung) Date: Fri, 19 May 2006 07:11:07 -0700 (PDT) Subject: [PythonCE] Tk/Tcl Widgets In-Reply-To: <446D8898.5090902@voidspace.org.uk> References: <446CF4D8.8040505@voidspace.org.uk> <4461524.post@talk.nabble.com> <446D8898.5090902@voidspace.org.uk> Message-ID: <4470093.post@talk.nabble.com> I was thinking something similar in that perhaps we could use a lot of these tcl components ln the same fashion that we use Tkinter widgets - as black boxes within our Python framework. I was eyeing their SSL toolset as an example. Plus I like the file system proggie. What I want to avoid is having to code in tcl in order to make mods, like adding my own menus. Given that there already is a Python/tcl bridge, we should be able to do our mods via Python. I also like the fact that there is a console. But I don't want to deal with tcl in order to develop things or launch other apps. I haven' loaded the module yet so I could be speaking out of turn here. Having said all this, I must admit a certain ignorance to what it means to be drawn into tcl. I suspect that I am partly there. For example, when I get hung up on understanding how a particular Tkinter widget feature works, I've seen on more than one occasion that it's due to tcl syntax. Sooo maybe I'm halfway there :) I also need to do some quick googling to better understand your IronPython .Net statement. But boy oh boy, I really do like your dig on this project. -- View this message in context: http://www.nabble.com/Tk-Tcl+Widgets-t1646602.html#a4470093 Sent from the Python - pythonce forum at Nabble.com. From sleepingbull at gmail.com Fri May 26 21:47:10 2006 From: sleepingbull at gmail.com (Matt S.) Date: Fri, 26 May 2006 12:47:10 -0700 Subject: [PythonCE] pickle problem on 2.3.4 pythonCE (for wxPython) Message-ID: Hi, I'm trying to make a data collection UI for Windows CE using the wxPyCE distribution (which uses Python 2.3.4) found at, http://www.traybor.com/PythonCE/ It's gone well so far but I'm running into a serious data pickling problem. Ideally I would like to pickle a class instance. Saving and loading the pickled class works fine on my PC (Python 2.4x), *pickleDump.py* f = open('pickle_file.pyp', 'r') pickle.dump(my_class_instance, f) *pickleLoad.py* f = open('saved_pickle.pyp', 'r') my_pickled_class_instance = pickle.load(f) In my UI module the pickling are methods in a class. Also, "my_class" is actually, "another_module.top_level_class.data," wherein ".data" is a dictionary with keys that are person names and values that are the corresponding person instance. Realizing that I'm probably breaking the pickling rules with pickling my data class, I changed "my_class" in *pickleDump.py* to a simple dictionary... and it still failed on CE. Fortunately, simplifying my data to a simple list does pickle. So, in the worst case I can convert my data into lists (not pretty so if you have a better workaround idea I'd really appreciate it). Here's the traceback from my attempt to load the pickled dictionary, Traceback (most recent call last): File "\Program Files\python\dev\pickleLoad.py", line 10, in ? var = pickle.load(f) File "binaries\lib\pickle.py", line 1390, in load File "binaries\lib\pickle.py", line 872, in load File "binaries\lib\pickle.py", line 985, in load_string LookupError: no codec search functions registered: can't find encoding Here are my test modules, *pickleDump.py* import pickle, traceback, sys f = open('test.txt','w') error = open('dump_error.txt','w') sys.stderr = error log = open('dump_out.txt','w') sys.stdout = log #var = [n for n in range(10)] var = {'parm1':1, 'parm2':'2a'} try: pickle.dump(var,f) print 'Pickled dumped OK in,', __file__ except: traceback.print_exc() print 'Pickle dump failed! in', __file__ f.close() *pickleLoad.py* import pickle, sys, traceback e = open('load_error.txt','w') sys.stderr = e s = open('load_out.txt','w') sys.stdout = s try: f = open('test.txt','r') var = pickle.load(f) print 'Pickle loaded OK in,', __file__ print var except: traceback.print_exc() print 'Pickle not loaded in,', __file__ Many thanks for your help, Matt From coder_infidel at hotmail.com Sat May 27 15:21:15 2006 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Sat, 27 May 2006 21:21:15 +0800 Subject: [PythonCE] pickle problem on 2.3.4 pythonCE (for wxPython) References: Message-ID: Hi, Your test program works for me on PythonCE 2.4.3. Luke ----- Original Message ----- From: "Matt S." To: Sent: Saturday, May 27, 2006 3:47 AM Subject: [PythonCE] pickle problem on 2.3.4 pythonCE (for wxPython) > Hi, > > I'm trying to make a data collection UI for Windows CE using the > wxPyCE distribution (which uses Python 2.3.4) found at, > > http://www.traybor.com/PythonCE/ > > It's gone well so far but I'm running into a serious data pickling > problem. Ideally I would like to pickle a class instance. > > Saving and loading the pickled class works fine on my PC (Python 2.4x), > > *pickleDump.py* > f = open('pickle_file.pyp', 'r') > pickle.dump(my_class_instance, f) > > *pickleLoad.py* > f = open('saved_pickle.pyp', 'r') > my_pickled_class_instance = pickle.load(f) > > In my UI module the pickling are methods in a class. Also, "my_class" > is actually, "another_module.top_level_class.data," wherein ".data" is > a dictionary with keys that are person names and values that are the > corresponding person instance. > > Realizing that I'm probably breaking the pickling rules with pickling > my data class, I changed "my_class" in *pickleDump.py* to a simple > dictionary... and it still failed on CE. Fortunately, simplifying my > data to a simple list does pickle. So, in the worst case I can > convert my data into lists (not pretty so if you have a better > workaround idea I'd really appreciate it). > > Here's the traceback from my attempt to load the pickled dictionary, > > Traceback (most recent call last): > File "\Program Files\python\dev\pickleLoad.py", line 10, in ? > var = pickle.load(f) > File "binaries\lib\pickle.py", line 1390, in load > File "binaries\lib\pickle.py", line 872, in load > File "binaries\lib\pickle.py", line 985, in load_string > LookupError: no codec search functions registered: can't find encoding > > Here are my test modules, > > *pickleDump.py* > > import pickle, traceback, sys > > f = open('test.txt','w') > error = open('dump_error.txt','w') > sys.stderr = error > log = open('dump_out.txt','w') > sys.stdout = log > > #var = [n for n in range(10)] > var = {'parm1':1, 'parm2':'2a'} > > try: > > pickle.dump(var,f) > print 'Pickled dumped OK in,', __file__ > except: > traceback.print_exc() > print 'Pickle dump failed! in', __file__ > > f.close() > > > *pickleLoad.py* > > import pickle, sys, traceback > > e = open('load_error.txt','w') > sys.stderr = e > s = open('load_out.txt','w') > sys.stdout = s > > try: > f = open('test.txt','r') > var = pickle.load(f) > print 'Pickle loaded OK in,', __file__ > print var > except: > > traceback.print_exc() > print 'Pickle not loaded in,', __file__ > > Many thanks for your help, > Matt From coder_infidel at hotmail.com Sun May 28 06:20:57 2006 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Sun, 28 May 2006 12:20:57 +0800 Subject: [PythonCE] pickle problem on 2.3.4 pythonCE (for wxPython) In-Reply-To: Message-ID: >From: "Matt S." >To: "Luke Dunstan" >Subject: Re: [PythonCE] pickle problem on 2.3.4 pythonCE (for wxPython) >Date: Sat, 27 May 2006 20:25:46 -0700 > >Python 2.3.4 is the only Python interpreter I've seen wxPython >compiled with for CE. Did it work for you on 2.3.4 or 2.4.3? If it >did work on 2.4.3 for you do you have wxPython running as well? >Thanks for the follow up. > >Matt Yes, 2.4.3. Sorry, I don't have wxPython running as well. You might want to try 2.3.5 but I haven't tried it so there is no guarantee that it will fix the problem. Luke > >On 5/27/06, Luke Dunstan wrote: >>Hi, >> >>Your test program works for me on PythonCE 2.4.3. >> >>Luke >> >>----- Original Message ----- >>From: "Matt S." >>To: >>Sent: Saturday, May 27, 2006 3:47 AM >>Subject: [PythonCE] pickle problem on 2.3.4 pythonCE (for wxPython) >> >> >> > Hi, >> > >> > I'm trying to make a data collection UI for Windows CE using the >> > wxPyCE distribution (which uses Python 2.3.4) found at, >> > >> > http://www.traybor.com/PythonCE/ >> > >> > It's gone well so far but I'm running into a serious data pickling >> > problem. Ideally I would like to pickle a class instance. >> > >> > Saving and loading the pickled class works fine on my PC (Python 2.4x), >> > >> > *pickleDump.py* >> > f = open('pickle_file.pyp', 'r') >> > pickle.dump(my_class_instance, f) >> > >> > *pickleLoad.py* >> > f = open('saved_pickle.pyp', 'r') >> > my_pickled_class_instance = pickle.load(f) >> > >> > In my UI module the pickling are methods in a class. Also, "my_class" >> > is actually, "another_module.top_level_class.data," wherein ".data" is >> > a dictionary with keys that are person names and values that are the >> > corresponding person instance. >> > >> > Realizing that I'm probably breaking the pickling rules with pickling >> > my data class, I changed "my_class" in *pickleDump.py* to a simple >> > dictionary... and it still failed on CE. Fortunately, simplifying my >> > data to a simple list does pickle. So, in the worst case I can >> > convert my data into lists (not pretty so if you have a better >> > workaround idea I'd really appreciate it). >> > >> > Here's the traceback from my attempt to load the pickled dictionary, >> > >> > Traceback (most recent call last): >> > File "\Program Files\python\dev\pickleLoad.py", line 10, in ? >> > var = pickle.load(f) >> > File "binaries\lib\pickle.py", line 1390, in load >> > File "binaries\lib\pickle.py", line 872, in load >> > File "binaries\lib\pickle.py", line 985, in load_string >> > LookupError: no codec search functions registered: can't find encoding >> > >> > Here are my test modules, >> > >> > *pickleDump.py* >> > >> > import pickle, traceback, sys >> > >> > f = open('test.txt','w') >> > error = open('dump_error.txt','w') >> > sys.stderr = error >> > log = open('dump_out.txt','w') >> > sys.stdout = log >> > >> > #var = [n for n in range(10)] >> > var = {'parm1':1, 'parm2':'2a'} >> > >> > try: >> > >> > pickle.dump(var,f) >> > print 'Pickled dumped OK in,', __file__ >> > except: >> > traceback.print_exc() >> > print 'Pickle dump failed! in', __file__ >> > >> > f.close() >> > >> > >> > *pickleLoad.py* >> > >> > import pickle, sys, traceback >> > >> > e = open('load_error.txt','w') >> > sys.stderr = e >> > s = open('load_out.txt','w') >> > sys.stdout = s >> > >> > try: >> > f = open('test.txt','r') >> > var = pickle.load(f) >> > print 'Pickle loaded OK in,', __file__ >> > print var >> > except: >> > >> > traceback.print_exc() >> > print 'Pickle not loaded in,', __file__ >> > >> > Many thanks for your help, >> > Matt >> From sleepingbull at gmail.com Sun May 28 23:03:57 2006 From: sleepingbull at gmail.com (Matt S.) Date: Sun, 28 May 2006 14:03:57 -0700 Subject: [PythonCE] pickle problem on 2.3.4 pythonCE (for wxPython) In-Reply-To: References: Message-ID: Good news. I tried pickling with "cPickle" and it works for pickling dictionaries and classes where "pickle" didn't. I guess this arises from the fact that per the documentation, "cPickle can be up to 1000 times faster than pickle because the former is implemented in C." If anyone can expound on this great. But for now I'm very pleased that pickling is supported on pythonCE with wxPython. Here's my updated test code, *pickleDump.py* import cPickle as pickle import traceback, sys """ This test works on PythonCE 2.3.4, the most recent version of PythonCE for which I've found wxPython compiled. """ class cdata: """ This class emulates the data class I was originally trying to pickle. Although pickle didn't seem to work for classes or dictionaries, cPickle worked for both. I had to include the instance class in the load module in order to unpickle the pickled instance data. """ def __init__(self, x): self.data = x f = open('test.txt','w') error = open('dump_error.txt','w') sys.stderr = error log = open('dump_out.txt','w') sys.stdout = log #var = [n for n in range(10)] var = {'parm1':1, 'parm2':'2a'} try: tdata = cdata(var) print tdata.__dict__['data'] pickle.dump(tdata,f) print 'Pickled dumped OK in,', __file__ except: traceback.print_exc() print 'Pickle dump failed! in', __file__ f.close() *pickleLoad.py* import cPickle as pickle import sys, traceback class cdata: """ This class emulates the data class I was originally trying to pickle. Although pickle didn't seem to work for classes or dictionaries, cPickle worked for both. I had to include the instance class in the load module in order to unpickle the pickled instance data. """ def __init__(self, x): self.data = x e = open('load_error.txt','w') sys.stderr = e s = open('load_out.txt','w') sys.stdout = s try: f = open('test.txt','r') var = pickle.load(f) print 'Pickle loaded OK in,', __file__ print var.data except: traceback.print_exc() print 'Pickle not loaded in,', __file__