Re: [PythonCE] Issuing WM_COMMAND

2009-05-27 Thread Alexandre Delattre
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

Re: [PythonCE] Porting Modules

2008-12-27 Thread Alexandre Delattre
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:

Re: [PythonCE] Updating Python version?

2008-11-03 Thread Alexandre Delattre
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.

Re: [PythonCE] HTTPS support in httplib

2008-10-07 Thread Alexandre Delattre
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?

2008-09-06 Thread Alexandre Delattre
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',

Re: [PythonCE] pygame / distutils

2008-08-15 Thread Alexandre Delattre
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

Re: [PythonCE] Programaticly moving cursor in multi-line edit control

2008-08-14 Thread Alexandre Delattre
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

Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-08-05 Thread Alexandre Delattre
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

Re: [PythonCE] pygame / distutils

2008-07-28 Thread Alexandre Delattre
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

Re: [PythonCE] The State of Affairs

2008-07-20 Thread Alexandre Delattre
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

2008-07-20 Thread Alexandre Delattre
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

Re: [PythonCE] Comtypes installation problem...

2008-07-19 Thread Alexandre Delattre
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

2008-07-11 Thread alexandre . delattre
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)

Re: [PythonCE] ~Name not defined error

2008-07-11 Thread Alexandre Delattre
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

Re: [PythonCE] The State of Affairs

2008-07-10 Thread Alexandre Delattre
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

Re: [PythonCE] PPYGUI - parent window and closing it

2008-07-10 Thread Alexandre Delattre
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

Re: [PythonCE] PPyGui SVN PPyGui-win32

2008-07-08 Thread Alexandre Delattre
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

Re: [PythonCE] PPyGui SVN PPyGui-win32

2008-07-08 Thread Alexandre Delattre
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

[PythonCE] PPyGui SVN PPyGui-win32

2008-06-30 Thread alexandre . delattre
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

Re: [PythonCE] Comtypes installation problem...

2008-06-27 Thread Alexandre Delattre
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

[PythonCE] PocketPyGui

2008-04-23 Thread alexandre . delattre
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

Re: [PythonCE] 2.6 update

2008-03-22 Thread Alexandre Delattre
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.

Re: [PythonCE] General questions

2008-01-07 Thread Alexandre Delattre
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

Re: [PythonCE] General questions

2008-01-03 Thread Alexandre Delattre
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

Re: [PythonCE] Tkinter gif problem on PythonCE

2007-12-03 Thread Alexandre Delattre
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

Re: [PythonCE] lxml

2007-12-03 Thread Alexandre Delattre
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.

[PythonCE] PythonCe suddlenly closes

2007-11-27 Thread Alexandre Delattre
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

[PythonCE] Launching external programs

2007-10-25 Thread Alexandre Delattre
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

[PythonCE] win32gui missing

2007-10-25 Thread Alexandre Delattre
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

[PythonCE] Qt-wince

2007-10-22 Thread Alexandre Delattre
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

[PythonCE] PythonCE on Smartphone (WM6)

2007-10-18 Thread Alexandre Delattre
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,

[PythonCE] Wiki and spam comments

2007-10-09 Thread Alexandre Delattre
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] Smartphone support (Blackjack WM5)

2007-09-06 Thread Alexandre Delattre
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

Re: [PythonCE] Spam on the wiki, it happened again :(

2007-08-19 Thread alexandre . delattre
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

Re: [PythonCE] Spam on the wiki, it happened again :(

2007-08-19 Thread alexandre . delattre
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

[PythonCE] Spam on the wiki, it happened again :(

2007-08-18 Thread alexandre . delattre
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

[PythonCE] Spam on the wiki

2007-08-12 Thread alexandre . delattre
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

[PythonCE] PyCrypto binaries -- nearly there..

2007-08-04 Thread alexandre . delattre
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):

Re: [PythonCE] PyCrypto binaries -- nearly there..

2007-08-04 Thread alexandre . delattre
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

Re: [PythonCE] PyCrypto binaries

2007-07-27 Thread alexandre . delattre
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

Re: [PythonCE] PyCrypto binaries

2007-07-27 Thread alexandre . delattre
[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. ;)

[PythonCE] PyCrypto binaries

2007-07-26 Thread alexandre . delattre
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

Re: [PythonCE] Build environment for PythonCE

2007-06-16 Thread alexandre . delattre
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

[PythonCE] GSM info

2007-04-27 Thread Alexandre Delattre
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

[PythonCE] Pypoom initial release

2007-04-25 Thread Alexandre Delattre
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

[PythonCE] VensterCE beta

2007-04-06 Thread alexandre . delattre
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

Re: [PythonCE] VensterCE release

2007-02-01 Thread alexandre . delattre
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

[PythonCE] VensterCE release

2007-01-30 Thread alexandre . delattre
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

Re: [PythonCE] VensterCE release

2007-01-30 Thread alexandre . delattre
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

[PythonCE] Re : numarray or numpy for WinCE

2007-01-30 Thread alexandre . delattre
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

2007-01-29 Thread alexandre . delattre
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. ___