Re: [PythonCE] Issuing WM_COMMAND
Hello Marc, It is possible to send WM_COMMAND messages with pythonce, using ctypes to interface native win32 Functions: from ctypes import * SendMessage = cdll.coredll.SendMessageW WM_COMMAND = 0x111 SendMessage(hwnd, WM_COMMAND, wparam, lparam) You can wrap other functions with ctypes to get the hwnd of the window you want. Hope it helps, Alex De : pythonce-bounces+alexandre.delattre=telecom-bretagne...@python.org [mailto:pythonce-bounces+alexandre.delattre=telecom-bretagne...@python.org] De la part de Marc Grondin Envoyé : mercredi 27 mai 2009 18:56 À : pythonce@python.org Objet : [PythonCE] Issuing WM_COMMAND Hello everyone, I'm fairly new to python and pythonce and i have a quaetion. Is it possibble to issue WM_COMMANDS on a WM device using pythonCE?(i have ver 2.5 from october) -- C-ya Later Take Care Marc Grondin ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Porting Modules
Well it depends of what you have in mind. Do you mean porting pure python or C python modules ? In the latter case, tell me what OS are you planning to use (windows or linux). -Original Message- From: NOC n...@sc.cx Sent: samedi 27 décembre 2008 09:09 To: pythonce@python.org Subject: [PythonCE] Porting Modules Where can I find information on how to Python port modules to PythonCE? ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Updating Python version?
Hi, A few month ago, Joseph Armbruster merged the PythonCe's patch with python 2.6. You may be interested in looking at his notes :http://sourceforge.net/forum/forum.php?thread_id=1976841forum_id=358833 Regarding, questions about ppygui I recommend you posting them in the sourceforge forum. Regards, Alexandre -Original Message- From: Lachezar Dobrev [EMAIL PROTECTED] Sent: lundi 3 novembre 2008 09:59 To: pythonce@python.org Subject: [PythonCE] Updating Python version? Hello colleagues, After some hassle I was able to install the available PythonCE version on the XScale device. However it seems, that the current PythonCE version (December 19, 2006) is quite old. I am wondering whether PythonCE has some migration procedures, or does it need a full rebuild? A bit off-topic, but is this the correct list to ask questions on PocketPyGui, because I have a few issues there I would like to elaborate on. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] HTTPS support in httplib
Hi, You may give a try to tlslite http://trevp.net/tlslite/ which works fine with PythonCe. Alexandre___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Can I execute external programs from PythonCe?
Hi, Recently I've adapted the module osce.py to use ctypes instead of win32* modules. http://mail.python.org/pipermail/pythonce/2005-January/000948.html Currently there is no os.system function but a systema function that can be used this way: systema('\\full\\path\\to\\program.exe', ['arg1', 'arg2', ...]) Cheers, Alexandre from ctypes import * import os CreateProcess = cdll.coredll.CreateProcessW WaitForSingleObject = cdll.coredll.WaitForSingleObject GetExitCodeProcess = cdll.coredll.GetExitCodeProcess DWORD = HANDLE = c_ulong class _PI(Structure): _fields_ = [('hPro', HANDLE), ('hTh', HANDLE), ('idPro', DWORD), ('idTh', DWORD)] def _create_process(cmd, args): pi = _PI() CreateProcess(unicode(cmd), unicode(args), 0, 0, 0, 0, 0, 0, 0, byref(pi)) return pi.hPro def _wait_process(hPro): WaitForSingleObject(hPro, c_ulong(0x)) return GetExitCodeProcess(hPro) def _quote(s): if in s: return '%s' %s return s def execv(path, args): if not type(args) in (tuple, list): raise TypeError, execv() arg 2 must be a tuple or list path = os.path.abspath(path) args = .join(_quote(arg) for arg in args) _create_process(path, args) def execve(path, args, env): execv(path, args) def systema(path, args): if not type(args) in (tuple, list): raise TypeError, systema() arg 2 must be a tuple or list path = os.path.abspath(path) args = .join(_quote(arg) for arg in args) hPro = _create_process(path, args) return _wait_process(hPro) ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] pygame / distutils
Jared Adam, Glad to hear you were able to cross compile sdl with cegcc, this opens the possibility to compile pygame with cegcc, which may yield better results than Microsoft tools :) Some times ago, I've sent Jared a PythonCE 2.5 import library and an scons script to easily compile Python modules with cegcc. I think they'll be useful for compiling pygame. (Btw, I have a working PIL port built this way that I'll be happy to put online soon) Jared, did you manage to compile SDL_Image on top of SDL ? I think it's the only extra dll that is needed by pygame to work. I remember that when compiling with embedded vc++ this dll was compiled almost out of the box since the low level calls were handled by SDL so no porting was required. Would be cool to have SDL_Mixer too. Best regards, Alexandre___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Programaticly moving cursor in multi-line edit control
Igor, I've tested your app, and what happens really is that the cursor itself is moved at the beginning but the edit isn't scrolled to make it visible (if you press an hardware key or try to insert a few characters, you'll be then scrolled at the beginning). This seems to be the normal behaviour of windows ce. There is at least 2 way to solve that: 1) Use the line proposed by Jared to make the conversion between unix and windows line endings, so the problem isn't even ask. I recommand you to use this in your case. 2) Make some invisible changes at the beginning of the Edit, so that the view is scrolled to show the change, you can use this snippet: self.text_entry.selection = 0, 1 self.text_entry.selected_text = self.text_entry.selected_text self.text_entry.selection = 0, 0 I think that, later, I'll surely implement scrolling methods so that kind of stuff could be done much more cleanly. Hope it helps, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Python CE on a Intel XScale industrial device.
Success! After manually copying the ...\ppygui-0.7\ppygui\*.py to a newly created $PYTHONHOME\Lib\site-packages\ppygui the demo application started (pretty damn fast!) and displayed correctly (as far as I know). Glad to here that works :) Now... Do I need the Tkinter pack to use ppygui? I did not find any reference to that, and I am eager to trim down the Python distribution. No, ppygui has no external dependence besides PythonCE and the system dlls that comes out of the box on wince devices. A byte-code only distribution of ppygui is around 250 kB. I'll be having problems creating a distribution pack for installing on the devices we'll be using. These days I've been working on a script that helps producing easily .cab for pythonce applications and libraries. Hopefully I'll polish and publish it in the week. Hmm... I wonder if I could be converted into a Python Head. You mean a python egg ? Also, I remember from the time I played with evc++ that PythonCE is targeted for armv4 processors. From what I read XScale is armv5 but is supposed to be backward compatible with armv4. Maybe the .cab installer check the processor type id without taking into account backward-compatibility stuff ? I think you don't have to hurry on recompilation yet if you're able to make work what you need for your project. Also I'm afraid only Visual Studio 2005 allow to compile for armv5, in case you really want to recompile something optimized for your architecture. Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] pygame / distutils
Hi, I've been able to make pygame-ctypes works with SDL.dll and SDL_Image.dll built from unofficial wince project files of SDL, with very minimal changes. I'm keen to package this and make it public, but you must note this is very experimental and is a bit slow. The constraints explained by Christopher, especially regarding current directory support, applies here too. I did not manage to compile the C version with evc++4 but I'd like to give a try later with cegcc, unfortunately I do not have the time for this yet. Also, before rushing in compilation, it may be interesting to benchmark pygame and pygame-ctypes on desktop to evaluate if there would be a really speed gain in using a compiled version. As pygame is mostly a wrapper around SDL, I found it hard to evaluate the overhead caused by using ctypes instead of c code. A benchmark would help us to see clearer. Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] The State of Affairs
Hi all, After a bit of thinking, I wonder___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] The State of Affairs
Please ignore my previous message, I hit the Send button accidentaly. I was thinking that a first step to enhance distribution of PythonCE apps, would be to be able to create easily .cab for them. .cab are installable over the air, as well by cross installing from desktop. If I met enough positive feedback, I'll start trying to implement a distutils extension that will allow to create .cab the python way (i.e. Without using directly MS tools) Looking forward your feedbacks, Alexandre___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Comtypes installation problem...
Thomas, In pypoom and when embedding activex controls in venster/ppygui I hadn't met the need to use the SAFEARRAY type. Regards, Alexandre___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] ~Name not defined error
ConnectRegistry seems not to be implemented in PythonCE However you can still replace: aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE) aKey = OpenKey(aReg, rSOFTWARE\Microsoft\Windows\CurrentVersion\Run) by: aKey = OpenKey(HKEY_LOCAL_MACHINE, rSOFTWARE\Microsoft\Windows\CurrentVersion\Run) ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] ~Name not defined error
David Williams wrote: I have replaced the lines as suggested and now get the error: Type 'exceptions.WindowsError':[Error 2] The system cannot find the file specified I would be grateful for any further help. Thank you David williams 2008/7/11 [EMAIL PROTECTED]: ConnectRegistry seems not to be implemented in PythonCE However you can still replace: aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE) aKey = OpenKey(aReg, rSOFTWARE\Microsoft\Windows\CurrentVersion\Run) by: aKey = OpenKey(HKEY_LOCAL_MACHINE, rSOFTWARE\Microsoft\Windows\CurrentVersion\Run) ___ PythonCE mailing list PythonCE@python.org mailto:PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce Hmm, you must make sure the key is existing in your device registry. Try to double check this and that the key isn't mispelled (btw, I use PHM Regeditor on my pda for this kind of stuff http://www.phm.lu/Products/PocketPC/RegEdit/) The use of raw string r... notation prevents you from having to escape \ characters, maybe give a try to: aKey = OpenKey(HKEY_LOCAL_MACHINE, rSoftware\Microsoft\Windows\CurrentVersion\Run) Hope it helps, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] The State of Affairs
Chris, Also, if we are to encourage developers to build solutions that will work on the PDA, I think distribution is a problem. The environment is workable as a hacker, but if we want to simply the deployment and actually ship applications, at this point it seems a bit complex. It would be nice if there was a Py2App, or even, something along the lines where the solution could be bundled into a directory (not as an EXE, just as Python and your application files) for easy distribution. I do agree the distribution is problematic especially for end-users having no experience of python. The problem I see with a py2exe-like solution, is that if each application should hold ~4Mb (which is approximatively the size of python.dll+python.exe+standard library) this limits the number of apps you can install on a handheld device. In my opinion, the separation of interpreter and source files is a more viable option on PDA, even if flash memory is getting cheaper and cheaper. What I really like to start implementing is a web-based approach of programs distribution, a bit like apt-get on debian linux (with a graphical frontend of course) or like the Installer.app on jailbreaked iphones. This way it would allow us to search/install/uninstall python programs and libs from a common online source, in a few clicks, directly on pda/smartphone, or by transferring the package with traditional methods if the first option is not possible. Uploading new applications should be made easy too. To do that we need: * Choose a package format for storage/description of application files. We could use .cab or design a format specific for PythonCE applications. Some times ago, we made some brainstorming with Jared Forsyth on a .ppyp format (Pocket Python Package), which is a distutils-like way of defining packages. * Create the Installer application itself, with it's logic and gui, and ship it by default in the PythonCE distribution. * Make a desktop application for easy cross installation of packages, when there's no direct web access on the pda. I've seen there are already existing RAPI bindings, this may help a lot, and seems the most 'universal' way to transfer files (i.e. by usb) * Set up a web service for uploading and hosting packages, managing versions, ... I think Django web framework could really help here, but no problem if it's another framework or not even in python While a such project won't be achieved in one day, I definitely think it is worth the effort and will make PythonCE superior to .NET regarding distribution user experience. Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] PPYGUI - parent window and closing it
Adam, there's one downside to not use tMan: even if the window disappear it is still running background and the only way to really close it is in the Memory app of the control panel. But rejoice, following this discussion I've been able to modify ppygui so that windows are really closed even without tMan :) Now, even a .py file will see it's terminal closed when the gui main frame is closed, without using tMan. Expect to see the code in svn in a few hours. Alexandre___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] PPyGui SVN PPyGui-win32
But, is this a screen as in a window, frame or just text on a display? Even photographs of a working example would tickle the imagination and creativity of people wanting to extend their development on mobile devices. Good point :) Will fix that ASAP Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] PPyGui SVN PPyGui-win32
Very nice! Will this work with WM5/WM6 Smartphones? I see that the installer will not run, however I wonder if it can be installed manually. -Justin Currently some widgets are not usable on non-touchscreen smartphones, which from what I heard will make impossible to go through the installer. However, while waiting for a better solution, you can copy the ppygui/ dir from the archive or svn to your \Program Files\Python25\Lib\ dir, and you'll be able to write some little apps that use only simpelest widgets. Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] PPyGui SVN PPyGui-win32
Hi all, I'm pleased to announce that PocketPyGui development is now kindly hosted by Mirko [EMAIL PROTECTED]; Vogt :) The svn repository host the latest version of PPygui as well as 3rd party apps and tools not published yet. You can check it out by typing: svn co https://svn.nanl.de/svn/ppygui/ and use anonymous/anonymous as user/password. Especially, the repository contain the first version of the native PPygui win32 implementation, which allow you to test and debug your PPygui apps directly from desktop Windows or with Linux through Wine. As PPygui for win32 reuse 90 % of the wince implementation, this gives a fairly coherent and compatible environment for mobile apps development. It is likely your existing apps will work out of the box, as it did for almost all of mine. The only thing really missing now is gui.Html control, but it should not be to much hassle to implement it with comtypes and hopefully we can see it ported in a couple of days. With very little effort you'll be able to make regular desktop gui applications, and reuse your components between classic and mobile versions of your app. While PocketPyGui will remain focused on mobile devices, it'll be soon an alternative to create lightweight win32 applications that are easy to write and distribute. As always, any contributions and feedbacks are welcome. Also, if you want to gain developer access to svn, feel free to mail me. Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Comtypes installation problem...
Hi, By the time I wrote pypoom, comtypes (version 0.3 if I remember well) worked out of the box on WinCe. Sergei, if you send me your tweaked version of comtypes, I think I'll be able to replace your comments with more portable statements like : If os.name == 'ce': ... , or so. And then submit a preliminary patch to Thomas Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] PocketPyGui
Hi all, I've just release the first public beta of ppygui. You can read more and browse the WIP docs at http://ppygui.sf.net/. Direct download is available from sourceforge at http://sourceforge.net/project/platformdownload.php?group_id=203397 . The install process is graphically based to encourage trying and (re-)distribution. Also, feel free to post your questions and feedback on sourceforge. Later on, I'll publish some of my open source apps including a jabber client, for bigger applications using ppygui. Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] 2.6 update
Congratulations ! I'll be glad to try the new features of Py 2.6 right on my pda :) Btw, I have a suggestion to make compiling/porting C extension modules easier in future PythonCE builds: Indeed, the functions implemented in wince_compatibility.c are not available from a C extension module. Using the __declspec(dllexport) notation for these function would allow extensions to dynamically link with them, and benefit for instance of proper errno and current directory support. Great work anyway, Alex ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] General questions
I guess this is true while the app is running, but as soon as I close it, I will get the dialog again next time I run it? Nope, it's a system-wide setting, this may be problematic if different apps have to connect differents devices, but in your case this will always connect to your panoramic head. When needed, you can reset the setting at the same place you enable the bluetooth serial port. Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] General questions
Hi Fredéric and happy new year to all :) I found a little bluetooth/serial module for my panoramic head project: http://www.adeunis-rf.com/list_produits.php?lng=FRgid=6pid=ARF32+Data http://www.adeunis-rf.com/list_produits.php?lng=FRgid=6pid=ARF32+Data Do you think the com will be totally transparent with this module? My goal is to drive a serial device, and I would like to avoid bluetooth programmin stuff... I've used only ceserial with bluetooth in little projects like winamp/bmpx remote controller, and a sms sender via a bluetooth phone, and so far it seems to work like a regular serial port. However, there's some little tricks to make it work at first : 1) You must create an ongoing port in your bluetooth settings, by default the outgoing port is COM6 2) In your code: from ceserial import Serial s = Serial(COM6:) # COM6 only will not work, since it is based on the CreateFileW WinCE API function s.open() # This will pop a dialog allowing to choose which bt device to connect # Then regular serial code Hope it helps, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Tkinter gif problem on PythonCE
Hi everybody, where can find downloads and instructions for installing pythonce? For PythonCE instructions, the wiki is your friend : http://pythonce.sourceforge.net/Wikka/HomePage does it come with the thread module? Yes. Limitations and differences of pythonce from regular Python are shown here: http://pythonce.sourceforge.net/Wikka/WindowsCEDifferences if so, do you think I may be able to run Gluon (http:// mdp.cti.depaul.edu) or should I expect any major obstacle The django framework works well on pythonce, so I think Gluon should work with no or little effort. Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] lxml
Hi, Afaik there's no port of lxml yet. A starting point would be a port of libxml2 itself. Anyway have you tried ElementTree which is shipped with PythonCE 2.5 ? Lxml based it's API on it, so basic XML infoset manipulation is exactly the same in etree, but works out of the box. http://docs.python.org/lib/module-xml.etree.ElementTree.html Maybe you're interested in the standards support of lxml ( XPath, XSLT, schemas validation ...), in which case I advise you a pure python solution (http://4suite.org/index.xhtml) Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] PythonCe suddlenly closes
Hi, With the command line, you can specify the /nocpcceshell flag to prevent the console gui to appear: python /nopcceshell \medir\script.py The output is then directly written in the PocketCMD console. Hope it helps, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] Launching external programs
Hi, The subprocess and os.popen*() hasn't been ported yet, but a call to os.startfile(\\path\\to\\executable.exe) may help. A drawback is that the function returns immediately Regards, Alexandre. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] win32gui missing
Hi, win32gui is a C extension module that hasn't been ported yet to pyce 2.5. If you are used to win32 ui programming, you may find VensterCE useful (http://sf.net/projects/vensterce/). Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] Qt-wince
Hi, A PyQt port should be feasible, but I'm afraid we'll end up with the same problems as wxpython port regarding high memory usage: Wince kernel has a very tight virtual address space in which dll are adressed (about 32MB), this means passed a certain point, dll could not be loaded. Also the address of the dll must be aligned on a 32k boundary (I'm unsure if it's the exact value), meaning it's better to have one big dll than many little for the same code size. Basically, SIP and SWIG wrappers are a lot of dlls themselves. I do not want to discourage anyone willing to port PyQt, but please consider these two points: - Wrap only the minimal gui classes to reduce code size - Produce only one dll for the wrappers, and better, link statically the wrappers with the Qt library Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] PythonCE on Smartphone (WM6)
Hi, I' am about to make a public release of PocketPyGui, an open source toolkit that provides an abstraction level over the raw Win32 GUI api. I tried to design its API for python developers with no prior knowledge of win32 programming. For instance, one of its main benefit over its ancestor, vensterce, is the transparent event handling that allow direct binding from signals (button pressed, list selection changed, ...) to callbacks (any python function that takes a single argument). Doing the same with VensterCE, would need to understand well about the C way to do message dispatching, handling, and would in some cases need to manually maintain a list of ID for each controls which is quite static and unpythonic. The API also covers many controls : Button, Edit, Label, List (ListBox), Combo, Table (ListCtrl in report mode), Tree (TreeView), NoteBook, Progress (TrackBar), HTML, Date Time control, Dialog, Font, ... I tried to give each control a complete and intuitive interface, making use of property and special methods where appropriate. Some controls (Canvas ScrolledFrame) are still in WIP but will be included as a demo/tutorial. As a bonus, ppygui implements dynamic resolution detection and scaling (meaning your app will appear the same on a hires or classic resolution device without thinking about it), and automatic tab/jog-dial traversal (but it can be explicitely deactivated for a Window). All that to say that, even if I don't own a Smartphone, I'm definitely willing to make this kind of GUI abstraction for the next releases. Will setup the smartphone emulator provided by MS for my tests ... Best regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] Wiki and spam comments
Hi, I have tweaked the Wiki to input a captcha when registering new user a month ago and haven't seen spam attacks since. When I'll have some time, I will clean the spam comments directly with mysql and try disabling comment for unregistered users as you suggest. Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] Smartphone support (Blackjack WM5)
Hi Stefen, Even if I don't own a smartphone device, it's a very good initiative to provide binaries for smartphones :) However, being curious, I looked at the patch page and was unable to see attachments with it. I may have looked at the wrong place, but I've double checked it and found nothing. I think you should ask one of the project admin to make your cab appear in the main download page, since many smartphone users won't necessary have the patience to look in the patch section for working binaries ;) With regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Spam on the wiki, it happened again :(
Luke Dunstan [EMAIL PROTECTED] a écrit : Date: Sat, 18 Aug 2007 17:11:51 +0200 From: [EMAIL PROTECTED] To: pythonce@python.org Subject: [PythonCE] Spam on the wiki, it happened again :( Hi, Once again the wiki was spammed and it's the 3rd time in less than a week :( I'll clean the mess for now, but I'm beginning to feel it's useless until there is a stronger anti-spam system somehow. Luke, what is your opinion ? I'd like to help but my knowledge of php is really basic and you must first authorize me to do server side modifications. I think the captcha plug-in would be the best option, but I don't know any PHP either. What is your SourceForge user name, so I can add you as a developer? My SourceForge user name is alexd31. I'll try to follow the instructions at http://wikkawiki.org/FreeCap since it seems the easiest to integrate with wikka. Another possibility would be to move the wiki to the MoinMoin engine, I've read there's an anti-spam plug-in called HoneyPot that don't use captchas (useful for blind people). Don't know if it's efficient, but I've already played with MoinMoin and found it really great. I vaguely remember that I looked at that wiki software when I created the wiki, but the main problem was that it uses files to store data, which is not feasible on SourceForge. Any wiki that we use needs to store data in a MySQL database. Please, I'd like to hear what you think the best to do. With regards, Alexandre. PS I've came with an (unrelated) idea that would benefit the PythonCE community: it is to have a common repository for PythonCE related stuff (scripts, tools, ports, extension binaries, ...), it could be a simple ftp at first or a website like the official Python CheeseShop. If someone has a bit of bandwidth to share or suggestions, they are all welcome ;) Is it something we could put on pythonce.sourceforge.net ? Luke It would be the most logical place for it, but I'm afraid we would come with the file limitation very quickly. I think it is more feasible to host it somewhere else and make a link from pythonce.sourceforge.net. I'd love to code the web app in django, but a ftp should suffice. Alexandre. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Spam on the wiki, it happened again :(
Luke Dunstan [EMAIL PROTECTED] a écrit : Date: Sun, 19 Aug 2007 12:21:20 +0200 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: pythonce@python.org Subject: RE: [PythonCE] Spam on the wiki, it happened again :( Luke Dunstan [EMAIL PROTECTED] a écrit :Date: Sat, 18 Aug 2007 17:11:51 +0200 From: [EMAIL PROTECTED] To: pythonce@python.org Subject: [PythonCE] Spam on the wiki, it happened again :( Hi, Once again the wiki was spammed and it's the 3rd time in less than a week :( I'll clean the mess for now, but I'm beginning to feel it's useless until there is a stronger anti-spam system somehow. Luke, what is your opinion ? I'd like to help but my knowledge of php is really basic and you must first authorize me to do server side modifications. Are my messages appearing as a single line? I thought that had been fixed, sorry. I don't know what to try next... I think the captcha plug-in would be the best option, but I don't know any PHP either. What is your SourceForge user name, so I can add you as a developer? My SourceForge user name is alexd31. I'll try to follow the instructions at http://wikkawiki.org/FreeCap since it seems the easiest to integrate with wikka. You should now have access to the project web space. Luke Thanks. Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] Spam on the wiki, it happened again :(
Hi, Once again the wiki was spammed and it's the 3rd time in less than a week :( I'll clean the mess for now, but I'm beginning to feel it's useless until there is a stronger anti-spam system somehow. Luke, what is your opinion ? I'd like to help but my knowledge of php is really basic and you must first authorize me to do server side modifications. Another possibility would be to move the wiki to the MoinMoin engine, I've read there's an anti-spam plug-in called HoneyPot that don't use captchas (useful for blind people). Don't know if it's efficient, but I've already played with MoinMoin and found it really great. Please, I'd like to hear what you think the best to do. With regards, Alexandre. PS I've came with an (unrelated) idea that would benefit the PythonCE community: it is to have a common repository for PythonCE related stuff (scripts, tools, ports, extension binaries, ...), it could be a simple ftp at first or a website like the official Python CheeseShop. If someone has a bit of bandwidth to share or suggestions, they are all welcome ;) ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] Spam on the wiki
Once again the PythonCE Wiki was spammed, fortunately no data seems to be lost, and with the history feature it should be easy to revert back. I'am almost sure the modifications are done by a web bot not a human person. Luke, would it be easy to use a captcha system in the Wiki (when creating an account, or editing a page) ? Could you also close the accounts of the users who posted the spam ? Any ideas suggestions to prevent spamming is welcome. Alexandre. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] PyCrypto binaries -- nearly there..
I will try to run paramiko+pycrypto myself, i strongly suspect paramiko to call sys.exit on some condition, so in the meantime you can try to insert this in the beginning of your code (before any other import): import sys class ExitError(Exception): pass def dummy_exit(code=0): raise ExitError() sys.exit = dummy_exit and see if it raises an exception instead of quitting, then you can track-down the source to locate the condition ... I'm not sure if it will help, but it may be worth trying. Alexandre. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] PyCrypto binaries -- nearly there..
Marc Horst [EMAIL PROTECTED] a écrit : Hi Alexandre, That is a good hint! I tried it and here is the result: Python 2.5 (release25-maint, Dec 19 2006, 23:22:00) [MSC v.1201 32 bit (ARM)] on win32 execfile('\\Flash Disk\\Programmabestanden\\Python25\\Lib\\demo_pda.py') *** Unable to open host keys file *** WARNING: Unknown host key! *** Caught exception: type 'exceptions.ImportError': No module named mmap Traceback (most recent call last): File \Flash Disk\Programmabestanden\Python25\Lib\demo_pda.py, line 166, in module agent_auth(t, username) File \Flash Disk\Programmabestanden\Python25\Lib\demo_pda.py, line 53, in agent_auth agent = paramiko.Agent() File \Flash Disk\Programmabestanden\Python25\lib\paramiko\agent.py, line 68, in __init__ import win_pageant File \Flash Disk\Programmabestanden\Python25\lib\paramiko\win_pageant.py, line 27, in module import mmap ImportError: No module named mmap Traceback (most recent call last): File \Flash Disk\Programmabestanden\Python25\Lib\demo_pda.py, line 190, in module sys.exit(1) File \Flash Disk\Programmabestanden\Python25\Lib\demo_pda.py, line 41, in dummy_exit raise ExitError() ExitError I looked on my __PC__ (as I guessed that if it worked on my PC, mmap should be called here too) for a file named mmap and for files with as content mmap, but found only test_mmap.py. So I'm not sure what should be concluded from this. Maybe that on my __PDA__ a different execution path is used, in which mmap is/should be imported, which results in the error message above. Maybe you can conclude more from this error message. Regards, Marc [EMAIL PROTECTED] wrote: I will try to run paramiko+pycrypto myself, i strongly suspect paramiko to call sys.exit on some condition, so in the meantime you can try to insert this in the beginning of your code (before any other import): import sys class ExitError(Exception): pass def dummy_exit(code=0): raise ExitError() sys.exit = dummy_exit and see if it raises an exception instead of quitting, then you can track-down the source to locate the condition ... I'm not sure if it will help, but it may be worth trying. Alexandre. The mmap module hasn't been ported yet to PythonCE, this afternoon I have tried to use paramiko on my pda and found the same error. I have managed to bypass it by modifying agent.py, around line 67 make the following modifications : Replace : ... elif sys.platform == 'win32': import win_pageant ... by ... elif sys.platform == 'win32': if os.name == 'ce': return import win_pageant ... this deactivates the Agent features of paramiko but it makes ssh connection possible ! Besides, I suggest you to use the new SSHClient class that basically wraps the whole demo script, I had success with the following script : from paramiko import SSHClient, AutoAddPolicy def main(): client = SSHClient() client.set_missing_host_key_policy(AutoAddPolicy()) client.connect('the server', username='', password='') stdin, stdout, stderr = client.exec_command('ls -l') print stdout.read() client.close() if __name__ == '__main__' : main() Good continuation on your project ;) Alexandre. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] PyCrypto binaries
Johnny deBris [EMAIL PROTECTED] a écrit : Matt S. wrote: since I've not yet noticed the wxPython and ctypes binaries available for 2.5). ctypes seems to be part of the build... Works for me on 2.5 at least. ;) Cheers, Guido Yes, ctypes is now a part of Python standard library thanks to Thomas Heller. As for wxPython, I maybe gonna look in compiling it for 2.5. Although I was disappointed by the difficulty to run it due to the large memory footprint (which is perfectly understandable if you think that the swig bindings are a python layer over a c++ layer which is in turn a layer over a c++ library that wraps GUI native calls) a lot of people seems to use it on the list and I do love the wxPython desktop version, so i'll see if the compilation goes easy ... Besides, any tricks on reducing the memory usage is welcome ;) Regards, Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] PyCrypto binaries
[EMAIL PROTECTED] [EMAIL PROTECTED] a écrit : [EMAIL PROTECTED] wrote: Johnny deBris [EMAIL PROTECTED] a écrit : Matt S. wrote: since I've not yet noticed the wxPython and ctypes binaries available for 2.5). ctypes seems to be part of the build... Works for me on 2.5 at least. ;) Cheers, Guido Yes, ctypes is now a part of Python standard library thanks to Thomas Heller. As for wxPython, I maybe gonna look in compiling it for 2.5. It would be _REALLY_ cool. http://wxpyce.wikispaces.com/ is a try, but the binaries do not work for PythonCE 2.5 / wm5/6. I ever wanted to try following the Build-process-instructions with the latest sdk's (out of the hope, it will then run under 2.5 / wm5/6) but I have no x86-machine and no windows. Using wxwidgets with latest versions of python / wm would be very, very cool! Regards, Alexandre Thanks, Mirko ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce Hello Mirko, I will surely compile wxPyCe for 2.5 these days, as many people should be interested in. However, by experience, don't expect to be able to run wx+pycrypto+numpy+whatever c extension at the same time unless you have a very recent WM 6.0 device (it's a known problem of lack of virtual adressing space for dlls, that has been expanded from 32 MB to 1 GB in WM 6.0 kernel). That's the reason why I have ported Venster (and now secretly working on something FAR more pythonic high level for embedded gui development), and not because I dislike wx or I wanted to reivent the wheel. It'll be cool if PythonCE people could have the choice between portability (TKinter/wx) at the cost of non-native rendering or high memory consumption or something more specific but that delivers native rendering with a small footprint at the cost of learning something new (VensterCE that may be phased out by my new toolkit). My opinion is that splitting backend frontend of an application helps portability, and rewriting the frontend for an handeld with its small screen size and its own design guidelines should not be a big deal if the toolkit is easy to learn (and better, pythonic), the biggest advantage of the new toolkit over venster. This is only my opinion, and people are, of course, free to see otherwise and choose what they think best for their own development. That's why I will compile wxPyCe for 2.5 and still support ctypes gui toolkit at the same time. Regards, Alexandre. PS : If someone want to give a try, help, give suggestions, or learn more about the new toolkit, I'll be glad to send you my current work with an example application. The reason why I call the new toolkit new toolkit is because I've wanted to call it first pycegui, but realized that it was the bindings of CEGUI for pygame ! Reminds me something about Pyro ;) ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] PyCrypto binaries
Hi Marc, You're a lucky one, I have built binaries of PyCrypto for PythonCE 2.4 and 2.5 just a week ago ! A public download will be soon up on http://www.voidspace.org.uk/ thanks to Fuzzyman that already host binaries for desktop windows. Since I'm on vacation, I only have my local release for 2.5 at hand. So wait for the public link or mail me if you're interested in the 2.5 version. @Luke Dunstan Thank you for adapting the scons build environment to the wince platform, it makes compiling python extension much easier and more maintanable than the project oriented view of the embedded tools (especially for packages that contains many C extensions and would need as many projects as extensions). It is also easier to switch python 2.4/2.5 includes and libs for the whole script. If you don't mind I will write an article on the wiki on how I build extensions with scons. @Everyone I have also built binaries for numpy 1.0, unfortunately I havn't been able to compile the random facilities but everything else seems to work fine (core, fft and linalg), for now no public release but you can mail me and i'll send you the files. Have a nice summer, Alexandre. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] Build environment for PythonCE
Hi Stewart, Maybe you should include python headers before the regular ones. To do so with evc4 : go to the menu Tools-Options, go to the tab Directories and choose include, then add an entry to the directory that contain python.h just before the regular includes. i've been able to compile a few extensions with a such config, for instance numarray, so I'm pretty sure this config is correct. Furthermore if you want to interface the SH* functions, you can also do so directly in python with ctypes, for instance : from ctypes import cdll; cdll.aygshell.SHFullScreen(...). For other example of such intefacing you can get a look at vensterce that uses the most common windows procedures. Alex. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] GSM info
Hello, I've never heard of an existing GPS module for PythonCE, however it should be possible to access the GPS API via ctypes, or communicate directly to the device via the COM port with pyceserial. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] Pypoom initial release
The first release of pypoom is online. Pypoom is a module that gives you access to Pocket Outlook PIMs. For details, see the article i've published on the wiki (http://pythonce.sf.net/Wikka/PIMs). ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] VensterCE beta
Hello everyone, You can check the new release on sourceforge : http://sourceforge.net/projects/vensterce Here is the change log : - Added venster.layout : a BoxSizer class to manage the layout of controls, see the tutorial to learn how use it. - Added venster.newdialog : a ModalDialog that closely emulates the behaviour of modal dialogs but that can be build like any other vensterce window. - Various bugfixes and additions (constants and function that were missing). - Improved WinCE 4.20 compatibility thanks to Jan Ischebeck. Bonus : PyCEIde is now built upon scintilla - syntax coloration, code folding and other goodies ... As usual feedback is always welcome. Alex. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] VensterCE release
A fresher version of vensterce is up on sourceforge (http://sourceforge.net/projects/vensterce/). Various glitches have been fixed and sip handling is enhanced. A control EditBox is implemented in venster.lib.edit and gives a text control with classic undo/copy/paste context menu. The IDE is updated (and englishised) and shows an example of integrating HTML control in your apps. Enjoy ;-) ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] VensterCE release
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. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
Re: [PythonCE] VensterCE release
Brian Brown [EMAIL PROTECTED] a écrit : On Jan 30, 2007, at 8:55 AM, [EMAIL PROTECTED] 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@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. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[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. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce
[PythonCE] VensterCE release
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. ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce