From pythonce-ml at lestat.st Tue Jan 2 19:09:41 2007 From: pythonce-ml at lestat.st (David Goncalves) Date: Tue, 02 Jan 2007 19:09:41 +0100 Subject: [PythonCE] Accessing serial port with PythonCE 2.5 In-Reply-To: <228725.79411.qm@web54107.mail.yahoo.com> References: <228725.79411.qm@web54107.mail.yahoo.com> Message-ID: <459A9FE5.5030001@lestat.st> Hi, Everything is in the subject ;) Is there any way to access the serial port with that build of PythonCE ? I've not found any 'serial' module to import. Regards. From nlu54 at yahoo.com Tue Jan 2 21:29:06 2007 From: nlu54 at yahoo.com (Naiqian Lu) Date: Tue, 2 Jan 2007 12:29:06 -0800 (PST) Subject: [PythonCE] How tobuild PythonCE 2.5 In-Reply-To: Message-ID: <20070102202906.39228.qmail@web36913.mail.mud.yahoo.com> Hi, Here is my builing env: New desktop PC with WinXP sp2 EVC 4.0 with sp4 Pocket PC 2003 SDK I also has other softwares installed, but it should not affect EVC build. Thanks, Naiqian Lu --- Luke Dunstan wrote: > > ----- Original Message ----- > From: "Naiqian Lu" > To: > Sent: Friday, December 29, 2006 10:02 AM > Subject: [PythonCE] How tobuild PythonCE 2.5 > > > > Hi, > > > > I have download pythonce source, and try to build > it > > to generate CAB file, just for familiar with > python > > code. > > > > What I found out is that Scons will not build. It > > shows: > > > > C:\Source\python-wince\PCbuild\WinCE>scons > > scons: Reading SConscript files ... > > : global name > 'defpaths' > > is not defined: > > > > the defpaths was used in msevc to get include, > lib, > > and exe path. But I could not find where it gets > > defined (and set). > > > > The old version (2.4.3) use nmake, and set the > path in > > batch file. > > > > Does the source package for 2.5 missing something? > And > > where should I set the defpaths? > > It is a bug in msevc.py, but I didn't notice it > before so there must be > something different on your PC. Do you have > Microsoft eMbedded Visual C++ > 4.0 installed? Do you have the Pocket PC 2003 SDK > installed? If you really > need to use a different SDK then changes to the > build system and/or source > code may be necessary. If you have both of these > then what directories are > they installed in? > > Luke > > > > > Thanks in advance! > > > > Happy New Year! > > > > Naiqian Lu > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From coder_infidel at hotmail.com Wed Jan 3 14:23:47 2007 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Wed, 3 Jan 2007 22:23:47 +0900 Subject: [PythonCE] How tobuild PythonCE 2.5 References: <20070102202906.39228.qmail@web36913.mail.mud.yahoo.com> Message-ID: ----- Original Message ----- From: "Naiqian Lu" To: "Luke Dunstan" ; Sent: Wednesday, January 03, 2007 5:29 AM Subject: Re: [PythonCE] How tobuild PythonCE 2.5 > Hi, > > Here is my builing env: > > New desktop PC with WinXP sp2 > EVC 4.0 with sp4 > Pocket PC 2003 SDK OK, that is what I have too, so we will have to debug the script by inspecting your registry using regedit and perhaps by adding "print" statements in a few places. Firstly though, please be aware that I wrote this code to find the EVC/SDK directories by digging through the registry on my PC so it is possible that I could have made some incorrect assumptions about how it works. Anyway, near the top of SConstruct you will see: env = Environment( MSEVC_PLATFORM = 'POCKET PC 2003', MSEVC_SUBPLATFORM = 'Win32 (WCE ARMV4)', tools = ['mslink', 'msevc', 'zip'], toolpath = '.' ) The setting MSEVC_PLATFORM tells msevc.py to call find_platform_by_name('POCKET PC 2003'). This function enumerates the subkeys of the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Tools\Platform Manager\{F384D888-F9AA-11D1-BB9E-00A0C9C9CCEE} First check whether this exists on your PC. On mine it contains three subkeys: {3BD0FD9A-A1F3-4C83-AD6E-649C3BD5C479} (Default) = "Windows CE Default Platform" {8786CEC0-7256-413A-BAA3-39B5F435A826} (Default) = "POCKET PC 2003" {DB9D1DD0-D249-4BE1-83FF-4AB58F2FBA09} (Default) = "STANDARDSDK" Please check whether you have the Pocket PC 2003 one. If this is all OK then the next step is where it calls find_subplatform_by_name(hkey, platform_guid, 'Win32 (WCE ARMV4)'). In the case of the Pocket PC 2003 SDK, this function enumerates the subkeys of the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Tools\Platform Manager\{F384D888-F9AA-11D1-BB9E-00A0C9C9CCEE}\{8786CEC0-7256-413A-BAA3-39B5F435A826}\{F384D894-F9AA-11D1-BB9E-00A0C9C9CCEE}\{8786CEC0-7256-413A-BAA3-39B5F435A826} Notice that the fourth GUID in this path is the same as the second GUID (the platform GUID). On my PC it contains two subkeys: {32E52003-403E-442D-BE48-DE10F8C6131D} {D6518FFB-710F-11D3-99F2-00105A0DF099} In regedit it may not be obvious but each of these contains a "Display Name" value with the name of the "subplatform" (or architecture if you like), stored as the binary representation of the Unicode string. We are interested in the second subkey {D6518FFB-710F-11D3-99F2-00105A0DF099} which has a display name 'Win32 (WCE ARMV4)' on my PC. This subkey contains three other values "Include Dirs", "Lib Dirs", "Path Dirs" and "Src Dirs", and these are the ones it apparently failed to find on your PC. If you got this far then hopefully you can tell me where the algorithm went wrong :-) Luke > > I also has other softwares installed, but it should > not affect EVC build. > > Thanks, > > Naiqian Lu > > --- Luke Dunstan wrote: > >> >> ----- Original Message ----- >> From: "Naiqian Lu" >> To: >> Sent: Friday, December 29, 2006 10:02 AM >> Subject: [PythonCE] How tobuild PythonCE 2.5 >> >> >> > Hi, >> > >> > I have download pythonce source, and try to build >> it >> > to generate CAB file, just for familiar with >> python >> > code. >> > >> > What I found out is that Scons will not build. It >> > shows: >> > >> > C:\Source\python-wince\PCbuild\WinCE>scons >> > scons: Reading SConscript files ... >> > : global name >> 'defpaths' >> > is not defined: >> > >> > the defpaths was used in msevc to get include, >> lib, >> > and exe path. But I could not find where it gets >> > defined (and set). >> > >> > The old version (2.4.3) use nmake, and set the >> path in >> > batch file. >> > >> > Does the source package for 2.5 missing something? >> And >> > where should I set the defpaths? >> >> It is a bug in msevc.py, but I didn't notice it >> before so there must be >> something different on your PC. Do you have >> Microsoft eMbedded Visual C++ >> 4.0 installed? Do you have the Pocket PC 2003 SDK >> installed? If you really >> need to use a different SDK then changes to the >> build system and/or source >> code may be necessary. If you have both of these >> then what directories are >> they installed in? >> >> Luke >> >> > >> > Thanks in advance! >> > >> > Happy New Year! >> > >> > Naiqian Lu From coder_infidel at hotmail.com Wed Jan 3 14:37:23 2007 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Wed, 3 Jan 2007 22:37:23 +0900 Subject: [PythonCE] Accessing serial port with PythonCE 2.5 References: <228725.79411.qm@web54107.mail.yahoo.com> <459A9FE5.5030001@lestat.st> Message-ID: ----- Original Message ----- From: "David Goncalves" To: Sent: Wednesday, January 03, 2007 3:09 AM Subject: [PythonCE] Accessing serial port with PythonCE 2.5 > Hi, > > Everything is in the subject ;) > > Is there any way to access the serial port with that build of PythonCE ? > I've not found any 'serial' module to import. > > Regards. Well there is no "serial" module included with PythonCE, but Python on my PC doesn't have such a module either. I haven't done it myself on PythonCE but I think the best way would be to use ctypes to access the Win32 serial communications APIs. I have written some code to do this on the PC, so I have attached it. This code is not intended to be particularly efficient because I only used it to write a serial protocol simulator, but hopefully it is fairly simple to use. Again, I haven't tried it on Windows CE but I think it should work with minor changes. For example, I can see that SerialPort.__init__() would have to be modified slightly to open e.g. "COM1:" instead of "\\.\COM1". Luke -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: winserial.py Url: http://mail.python.org/pipermail/pythonce/attachments/20070103/90337155/attachment.asc From bandung at skyesystems.com Wed Jan 3 21:26:36 2007 From: bandung at skyesystems.com (Bandung) Date: Wed, 3 Jan 2007 12:26:36 -0800 (PST) Subject: [PythonCE] VimCE In-Reply-To: <7883665.post@talk.nabble.com> References: <4581CE91.9010401@GreenBlueFish.com> <7883485.post@talk.nabble.com> <7883665.post@talk.nabble.com> Message-ID: <8147991.post@talk.nabble.com> I managed to find two scripts that add the features that I was looking for when editing python scripts within Pocket Vim. 1. Navigation Shortcuts Using my trusty "OpenWith" utility that attaches to pocket explorer, I open the python file with Vim. What's nice about this utility is that it shows the file extension, something pocket explorer can't do. I vastly prefer to use Total Commander for everything else. Once Total Commander fixes their "alternate notepad's " ability to open files on a path that has spaces (ie \Storage Card\, then I will no longer need this utility. The Vim script used to quickly navigate around the source code is called "python menu". This script, when placed within the "plugin" directory under Vim, adds an additional Vim sub menu called "Python" as the following image shows. http://www.nabble.com/file/5282/python-menu.gif http://www.nabble.com/file/5281/python-menu-2.gif Clicking on this menu affords the programmer an addtional set of choices for finding the next class or function, as an example. Also of interest is the ability to change indentation. But what is really cool is the top most menu item called Update IM-Python menu. When you click on this, Vim scans your source code and creates another menu within Vim called IM-Python. A list of all of your functions and classes is created and stored within a submen under IM-Python. You can easily jump to whatever function you want within the source code using this feature. It also serves as a pretty nice summary of your code's structure, by the way. http://www.nabble.com/file/5277/im-python-2.gif http://www.nabble.com/file/5278/im-python-3.gif Now you can easily see all of your code structure and jump to a particular function. 2. Command Completion This feature calls for yet another vim script called pydiction. With this script placed within the plugin directory under Vim, you can now have all of your favourite code completion commands for python. You can even add to the stock completion commands by using the utility that comes with it to scan another python module and load its command structure. To use this feature you simply start typing part of your command and then hit for next or for previous. You will be presented with a completed command. If it is not the one that you want, you can scroll through all of the choices that it knows about for your partial word. I use my SIP keyboard to enter the keystroke combination. I also have programmed a hardware keyboard combination for these combos as well. They are n and p. If you type "pri" and hit , Vim completes it with "print" If there are more than one possible choices for your word, then you can continue to cycle through them by hitting again or for a previous choice. http://www.nabble.com/file/5279/pydiction.gif http://www.nabble.com/file/5280/pydiction-2.gif The only thing left to wish for is the ability to run the python script that I am working on while within Vim. There is a script that works for a Windows desktop but I haven't been able to get it working completely for the Pocket pc. Now if we could only get the python debugger to work within Python25, we would be in hog heaven as they say. -- View this message in context: http://www.nabble.com/VimCE-tf2823987.html#a8147991 Sent from the Python - pythonce mailing list archive at Nabble.com. From bandung at skyesystems.com Sun Jan 7 13:42:05 2007 From: bandung at skyesystems.com (Bandung) Date: Sun, 7 Jan 2007 04:42:05 -0800 (PST) Subject: [PythonCE] python 2.5 tkinter install help!! In-Reply-To: <8197588.post@talk.nabble.com> References: <8197588.post@talk.nabble.com> Message-ID: <8203954.post@talk.nabble.com> This was answered earlier on. There are a number of files missing in the download. You will have to revisit the site to retrieve them. There are a couple of other quirks wrt python 2.5 such as the indentation not working correctly. Just do a browse of the subjects on this site for the last few months. Regards. http://www.nabble.com/Python-2.5-for-Windows-CE---ARM-tf2427402.html missing files vakosel wrote: > > Hi all ! and Happy New Year ! > i searched a lot around to find a solution to my problem . Let me be more > specific > Installed Latest python2.5 setup.exe which contains in the DLL dir the > _tkinter.pyd in \storage card\program filles\python25 > i tried > import TKinter.. and the response was no module tkinter. > i tried to search the path by > import sys > print sys.path > so i configured that didnt need - as some suggest- to write > sys.path.append(\\... \\python25.zip\\lib-tk') > Then i found out that maybe i needed the 3 dll tk84, tcl84 ,celib and > the rest of files coming from a zip file > TKinter_files.zip and tried to put thm in windows directory and the rest > of files in python25.. anyway tried various things but nothing worked !!! > I am not very proud as i am new at python world but i am sure i will learn > with your help !! > > Actually this is my first post to the python community~~! > > Thanks in advance > > Kostas > kost > > > -- View this message in context: http://www.nabble.com/python-2.5-tkinter-install-help%21%21-tf2932110.html#a8203954 Sent from the Python - pythonce mailing list archive at Nabble.com. From bandung at skyesystems.com Mon Jan 8 19:45:12 2007 From: bandung at skyesystems.com (Bandung) Date: Mon, 8 Jan 2007 10:45:12 -0800 (PST) Subject: [PythonCE] the problem still exists.. In-Reply-To: <8210381.post@talk.nabble.com> References: <8197588.post@talk.nabble.com> <8203954.post@talk.nabble.com> <8210381.post@talk.nabble.com> Message-ID: <8223781.post@talk.nabble.com> It sounds like you are almost there. Yes you need these three files in your windows directory TK84.DLL TCL84.DLL and celib.dll Make sure that you have the latest version possible that you can find for CELIB. I don't remember what mine is. I seem to think tht I found a CELIB ver 2.13 Google is your friend here. If you have the latest version of Python2.5, then the other missing files will be in their proper place. Any time I received the missing TK DLL message, all I had to do is a soft reset and my python begins working again. It occasionally happens that my Tkinter gets disoriented and the soft reset always brings it back. I have the environment key set in the HKLM as per Rainer's instructions on his website but this should not affext your python installation. Soft reset and you will be in business. I do have a separate installation for tcl/tk so that I can run tcl programs separate and apart from my python installation. I'm prestty sure that you don't need this in order for your python instal to work. I have a separate tcl directory under \Storage card\Program files\lib\tcl \Storage card\Program files\Python25 Within the tcl directory is a lib directory and under that I have a tcl8.4, a tk8.4, a bwidget, a itcl3.3, a tkTable2.8 directory, etc. You don't need these if you do not intend to use bwidgets or want a stand alone tcl implementation. So just soft reset and you will be in business. vakosel wrote: > > Thanks for your reply even though didnt help much because as i said i > worked it a lot before posting > Actually there is a newer version including the _tkinter.pyd and sqlite3 > (2.520061219) so these missing files you are mentioned in your hyperlink > already exist in my installation. > i have to say that i run windows mobile 5 . Has anything to do with the > environnmet variables? do i need any other files like TK84.DLL TCL84.DLL > and celib.dll? i put them in \windows aand the rest of files on the > directory > \\storage card\program files\python25 but.. no luck.. > the message i get is cant find celib.dll / when i put it in \windows > folder then the exception is > cant fine TK DLL > ...... > i am really trying my best but... > > -- View this message in context: http://www.nabble.com/python-2.5-tkinter-install-help%21%21-tf2932110.html#a8223781 Sent from the Python - pythonce mailing list archive at Nabble.com. From pythonce-ml at lestat.st Mon Jan 8 23:08:58 2007 From: pythonce-ml at lestat.st (David Goncalves) Date: Mon, 08 Jan 2007 23:08:58 +0100 Subject: [PythonCE] Accessing serial port with PythonCE 2.5 In-Reply-To: References: <228725.79411.qm@web54107.mail.yahoo.com> <459A9FE5.5030001@lestat.st> Message-ID: <45A2C0FA.7000305@lestat.st> Hi, > Well there is no "serial" module included with PythonCE, but Python on > my PC doesn't have such a module either. I haven't done it myself on > PythonCE but I think the best way would be to use ctypes to access the > Win32 serial communications APIs. I have written some code to do this on > the PC, so I have attached it. Thanks for your code ;) I'll try it and give feedback. I've seen about people usin "ceserial" that seems to be a port of PySerial on WinCE. But no way to find it somewhere on the net :( From johna at johnaherne.co.uk Tue Jan 9 09:38:56 2007 From: johna at johnaherne.co.uk (John Aherne) Date: Tue, 09 Jan 2007 08:38:56 +0000 Subject: [PythonCE] tk/tcl Message-ID: <45A354A0.8040309@johnaherne.co.uk> I have a feeling that the tk/tcl install expects to find the python25 install on the storage card. Is that right. I installed with the exe and activesync and took the default install in memory since I don't have a card for this device. At the python prompt I can do: from Tkinter import * ##this works root=Tk() ## this fails with message below. The error message I get after moving bits of tk around so it could find init.tcl is:-- Tk_init error:invalid command name tcl_findlibrary File c:\dev1\release\PythonCE-2.5-20061219-2.5-wince\Lib\lib-tk\Tkinter.py line 1636 in __init__ TCL error invalid command name 'tcl_findlibrary' Is there anywhere else I can put the files so it will work without getting a storage card. Thanks for any info. John Aherne From rach2nd at otenet.gr Wed Jan 10 01:22:13 2007 From: rach2nd at otenet.gr (vakosel) Date: Tue, 9 Jan 2007 16:22:13 -0800 (PST) Subject: [PythonCE] thx a lot !! problem solved! In-Reply-To: <8223781.post@talk.nabble.com> References: <8197588.post@talk.nabble.com> <8203954.post@talk.nabble.com> <8210381.post@talk.nabble.com> <8223781.post@talk.nabble.com> Message-ID: <8249818.post@talk.nabble.com> thx you are very kind! kostas Bandung wrote: > > It sounds like you are almost there. Yes you need these three files in > your windows directory > > TK84.DLL TCL84.DLL and celib.dll > > Make sure that you have the latest version possible that you can find for > CELIB. I don't remember what mine is. I seem to think tht I found a > CELIB ver 2.13 Google is your friend here. > > If you have the latest version of Python2.5, then the other missing files > will be in their proper place. Any time I received the missing TK DLL > message, all I had to do is a soft reset and my python begins working > again. It occasionally happens that my Tkinter gets disoriented and the > soft reset always brings it back. > > I have the environment key set in the HKLM as per Rainer's instructions on > his website but this should not affext your python installation. Soft > reset and you will be in business. > > I do have a separate installation for tcl/tk so that I can run tcl > programs separate and apart from my python installation. I'm prestty sure > that you don't need this in order for your python instal to work. I have > a separate tcl directory under > > \Storage card\Program files\lib\tcl > \Storage card\Program files\Python25 > > Within the tcl directory is a lib directory and under that I have a > tcl8.4, a tk8.4, a bwidget, a itcl3.3, a tkTable2.8 directory, etc. > > You don't need these if you do not intend to use bwidgets or want a stand > alone tcl implementation. > > So just soft reset and you will be in business. > > > vakosel wrote: >> >> Thanks for your reply even though didnt help much because as i said i >> worked it a lot before posting >> Actually there is a newer version including the _tkinter.pyd and sqlite3 >> (2.520061219) so these missing files you are mentioned in your hyperlink >> already exist in my installation. >> i have to say that i run windows mobile 5 . Has anything to do with the >> environnmet variables? do i need any other files like TK84.DLL TCL84.DLL >> and celib.dll? i put them in \windows aand the rest of files on the >> directory >> \\storage card\program files\python25 but.. no luck.. >> the message i get is cant find celib.dll / when i put it in \windows >> folder then the exception is >> cant fine TK DLL >> ...... >> i am really trying my best but... >> >> > > -- View this message in context: http://www.nabble.com/python-2.5-tkinter-install-help%21%21-tf2932110.html#a8249818 Sent from the Python - pythonce mailing list archive at Nabble.com. From bandung at skyesystems.com Wed Jan 10 03:00:58 2007 From: bandung at skyesystems.com (Bandung) Date: Tue, 9 Jan 2007 18:00:58 -0800 (PST) Subject: [PythonCE] tk/tcl In-Reply-To: <45A354A0.8040309@johnaherne.co.uk> References: <45A354A0.8040309@johnaherne.co.uk> Message-ID: <8250929.post@talk.nabble.com> I don't know paint from whatever when it comes to how folks compile things for windoze machines. I have always suspected that some of the wince issues are due to hard wired path statements at install time. But before we can point our fingers at this issue, lets look at a few other things. (1) First: Are you trying to install and run a separate tcl/tk apart from the version that ships with Python? If you are, then there are directory logistic issues to be resolved. if you have some tcl scripts that you are trying to run separate and apart from python, then I can walk you through my directory setup if you wish. BUt for now, I am assuming that this is not what you want to do. (2) Second: Are you simply trying to get Tkinter working within your Python25 installation? If so, then there should be no issue wrt path names. I seem to recall running my Pythonce just fine from the device's memory. - First make sure that you have Celib, tk8.4.dll and tcl8.4.dll in your windows directory. - Soft reset is your friend. Whenever you start moving files around, you can just about bet that you are due for some crazy Tkinter happenings. Do this first. - Then list your python25 directory structure. It should be according to the standard python25 install. For example /Program files/Python25 - list their names... /Program files/Python25/Lib - list their names /Program files/Python25/dll - list their names -- View this message in context: http://www.nabble.com/tk-tcl-tf2944684.html#a8250929 Sent from the Python - pythonce mailing list archive at Nabble.com. From johna at johnaherne.co.uk Wed Jan 10 10:19:53 2007 From: johna at johnaherne.co.uk (John Aherne) Date: Wed, 10 Jan 2007 09:19:53 +0000 Subject: [PythonCE] tk/tcl In-Reply-To: <8250929.post@talk.nabble.com> References: <45A354A0.8040309@johnaherne.co.uk> <8250929.post@talk.nabble.com> Message-ID: <45A4AFB9.20800@johnaherne.co.uk> Bandung wrote: > I don't know paint from whatever when it comes to how folks compile things > for windoze machines. I have always suspected that some of the wince issues > are due to hard wired path statements at install time. But before we can > point our fingers at this issue, lets look at a few other things. > > (1) First: Are you trying to install and run a separate tcl/tk apart from > the version that ships with Python? If you are, then there are directory > logistic issues to be resolved. if you have some tcl scripts that you are > trying to run separate and apart from python, then I can walk you through my > directory setup if you wish. BUt for now, I am assuming that this is not > what you want to do. > > (2) Second: Are you simply trying to get Tkinter working within your > Python25 installation? If so, then there should be no issue wrt path names. > I seem to recall running my Pythonce just fine from the device's memory. > > - First make sure that you have Celib, tk8.4.dll and tcl8.4.dll in your > windows directory. > - Soft reset is your friend. Whenever you start moving files around, you > can just about bet that you are due for some crazy Tkinter happenings. Do > this first. > - Then list your python25 directory structure. It should be according to > the standard python25 install. > > For example > > /Program files/Python25 > - list their names... > > /Program files/Python25/Lib > - list their names > > /Program files/Python25/dll > - list their names > > > Thanks for the reply. I have done a standard python2.5 install. I got the tkinter.zip from http://prdownloads.sourceforge.net/pythonce/Tkinter-Files.zip I got this link from the pyeditce site. It is Tcl 8.4.3 I have put the 3 dlls into my windows directory as per instructions from pyeditce. I have also gone back through the past 15 months emails to find out what everyone was doing but I just can't see where the tk and library folders are meant to go. As I said I moved them around based on the sys.path but the only thing I got going was init.tcl. My sys.path looks as follows: \\Program Files\\Python25\python25.zip \\Program Files\\Python25\python25.zip\\lib-tk \\Program Files\\Python25\\DLLS \\Program Files\\Python25\\lib \\Program Files\Python25 The Tk zip file I have looks like this: \Windows\ -- has the dll files in it. I move these to the windows folder \tcl8.4.3\library \tcl8.4.3\tk8.4 I think the problem is where I place the last two and whether I need to make some config change so that python or tcl can find its various elements. All the emails I looked at seemed to be vague about this. I assume because it was too obvious to mention. But this is the bit that has me stumped. If you can let me know how you set this up I would much appreciate it. Thanks John Aherne From bandung at skyesystems.com Wed Jan 10 15:41:37 2007 From: bandung at skyesystems.com (Bandung) Date: Wed, 10 Jan 2007 06:41:37 -0800 (PST) Subject: [PythonCE] tk/tcl In-Reply-To: <45A4AFB9.20800@johnaherne.co.uk> References: <45A354A0.8040309@johnaherne.co.uk> <8250929.post@talk.nabble.com> <45A4AFB9.20800@johnaherne.co.uk> Message-ID: <8258612.post@talk.nabble.com> You don't need that Tkinter download nor the tcl/tk download. The Python25 cab has everything needed to run its own version of Tkinter. You are mixing versions of Python. The instructions that you were following were for an older version of python, version 2.4.3, I think. You need to "lose" all of those files. You are confusing your python25 install. Python 25 should have come with its own version of the three files (not directories but files) that go in the Windows directory. CELIB is essential and the two dll's called tcl84.dll and tk84.dll Do not create directories and sub directories under windows and put stuff in them. These three files belong in \\Windows. As I was previously mentioning, unless you deliberately want a stand alone tcl installation, you don't need to be tinkering with strange directory structures like \tcl8.4.3\library \tcl8.4.3\tk8.4 (1) Remove all of your python25 stuff and those 8.4.3 tkinter files as well as those old tcl84.dll and tk84.dll files and that windows sub directory stuff, (2) re-install python25 and only if the installation fails to place celib, tcl84.dll and tk84.dll in the \\Windows directory, will I attempt to find out "what happened", get you those files and upload them to you. (3) do a soft reboot. Again, Don't use old tcl84 and tk84 files!. When the python interpreter starts up, type in import Tkinter root = Tkinter.Tk() and then tell me what happens... _______________________________________________ PythonCE mailing list PythonCE at python.org http://mail.python.org/mailman/listinfo/pythonce -- View this message in context: http://www.nabble.com/tk-tcl-tf2944684.html#a8258612 Sent from the Python - pythonce mailing list archive at Nabble.com. From sjn37 at yahoo.com Wed Jan 10 16:18:27 2007 From: sjn37 at yahoo.com (Stefan Johansson) Date: Wed, 10 Jan 2007 07:18:27 -0800 (PST) Subject: [PythonCE] Accessing serial port with PythonCE 2.5 Message-ID: <20070110151828.88211.qmail@web60720.mail.yahoo.com> You can find a link to ceserial in the archives: http://mail.python.org/pipermail/pythonce/2006-September/001589.html I have used it successfully on my Dell Axim. Stefan ----- Original Message ---- From: David Goncalves To: Luke Dunstan Cc: pythonce at python.org Sent: Monday, January 8, 2007 4:08:58 PM Subject: Re: [PythonCE] Accessing serial port with PythonCE 2.5 Hi, > Well there is no "serial" module included with PythonCE, but Python on > my PC doesn't have such a module either. I haven't done it myself on > PythonCE but I think the best way would be to use ctypes to access the > Win32 serial communications APIs. I have written some code to do this on > the PC, so I have attached it. Thanks for your code ;) I'll try it and give feedback. I've seen about people usin "ceserial" that seems to be a port of PySerial on WinCE. But no way to find it somewhere on the net :( _______________________________________________ PythonCE mailing list PythonCE at python.org http://mail.python.org/mailman/listinfo/pythonce From johnaherne at rocs.co.uk Wed Jan 10 18:03:33 2007 From: johnaherne at rocs.co.uk (johnaherne at rocs.co.uk) Date: 10 Jan 2007 17:03:33 UT Subject: [PythonCE] tk/tcl Message-ID: Thanks for the clarification. As you said I cleaned up the pda and reinstalled pythonce2.5 using the .exe. I checked the windows folder and there were no celib.dll,tcl84.dll and tk84.dll present. I did a search for them and found nothing. So when I tried to import Tkinter it came back and said runtime error could not find CeLib.DLL. I did try to put back the dll from that download I did of tkinter.zip but that produced other errors. So I deleted them and went back to the clean setup. I am hoping you can point me to the right place to get the files. Thanks for taking the time. John Aherne -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20070110/521dd53c/attachment.html From bandung at skyesystems.com Wed Jan 10 21:53:43 2007 From: bandung at skyesystems.com (Bandung) Date: Wed, 10 Jan 2007 12:53:43 -0800 (PST) Subject: [PythonCE] tk/tcl In-Reply-To: References: Message-ID: <8266098.post@talk.nabble.com> Here are my latest files: celib2.13 , then tcl84 and tk84 dll's http://www.nabble.com/file/5568/celib.dll celib.dll http://www.nabble.com/file/5566/tcl84.dll tcl84.dll http://www.nabble.com/file/5567/tk84.dll tk84.dll johnaherne wrote: > > Thanks for the clarification. > > As you said I cleaned up the pda and reinstalled pythonce2.5 using the > .exe. > > I checked the windows folder and there were no celib.dll,tcl84.dll and > tk84.dll present. > > I did a search for them and found nothing. > > So when I tried to import Tkinter it came back and said runtime error > could not find CeLib.DLL. > > I did try to put back the dll from that download I did of tkinter.zip but > that produced other errors. So I deleted them and went back to the clean > setup. > > I am hoping you can point me to the right place to get the files. > > Thanks for taking the time. > > > John Aherne > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > > -- View this message in context: http://www.nabble.com/tk-tcl-tf2953745.html#a8266098 Sent from the Python - pythonce mailing list archive at Nabble.com. From johna at johnaherne.co.uk Wed Jan 10 22:33:05 2007 From: johna at johnaherne.co.uk (John Aherne) Date: Wed, 10 Jan 2007 21:33:05 +0000 Subject: [PythonCE] tk/tcl In-Reply-To: <8266098.post@talk.nabble.com> References: <8266098.post@talk.nabble.com> Message-ID: <45A55B91.5050609@johnaherne.co.uk> Bandung wrote: > Here are my latest files: celib2.13 , then tcl84 and tk84 dll's > > http://www.nabble.com/file/5568/celib.dll celib.dll > http://www.nabble.com/file/5566/tcl84.dll tcl84.dll > http://www.nabble.com/file/5567/tk84.dll tk84.dll > > > > Thanks for the links. I put them all in \Windows. import Tkinter works I got the WM5 message about permission for unsigned tcl and tk programs wanting to run. So I know it found them. root = Tkinter.Tk() gave me an error as follows:-- Tk_init error: invalid command name "tcl_findLibrary" Traceback (most recent call last): File "c:\dev1\release\PythonCE-2.5-20061219\Python-2.5-wince\Lib\lib-tk\Tkinter.py", line 1636, in __init__ TclError: invalid command name "tcl_findLibrary" Looking at the line it seems to be about creating a screen. Thanks for any info. Regards John Aherne From bandung at skyesystems.com Wed Jan 10 23:09:20 2007 From: bandung at skyesystems.com (Bandung) Date: Wed, 10 Jan 2007 14:09:20 -0800 (PST) Subject: [PythonCE] tk/tcl In-Reply-To: <45A55B91.5050609@johnaherne.co.uk> References: <8266098.post@talk.nabble.com> <45A55B91.5050609@johnaherne.co.uk> Message-ID: <8267592.post@talk.nabble.com> Place these two files in your \\Python25\\Lib directory and then run root = Tkinter.Tk(0 again. http://www.nabble.com/file/5569/Tkinter.py Tkinter.py http://www.nabble.com/file/5570/Tkinter.pyc Tkinter.pyc again, soft reset is always a good idea at this point. John Aherne wrote: > > Bandung wrote: >> Here are my latest files: celib2.13 , then tcl84 and tk84 dll's >> >> http://www.nabble.com/file/5568/celib.dll celib.dll >> http://www.nabble.com/file/5566/tcl84.dll tcl84.dll >> http://www.nabble.com/file/5567/tk84.dll tk84.dll >> >> >> >> > > Thanks for the links. > > I put them all in \Windows. > > import Tkinter works > > I got the WM5 message about permission for unsigned tcl and tk programs > wanting to run. So I know it found them. > > root = Tkinter.Tk() gave me an error as follows:-- > > Tk_init error: invalid command name "tcl_findLibrary" > Traceback (most recent call last): > File > "c:\dev1\release\PythonCE-2.5-20061219\Python-2.5-wince\Lib\lib-tk\Tkinter.py", > line 1636, in __init__ > TclError: invalid command name "tcl_findLibrary" > > Looking at the line it seems to be about creating a screen. > > Thanks for any info. > > Regards > > John Aherne > > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > > -- View this message in context: http://www.nabble.com/tk-tcl-tf2953745.html#a8267592 Sent from the Python - pythonce mailing list archive at Nabble.com. From bandung at skyesystems.com Wed Jan 10 23:09:20 2007 From: bandung at skyesystems.com (Bandung) Date: Wed, 10 Jan 2007 14:09:20 -0800 (PST) Subject: [PythonCE] tk/tcl In-Reply-To: <45A55B91.5050609@johnaherne.co.uk> References: <8266098.post@talk.nabble.com> <45A55B91.5050609@johnaherne.co.uk> Message-ID: <8267592.post@talk.nabble.com> Place these two files in your \\Python25\\Lib directory and then run root = Tkinter.Tk() again. http://www.nabble.com/file/5569/Tkinter.py Tkinter.py http://www.nabble.com/file/5570/Tkinter.pyc Tkinter.pyc again, soft reset is always a good idea at this point. John Aherne wrote: > > Bandung wrote: >> Here are my latest files: celib2.13 , then tcl84 and tk84 dll's >> >> http://www.nabble.com/file/5568/celib.dll celib.dll >> http://www.nabble.com/file/5566/tcl84.dll tcl84.dll >> http://www.nabble.com/file/5567/tk84.dll tk84.dll >> >> >> >> > > Thanks for the links. > > I put them all in \Windows. > > import Tkinter works > > I got the WM5 message about permission for unsigned tcl and tk programs > wanting to run. So I know it found them. > > root = Tkinter.Tk() gave me an error as follows:-- > > Tk_init error: invalid command name "tcl_findLibrary" > Traceback (most recent call last): > File > "c:\dev1\release\PythonCE-2.5-20061219\Python-2.5-wince\Lib\lib-tk\Tkinter.py", > line 1636, in __init__ > TclError: invalid command name "tcl_findLibrary" > > Looking at the line it seems to be about creating a screen. > > Thanks for any info. > > Regards > > John Aherne > > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > > -- View this message in context: http://www.nabble.com/tk-tcl-tf2953745.html#a8267592 Sent from the Python - pythonce mailing list archive at Nabble.com. From johna at johnaherne.co.uk Thu Jan 11 09:35:06 2007 From: johna at johnaherne.co.uk (John Aherne) Date: Thu, 11 Jan 2007 08:35:06 +0000 Subject: [PythonCE] tk/tcl In-Reply-To: <8267592.post@talk.nabble.com> References: <8266098.post@talk.nabble.com> <45A55B91.5050609@johnaherne.co.uk> <8267592.post@talk.nabble.com> Message-ID: <45A5F6BA.10709@johnaherne.co.uk> Bandung wrote: > Place these two files in your \\Python25\\Lib directory and then run root = > Tkinter.Tk() again. > > http://www.nabble.com/file/5569/Tkinter.py Tkinter.py > http://www.nabble.com/file/5570/Tkinter.pyc Tkinter.pyc > > again, soft reset is always a good idea at this point. > > > > > Thanks for the 2 files. I removed everything and started from scratch again. Soft reset after each stage. Installed python25 Copied in celib,tcl84,tk84 into \\windows. Copied Tkinter.py, Tkinter.pyc into python25\lib along with os.py that was there already. Import Tkinter is OK root = Tkinter.Tk() gives exactly same problem as before Invalid command name 'tcl_findLibrary' Makes me think some fundamental bit is missing from the python25 install. Regards John Aherne From bandung at skyesystems.com Thu Jan 11 15:14:02 2007 From: bandung at skyesystems.com (Bandung) Date: Thu, 11 Jan 2007 06:14:02 -0800 (PST) Subject: [PythonCE] tk/tcl In-Reply-To: <45A5F6BA.10709@johnaherne.co.uk> References: <8266098.post@talk.nabble.com> <45A55B91.5050609@johnaherne.co.uk> <8267592.post@talk.nabble.com> <45A5F6BA.10709@johnaherne.co.uk> Message-ID: <8278013.post@talk.nabble.com> You are almost there! Looks like you need tcl. Download this file and unzip it. it is a later version of tcl than the one that you were using. http://www.nabble.com/file/5586/tcltk8_4_12_ce-arm.zip tcltk8_4_12_ce-arm.zip Place the lib directory under your \\Program files\\ directory. You can ignore the directory called bin which contains the three files, celib, tcl84.dll and tk84.dll since you have already copied into your Windows directory. So your Python installation directory structure now looks like this... \\Program files\\Python25 \\Program files\\lib \\Windows\\ ...those three files with the names of the files that were in the directory called "bin" Your are now ready to start coding! With the files from this "lib", you will also be able to use bwidgets as well as Tkinter widgets. There are also iwidgets which I haven't tried yet. Plus, if you want to "tcl" then copy the tcls84h.exe and wish84.exe files into your Windows directory as well. And if you want a cool table widget, you can use the following file. Place it in your "lib" directory along side of the bwidget directory etc. http://www.nabble.com/file/5587/Tktable2.zip Tktable2.zip -- View this message in context: http://www.nabble.com/tk-tcl-tf2953745.html#a8278013 Sent from the Python - pythonce mailing list archive at Nabble.com. From bandung at skyesystems.com Thu Jan 11 17:25:58 2007 From: bandung at skyesystems.com (Bandung) Date: Thu, 11 Jan 2007 08:25:58 -0800 (PST) Subject: [PythonCE] tk/tcl In-Reply-To: <45A5F6BA.10709@johnaherne.co.uk> References: <8266098.post@talk.nabble.com> <45A55B91.5050609@johnaherne.co.uk> <8267592.post@talk.nabble.com> <45A5F6BA.10709@johnaherne.co.uk> Message-ID: <8278075.post@talk.nabble.com> (I sent this message 2 hrs earlier with a couple of embedded files. The attached files seem to be the cause for holding up the posting of the message on the board) Anyways, here are the final steps for getting your installation working.... -------------------------------. You are almost there! Looks like you need tcl. Download this file and unzip it. it is a later version of tcl than the one that you were using. tcltk8_4_12_ce-arm.zip Place the lib directory under your \\Program files\\ directory. You can ignore the directory called bin which contains the three files, celib, tcl84.dll and tk84.dll since you have already copied into your Windows directory. So your Python installation directory structure now looks like this... \\Program files\\Python25 \\Program files\\lib \\Windows\\ ...those three files with the names of the files that were in the directory called "bin" Your are now ready to start coding! With the files from this "lib", you will also be able to use bwidgets as well as Tkinter widgets. There are also iwidgets which I haven't tried yet. Plus, if you want to "tcl" then copy the tcls84h.exe and wish84.exe files into your Windows directory as well. And if you want a cool table widget, you can use the following file. Place it in your "lib" directory along side of the bwidget directory etc. Tktable2.zip John Aherne wrote: > > Bandung wrote: >> Place these two files in your \\Python25\\Lib directory and then run >> root = >> Tkinter.Tk() again. >> >> http://www.nabble.com/file/5569/Tkinter.py Tkinter.py >> http://www.nabble.com/file/5570/Tkinter.pyc Tkinter.pyc >> >> again, soft reset is always a good idea at this point. >> >> >> >> >> > Thanks for the 2 files. > > I removed everything and started from scratch again. Soft reset after > each stage. > > Installed python25 > Copied in celib,tcl84,tk84 into \\windows. > Copied Tkinter.py, Tkinter.pyc into python25\lib along with os.py that > was there already. > > Import Tkinter is OK > root = Tkinter.Tk() gives exactly same problem as before > > Invalid command name 'tcl_findLibrary' > > Makes me think some fundamental bit is missing from the python25 install. > > Regards > > John Aherne > > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > > -- View this message in context: http://www.nabble.com/tk-tcl-tf2953745.html#a8278075 Sent from the Python - pythonce mailing list archive at Nabble.com. From johna at johnaherne.co.uk Thu Jan 11 21:56:08 2007 From: johna at johnaherne.co.uk (John Aherne) Date: Thu, 11 Jan 2007 20:56:08 +0000 Subject: [PythonCE] tk/tcl In-Reply-To: <8278075.post@talk.nabble.com> References: <8266098.post@talk.nabble.com> <45A55B91.5050609@johnaherne.co.uk> <8267592.post@talk.nabble.com> <45A5F6BA.10709@johnaherne.co.uk> <8278075.post@talk.nabble.com> Message-ID: <45A6A468.90701@johnaherne.co.uk> Bandung wrote: > (I sent this message 2 hrs earlier with a couple of embedded files. The > attached files seem to be the cause for holding up the posting of the > message on the board) Anyways, here are the final steps for getting your > installation working.... > > > -------------------------------. > > You are almost there! Looks like you need tcl. Download this file and > unzip it. it is a later version of tcl than the one that you were using. > > tcltk8_4_12_ce-arm.zip > > Place the lib directory under your \\Program files\\ directory. > You can ignore the directory called bin which contains the three files, > celib, tcl84.dll and tk84.dll since you have already copied into your > Windows directory. > > So your Python installation directory structure now looks like this... > > \\Program files\\Python25 > \\Program files\\lib > \\Windows\\ ...those three files with the names of the files that were in > the directory called "bin" > > Your are now ready to start coding! > > With the files from this "lib", you will also be able to use bwidgets as > well as Tkinter widgets. There are also iwidgets which I haven't tried yet. > Plus, if you want to "tcl" then copy the tcls84h.exe and wish84.exe files > into your Windows directory as well. And if you want a cool table widget, > you can use the following file. Place it in your "lib" directory along side > of the bwidget directory etc. > > Tktable2.zip > > > > > > > > Thank you very much for all the time. That works perfectly. I have played around with some demo type files to see how they work and how it looks. And so far it looks very promising. The hard work will start a bit later. Thanks for all your effort. John Aherne From pythonce-ml at lestat.st Thu Jan 11 23:47:10 2007 From: pythonce-ml at lestat.st (David Goncalves) Date: Thu, 11 Jan 2007 23:47:10 +0100 Subject: [PythonCE] Accessing serial port with PythonCE 2.5 In-Reply-To: <20070110151828.88211.qmail@web60720.mail.yahoo.com> References: <20070110151828.88211.qmail@web60720.mail.yahoo.com> Message-ID: <45A6BE6E.6010707@lestat.st> Hi, Stefan Johansson wrote: > You can find a link to ceserial in the archives: > http://mail.python.org/pipermail/pythonce/2006-September/001589.html > I have used it successfully on my Dell Axim. Thanks a lot for that link. I downloaded CeSerial and started to listen to my serial port only with 3 lines of code ;) Regards. From ricercar at infinito.it Mon Jan 15 10:24:53 2007 From: ricercar at infinito.it (ricercar at infinito.it) Date: Mon, 15 Jan 2007 10:24:53 +0100 Subject: [PythonCE] Bluetooth Message-ID: <6.1.2.0.0.20070115102448.04506cf8@pop3.infinito.it> Hello, I'm new to PythonCE so apologize if the question was already answered (I searched through the archive withot success). Yesterday I installed on my Dell Axim PythonCE 2.5, last version. I tryed to do an example using the bluetooth connection without success. Today I downloaded the source code but I couldn't find any bluetooth.h or file related to bluetooth. So my suspect is that bluetooth is not supported in PythonCE. Is this true? Or am I wrong (I'm not an expert in Python building)? If somebody had success on using bluetooth and would like to share a little example this will be very appreciated. Thank you very much, Enrico From ricercar at infinito.it Mon Jan 15 11:03:07 2007 From: ricercar at infinito.it (ricercar at infinito.it) Date: Mon, 15 Jan 2007 11:03:07 +0100 Subject: [PythonCE] Bug? Message-ID: <6.1.2.0.0.20070115105940.04527b28@pop3.infinito.it> Hello, trying to discover if socket module has bluetooth support, I typed in the python console help(socket). This blocks the idle, no other action it's possible. If I do help(another-module) there's no problem (example help(os)). I'm working on a Dell Axim x51v, python 2.5 last release. Regards and thanks, Enrico From pythonce-ml at lestat.st Mon Jan 15 23:35:40 2007 From: pythonce-ml at lestat.st (David Goncalves) Date: Mon, 15 Jan 2007 23:35:40 +0100 Subject: [PythonCE] PythonCE with Tix In-Reply-To: <6.1.2.0.0.20070115105940.04527b28@pop3.infinito.it> References: <6.1.2.0.0.20070115105940.04527b28@pop3.infinito.it> Message-ID: <45AC01BC.6000201@lestat.st> Hi, Has somebody experienced using Tix for Tk on PythonCE ? Tix is an extension to Tk that introduces new widgets. http://tix.sourceforge.net From coder_infidel at hotmail.com Tue Jan 16 15:36:29 2007 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Tue, 16 Jan 2007 23:36:29 +0900 Subject: [PythonCE] Bluetooth References: <6.1.2.0.0.20070115102448.04506cf8@pop3.infinito.it> Message-ID: ----- Original Message ----- From: To: Sent: Monday, January 15, 2007 6:24 PM Subject: [PythonCE] Bluetooth > Hello, I'm new to PythonCE so apologize if the question was already > answered (I searched through the archive withot success). > Yesterday I installed on my Dell Axim PythonCE 2.5, last version. I tryed > to do an example using the bluetooth connection without success. Today I > downloaded the source code but I couldn't find any bluetooth.h or file > related to bluetooth. So my suspect is that bluetooth is not supported in > PythonCE. Is this true? Or am I wrong (I'm not an expert in Python > building)? > If somebody had success on using bluetooth and would like to share a > little > example this will be very appreciated. > > Thank you very much, > Enrico Does Python support Bluetooth? If not then I am not surprised that it is not supported by PythonCE. Luke From coder_infidel at hotmail.com Thu Jan 18 15:06:18 2007 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Thu, 18 Jan 2007 23:06:18 +0900 Subject: [PythonCE] Bug? References: <6.1.2.0.0.20070115105940.04527b28@pop3.infinito.it> Message-ID: ----- Original Message ----- From: To: Sent: Monday, January 15, 2007 7:03 PM Subject: [PythonCE] Bug? > Hello, trying to discover if socket module has bluetooth support, I typed > in the python console help(socket). This blocks the idle, no other action > it's possible. If I do help(another-module) there's no problem (example > help(os)). > I'm working on a Dell Axim x51v, python 2.5 last release. > > Regards and thanks, Enrico Yes, it looks like a bug. I'll try to investigate when I can. Luke From johna at johnaherne.co.uk Sun Jan 21 17:52:52 2007 From: johna at johnaherne.co.uk (John Aherne) Date: Sun, 21 Jan 2007 16:52:52 +0000 Subject: [PythonCE] tk/tcl Message-ID: <45B39A64.9090307@johnaherne.co.uk> I have been playing around with tk/tcl over the last week at various times. It seems to work quite well. I have loaded on a variety of demo type programs to see what works and what doesn't. I have also run some programs for a day or so to see what happens on long-running tasks. So far it seems quite good. One big issue is that the programs don't run as WM apps. This is a problem. I do need them to run like standard WM apps. One of the other things I wanted was signature capture. But I have had problems using the stylus with the canvas. This may well be because I have no real idea how tk/tcl works. And what I need to change to get the mouse movements and the draw working. The basic python port seems really good. I have been running tests with sockets and threads to talk to a simple twisted server and so far without making it too complicated it has all hung together, I imagine that the port for python without the WM gui support will slow down take-up. I see that someone was starting to look at Venster for CE, but I haven't heard any more. That seems like it might be a lot of work. I did take a quick look at wxpyce, but got the problem of not enough memory, so I backed off for the moment. I'm now wondering what my best next move might be. Any suggestions would be welcomed. Thanks John Aherne From fghaibach at comcast.net Wed Jan 24 13:25:33 2007 From: fghaibach at comcast.net (fghaibach at comcast.net) Date: Wed, 24 Jan 2007 12:25:33 +0000 Subject: [PythonCE] numarray or numpy for WinCE Message-ID: <012420071225.15434.45B7503D0006397200003C4A2205884484080C0E0D070E080900@comcast.net> I second this. Out of necessity I've been working my way (far too slowly) to compiling numpy and scipy for Windows Mobile. I'm interested in embedded devices being able to process data before sending the results on to a server. This strategy makes sense if you have many (10-10.000) multichannel sensors collecting data. Does anyone want to take this up, or guide me with the project? Fred -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20070124/9b1cd494/attachment.htm From sleepingbull at gmail.com Thu Jan 25 23:28:20 2007 From: sleepingbull at gmail.com (Matt S.) Date: Thu, 25 Jan 2007 14:28:20 -0800 Subject: [PythonCE] annoying progress clock while running wxPython Message-ID: When I run wxPython code on my windows mobile 4.0 device I get this pin-wheel like progress clock that won't go away. I can interact with the widgets, no problem, but the pin-wheel is a real eyesore. I'm running PythonCE 2.4 and wxPython 2.7.0. Has anyone ran into this problem or does anyone know how to resolve it? Thanks! Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20070125/ee31e6a9/attachment.htm From sjn37 at yahoo.com Thu Jan 25 23:39:05 2007 From: sjn37 at yahoo.com (Stefan Johansson) Date: Thu, 25 Jan 2007 14:39:05 -0800 (PST) Subject: [PythonCE] annoying progress clock while running wxPython Message-ID: <144656.39703.qm@web60717.mail.yahoo.com> I had the same problem. It does eventually go away but it takes a long time, like minutes. Unfortunately I never found a solution. Stefan ----- Original Message ---- From: Matt S. To: PythonCE at python.org Sent: Thursday, January 25, 2007 4:28:20 PM Subject: [PythonCE] annoying progress clock while running wxPython When I run wxPython code on my windows mobile 4.0 device I get this pin-wheel like progress clock that won't go away. I can interact with the widgets, no problem, but the pin-wheel is a real eyesore. I'm running PythonCE 2.4 and wxPython 2.7.0. Has anyone ran into this problem or does anyone know how to resolve it? Thanks! Matt _______________________________________________ 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/20070125/1f5f44d3/attachment.html From coder_infidel at hotmail.com Fri Jan 26 02:40:55 2007 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Fri, 26 Jan 2007 10:40:55 +0900 Subject: [PythonCE] annoying progress clock while running wxPython References: <144656.39703.qm@web60717.mail.yahoo.com> Message-ID: try: import _pcceshell_support except ImportError: # This can happen if PythonCE was started with the /nopcceshell argument pass else: _pcceshell_support.Busy(0) Luke ----- Original Message ----- From: Stefan Johansson To: Matt S. ; PythonCE at python.org Sent: Friday, January 26, 2007 7:39 AM Subject: Re: [PythonCE] annoying progress clock while running wxPython I had the same problem. It does eventually go away but it takes a long time, like minutes. Unfortunately I never found a solution. Stefan ----- Original Message ---- From: Matt S. To: PythonCE at python.org Sent: Thursday, January 25, 2007 4:28:20 PM Subject: [PythonCE] annoying progress clock while running wxPython When I run wxPython code on my windows mobile 4.0 device I get this pin-wheel like progress clock that won't go away. I can interact with the widgets, no problem, but the pin-wheel is a real eyesore. I'm running PythonCE 2.4 and wxPython 2.7.0. Has anyone ran into this problem or does anyone know how to resolve it? Thanks! Matt _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20070126/c77aeead/attachment.htm From knowledgeontap at gmail.com Fri Jan 26 10:35:19 2007 From: knowledgeontap at gmail.com (Sureal) Date: Fri, 26 Jan 2007 09:35:19 +0000 (UTC) Subject: [PythonCE] Bluetooth References: <6.1.2.0.0.20070115102448.04506cf8@pop3.infinito.it> Message-ID: There is a wonderful module called PyBluez That should solve all your bluetoof needs. And I'm pretty sure that it will work with pythonCE. From sleepingbull at gmail.com Fri Jan 26 19:42:59 2007 From: sleepingbull at gmail.com (Matt S.) Date: Fri, 26 Jan 2007 10:42:59 -0800 Subject: [PythonCE] annoying progress clock while running wxPython In-Reply-To: References: <144656.39703.qm@web60717.mail.yahoo.com> Message-ID: That did it! Thanks Luke. Matt On 1/25/07, Luke Dunstan wrote: > > > try: > import _pcceshell_support > except ImportError: > # This can happen if PythonCE was started with the > /nopcceshell argument > pass > else: > _pcceshell_support.Busy(0) > Luke > > > ----- Original Message ----- > *From:* Stefan Johansson > *To:* Matt S. ; PythonCE at python.org > *Sent:* Friday, January 26, 2007 7:39 AM > *Subject:* Re: [PythonCE] annoying progress clock while running wxPython > > I had the same problem. It does eventually go away but it takes a long > time, like minutes. Unfortunately I never found a solution. > > Stefan > > ----- Original Message ---- > From: Matt S. > To: PythonCE at python.org > Sent: Thursday, January 25, 2007 4:28:20 PM > Subject: [PythonCE] annoying progress clock while running wxPython > > When I run wxPython code on my windows mobile 4.0 device I get this > pin-wheel like progress clock that won't go away. I can interact with the > widgets, no problem, but the pin-wheel is a real eyesore. I'm running > PythonCE 2.4 and wxPython 2.7.0. Has anyone ran into this problem or does > anyone know how to resolve it? > > Thanks! > Matt > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20070126/eecfae14/attachment.html From vanAsselt at pa3btl.demon.nl Sat Jan 27 11:51:48 2007 From: vanAsselt at pa3btl.demon.nl (van Asselt) Date: Sat, 27 Jan 2007 11:51:48 +0100 Subject: [PythonCE] Fw: ceFile.py implementing basic file-like interface Message-ID: <001d01c74201$25306e80$6601a8c0@HVA> Hello all, I noticed this mail thread, but it seems to end in February 2006. I think it is an good idea to use ctypes to interface to the \windows\system32\RAPI.DLL. Till now I have been writing low-level C routines, and glued it in Python by means of SWIG, but the ctypes approach might be more simpler and safe. I'm very curious if there has been additional development on 'pocketrapi'. Regards, Henk From johna at johnaherne.co.uk Sun Jan 28 16:41:42 2007 From: johna at johnaherne.co.uk (John Aherne) Date: Sun, 28 Jan 2007 15:41:42 +0000 Subject: [PythonCE] venster port to pythonce Message-ID: <45BCC436.2030502@johnaherne.co.uk> I see that the sourceforge has beens et up for the vensterce port if anyone is interested. the link is:-- http://sourceforge.net/search/?type_of_search=soft&words=vensterce John From dave_welch at comcast.net Sun Jan 28 17:46:00 2007 From: dave_welch at comcast.net (David Welch) Date: Sun, 28 Jan 2007 08:46:00 -0800 Subject: [PythonCE] wxPython binary Message-ID: Hi, I am writing an application for a pda that uses windows mobile 5.0. Right now I am using tkinter for the gui and I would rather use wxpython for pythonce. If anyone could point me in the right direction so I can get wxpython working on my pda that would be great. Also I don't have the tools to compile it from source (most sites say you need visual studio or some equivalent), so I need a binary. Thanks for the help. Dave From alexandre.delattre at enst-bretagne.fr Mon Jan 29 16:48:17 2007 From: alexandre.delattre at enst-bretagne.fr (alexandre.delattre at enst-bretagne.fr) Date: Mon, 29 Jan 2007 16:48:17 +0100 Subject: [PythonCE] VensterCE release Message-ID: <20070129164817.eo1ei4al0gkww84c@webmail.enst-bretagne.fr> An experimental alpha version of vensterce is indeed up on sourceforge. I hadn't many time for this project last months but tonight or tomorrow i will post an updated version with HTML control support + few corrections. I will also update my IDE. From ricercar at infinito.it Mon Jan 29 16:58:53 2007 From: ricercar at infinito.it (ricercar at infinito.it) Date: Mon, 29 Jan 2007 16:58:53 +0100 Subject: [PythonCE] Bluetooth Message-ID: <6.1.2.0.0.20070129165616.044682b0@pop3.infinito.it> At 09.35 26/01/2007 +0000, you wrote: >There is a wonderful module called PyBluez > >That should solve all your bluetoof needs. And I'm pretty sure that it >will work >with pythonCE. Thanks for the info. At the moment I'm using ctypes and I can do something, with a huge amount of work on Microsoft doumentation. I will have a look at the module you suggest. Regards, Enrico *I did a replay to your message and the above message was sent to your private mailbox, sorry. From xrubenx.es at gmail.com Mon Jan 29 18:42:39 2007 From: xrubenx.es at gmail.com (Ruben Miguelez Garcia) Date: Mon, 29 Jan 2007 17:42:39 +0000 Subject: [PythonCE] Bluetooth In-Reply-To: <6.1.2.0.0.20070129165616.044682b0@pop3.infinito.it> References: <6.1.2.0.0.20070129165616.044682b0@pop3.infinito.it> Message-ID: <200701291742.39210.xrubenx.es@gmail.com> Hello to all, I am new on the list. Firstly I will share all my experiences until now. Then I am going to explain some research that I did about bluetooth on "Windows CE" because that is my main problem now. ====== Some experiences ====== 1- After read many mails on the list, I decided to use the server & client connection programs provided on the thread "How do you develop on the PocketPC?" 2- The first execution raise the error "ImportError: No module named ctypes". Then I updated the windows version inside the PDA to 2.5 and everything fine. 3-On the beginning, click on the client.py only opened a Python session without connect to the server. Then I discovered that with the PDA connected to the laptop by USB with ActiveSync running, the wifi was not working. After unplug the USB cable, wifi works fine and one click over the client.py connect to the server. PD: Of course, I had to modify the IP inside the client.py to point to my laptop. 4- If you are more or less new on the list. And you want to read more post that those that you received since you joined. You can monitor the list like a newsgroup and have many month of posts right now. http://blog.gmane.org/gmane.comp.python.windows-ce/page=9 ========== Bluetooth ========= I am developing an application with bluetooth, xml, http server , etc. The application has been done in PC (Linux Debian) and now I am trying to move it to the PDA. I just checked the import sentences, and all seems to work fine except "bluetooth". I have been searching and here are some conclusions: - BlueZ stack -> only for Linux. - PyBluez -> Windows XP and Linux. - Affix stack -> Only Linux. I found too: ------ A http://lightblue.sourceforge.net/ LightBlue: a cross-platform Python Bluetooth API But it's only for (Mac OS X, GNU/Linux and Nokia's Python for Series 60) ------ B http://www.thewirelessdirectory.com/Bluetooth-Software/Bluetooth-Protocol-Stack.htm Bluetooth Protocol Stacks made by companies. ------ C http://www.xmailserver.org/wmconsole.html WmConsole is a console server for Windows Mobile devices, that listen over BlueTooth RFCOMM channels, and allows the user to interact with the device using a command line interface from a Linux or Windows workstation. ------ D http://en.wikipedia.org/wiki/Microsoft_Platform_SDK Microsoft Windows SDK Microsoft Windows CE .NET 4.2 Bluetooth http://msdn2.microsoft.com/en-us/library/ms863414.aspx http://msdn.microsoft.com/embedded/usewinemb/ce/sharedsrccode/west/default.aspx Windows Embedded Source Tools for Bluetooth Technology =========== Questions ========== On [C] there is a program on C++ that use bluetooth on Windows CE. Could be possible to do a wrapper of the bluetooth library that he used and use it on Python? Today I just discovered what is SDK [D]. Anybody with experience on it, maybe could take the info and libraries about bluetooth and put it here to do some magic with it?? --------- Maybe my ideas are stupid, but I am just trying to solve the problem of Bluetooth with Python on "Windows CE". If you find some mistakes on my information, please say it. Thanks. -- Kind regards / Cumprimentos / Atentamente, Ruben. From pythonce at xhaus.com Mon Jan 29 19:19:54 2007 From: pythonce at xhaus.com (Alan Kennedy) Date: Mon, 29 Jan 2007 18:19:54 +0000 Subject: [PythonCE] VensterCE release In-Reply-To: <20070129164817.eo1ei4al0gkww84c@webmail.enst-bretagne.fr> References: <20070129164817.eo1ei4al0gkww84c@webmail.enst-bretagne.fr> Message-ID: <45BE3ACA.9040904@xhaus.com> alexandre.delattre at enst-bretagne.fr wrote: > An experimental alpha version of vensterce is indeed up on sourceforge. > I hadn't many time for this project last months but tonight or tomorrow > i will post an updated version with HTML control support + few > corrections. I will also update my IDE. I'm curious. The original Venster was published under the MIT license. Why have you published Venster-CE under the GPL license? Alan. From alexandre.delattre at enst-bretagne.fr Tue Jan 30 16:55:10 2007 From: alexandre.delattre at enst-bretagne.fr (alexandre.delattre at enst-bretagne.fr) Date: Tue, 30 Jan 2007 16:55:10 +0100 Subject: [PythonCE] VensterCE release Message-ID: <20070130165510.n9dxmi1vs4kcc8sw@webmail.enst-bretagne.fr> > I'm curious. > > The original Venster was published under the MIT license. > > Why have you published Venster-CE under the GPL license? > > Alan. Well, I thought that the most important was to use an OSI compliant license and I personnaly prefer GNU/GPL. I'am no license-expert, so if you see any problem with this, tell me, and I could change the licensing. Alex. From brian at ablelinktech.com Tue Jan 30 17:18:24 2007 From: brian at ablelinktech.com (Brian Brown) Date: Tue, 30 Jan 2007 09:18:24 -0700 Subject: [PythonCE] VensterCE release In-Reply-To: <20070130165510.n9dxmi1vs4kcc8sw@webmail.enst-bretagne.fr> References: <20070130165510.n9dxmi1vs4kcc8sw@webmail.enst-bretagne.fr> Message-ID: <7A93FCDF-D431-4A8D-B673-DED85592A5B5@ablelinktech.com> On Jan 30, 2007, at 8:55 AM, alexandre.delattre at enst-bretagne.fr wrote: >> I'm curious. >> >> The original Venster was published under the MIT license. >> >> Why have you published Venster-CE under the GPL license? >> >> Alan. > > Well, I thought that the most important was to use an OSI compliant > license and I personnaly prefer GNU/GPL. I'am no license-expert, so if > you see any problem with this, tell me, and I could change the > licensing. > > Alex. > Hello Alex, I was under the impression that MIT is quite OSI compliant. I prefer MIT/BSD licensing and have published a great deal of code under that license (http://techgame.net/projects/Framework). I personally believe there is a great synergy between commercial and open source entities; for example, all the code we have created as expressly open source were completely funded by commercial entities. We make it as free as we can (MIT/BSD) for commercial or non- commercial use. The GPL typically bars commercial use because you can't keep any part of your system proprietary. Basically, If a toolkit is GPL, I typically won't use it when doing development of my own stuff, although there are lots of other licenses, such as MPL, APL and others that are less restrictive that the GPL. That's my 2 cents :) - Brian > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce From alexandre.delattre at enst-bretagne.fr Tue Jan 30 20:36:26 2007 From: alexandre.delattre at enst-bretagne.fr (alexandre.delattre at enst-bretagne.fr) Date: Tue, 30 Jan 2007 20:36:26 +0100 Subject: [PythonCE] VensterCE release In-Reply-To: <7A93FCDF-D431-4A8D-B673-DED85592A5B5@ablelinktech.com> References: <20070130165510.n9dxmi1vs4kcc8sw@webmail.enst-bretagne.fr> <7A93FCDF-D431-4A8D-B673-DED85592A5B5@ablelinktech.com> Message-ID: <20070130203626.696g4b1fwg4goog0@webmail.enst-bretagne.fr> Brian Brown a ?crit : > > On Jan 30, 2007, at 8:55 AM, alexandre.delattre at enst-bretagne.fr wrote: > >>> I'm curious. >>> >>> The original Venster was published under the MIT license. >>> >>> Why have you published Venster-CE under the GPL license? >>> >>> Alan. >> >> Well, I thought that the most important was to use an OSI compliant >> license and I personnaly prefer GNU/GPL. I'am no license-expert, so if >> you see any problem with this, tell me, and I could change the >> licensing. >> >> Alex. >> > > Hello Alex, > > > I was under the impression that MIT is quite OSI compliant. I prefer > MIT/BSD licensing and have published a great deal of code under that > license (http://techgame.net/projects/Framework). > > I personally believe there is a great synergy between commercial and > open source entities; for example, all the code we have created as > expressly open source were completely funded by commercial entities. We > make it as free as we can (MIT/BSD) for commercial or non-commercial > use. The GPL typically bars commercial use because you can't keep any > part of your system proprietary. > > Basically, If a toolkit is GPL, I typically won't use it when doing > development of my own stuff, although there are lots of other licenses, > such as MPL, APL and others that are less restrictive that the GPL. > > That's my 2 cents :) > > - Brian > > > >> _______________________________________________ >> PythonCE mailing list >> PythonCE at python.org >> http://mail.python.org/mailman/listinfo/pythonce Hello Brian, Well, since I'm a student, I didn't really take into account commercial use. I ideally thought that GPL gives a lot of freedom for free or commercial development. If it encouranges python ce users to choose venster as their gui toolkit, in free or commercial products, I will release the upcoming version under a MIT license. Anyway, have you tried venster-ce ? I'll be glad to have comments or (constructive :-) criticism ! Alex. From theller at ctypes.org Tue Jan 30 20:52:58 2007 From: theller at ctypes.org (Thomas Heller) Date: Tue, 30 Jan 2007 20:52:58 +0100 Subject: [PythonCE] VensterCE release In-Reply-To: <20070130203626.696g4b1fwg4goog0@webmail.enst-bretagne.fr> References: <20070130165510.n9dxmi1vs4kcc8sw@webmail.enst-bretagne.fr> <7A93FCDF-D431-4A8D-B673-DED85592A5B5@ablelinktech.com> <20070130203626.696g4b1fwg4goog0@webmail.enst-bretagne.fr> Message-ID: alexandre.delattre at enst-bretagne.fr schrieb: > Hello Brian, > > Well, since I'm a student, I didn't really take into account > commercial use. I ideally thought that GPL gives a lot of freedom for > free or commercial development. > If it encouranges python ce users to choose venster as their gui > toolkit, in free or commercial products, I will release the upcoming > version under a MIT license. > > Anyway, have you tried venster-ce ? > I'll be glad to have comments or (constructive :-) criticism ! > > Alex. I have tried a version that I pulled from CVS (or was it SNV?) some days ago. I was quite impressed, although I had problems understanding the menus in french ;-). Thomas From theller at ctypes.org Tue Jan 30 20:58:29 2007 From: theller at ctypes.org (Thomas Heller) Date: Tue, 30 Jan 2007 20:58:29 +0100 Subject: [PythonCE] Bluetooth In-Reply-To: <200701291742.39210.xrubenx.es@gmail.com> References: <6.1.2.0.0.20070129165616.044682b0@pop3.infinito.it> <200701291742.39210.xrubenx.es@gmail.com> Message-ID: Ruben Miguelez Garcia schrieb: > Hello to all, > I am new on the list. > Firstly I will share all my experiences until now. > Then I am going to explain some research that I did about bluetooth > on "Windows CE" because that is my main problem now. > > ====== Some experiences ====== > > 1- After read many mails on the list, I decided to use the server & client > connection programs provided on the thread "How do you develop on the > PocketPC?" > > 2- The first execution raise the error "ImportError: No module named ctypes". > Then I updated the windows version inside the PDA to 2.5 and everything fine. > > 3-On the beginning, click on the client.py only opened a Python session > without connect to the server. Then I discovered that with the PDA connected > to the laptop by USB with ActiveSync running, the wifi was not working. After > unplug the USB cable, wifi works fine and one click over the client.py > connect to the server. > > PD: Of course, I had to modify the IP inside the client.py to point to my > laptop. I'm afraid I cannot help with the bluetooth stuff, but I have worked somewhat on the server&client connection program. A much improved version is available here: http://ctypes-stuff.googlecode.com/svn/trunk/wince/remote-console/ The console.py script is thought to be run on the workstation. Editing the client.py script (which is transferred automatically to the PDA) is no longer needed. console.py accepts some command line options which can also be used for Python itself: -m 'package', -c 'Python commands', other options are accepted but don't do anything: -i, -u. Thomas From alexandre.delattre at enst-bretagne.fr Wed Jan 31 01:32:50 2007 From: alexandre.delattre at enst-bretagne.fr (alexandre.delattre at enst-bretagne.fr) Date: Wed, 31 Jan 2007 01:32:50 +0100 Subject: [PythonCE] Re : numarray or numpy for WinCE Message-ID: <20070131013250.vyox5b3x5wscs4so@webmail.enst-bretagne.fr> Hello, You can download a pre-compiled release of numarray 1.5.2 for python ce 2.4 at http://sourceforge.net/project/showfiles.php?group_id=104228 Alex. From coder_infidel at hotmail.com Wed Jan 31 12:19:17 2007 From: coder_infidel at hotmail.com (Luke Dunstan) Date: Wed, 31 Jan 2007 20:19:17 +0900 Subject: [PythonCE] Re : numarray or numpy for WinCE References: <20070131013250.vyox5b3x5wscs4so@webmail.enst-bretagne.fr> Message-ID: ----- Original Message ----- From: To: Sent: Wednesday, January 31, 2007 9:32 AM Subject: [PythonCE] Re : numarray or numpy for WinCE > Hello, > > You can download a pre-compiled release of numarray 1.5.2 > for python ce 2.4 at > http://sourceforge.net/project/showfiles.php?group_id=104228 > > Alex. Hi, Although I don't need numarray at the moment, I'm sure plenty of people will find it useful. However, I wonder why you built it for PythonCE 2.4 and not 2.5? Is it just that you haven't felt the need to upgrade your own Windows CE devices, or is there a problem with building it for 2.5? If it is the latter then I would like to help because I am not aware of whether anyone (other than me) has succeeded to use the new build scripts for 2.5, but if you or anyone else is having problems then I would like to help to debug it. Thanks, Luke