Re: [PythonCE] How to determine special folder location

2010-03-28 Thread Alexandre Delattre
7;s neither SHGetFolderPathA nor SHGetFolderPathW in > ctypes.windll.coredll. > Has someone a workaround to solve this problem? > > Cheers rodi. > ___ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/lis

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 ctyp

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 Sent: samedi 27 décembre 2008 09:09 To: pythonce@python.org Subject: [PythonCE] Por

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 : 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 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. Currently there is no os.system function but a systema function that can be used this way: systema('\\full\\path\\to\\program.exe', ['arg

Re: [PythonCE] pass Python string to C char *

2008-08-22 Thread Alexandre Delattre
> Well, it works! I realised I had not updated the DLL on my device (that's > what comes of working late). Just for the record, I have tested two methods, > and both work fine to pass a string to a C dll requiring a char * input: 1. use mystr1=c_char_p("mystring") 2. use mystr2=create_string_bu

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 mo

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 behavi

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

2008-08-13 Thread Alexandre Delattre
Igor, From what you say, I don't see what you could have done wrong. can you send me the full source code so I can give a try ? Alexandre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce

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 ppyg

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

2008-08-04 Thread Alexandre Delattre
Hi, What I meant is that if you can run python.exe without crashing, it seems obvious to me that this code is compatible with your processor (else the .exe would refuse to start, or you would have very strange results and won't be able to enter a single command). To me, the processor seems not

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

2008-07-31 Thread Alexandre Delattre
C 2003 and Windows Mobile, while it seems from screenshot your device has the 'classic' wince interface. Regards, Alexandre - Message d'origine - De: Lachezar Dobrev <[EMAIL PROTECTED]> Env: jeudi 31 juillet 2008 17:05 À: Alexandre Delattre <[EMAIL PROTECTED]&g

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] Python CE on a Intel XScale industrial device.

2008-07-28 Thread Alexandre Delattre
Hello, I'm doubting the problem comes from the processor type, as you were able to run the Python 2.2 port which is also compiled for arm. Unfortunately CeGCC support only arm platform yet (the two cross-compilation targets available are arm-wince-cegcc and arm-wince-mingw32) so I'm afraid it

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 pos

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] 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
David Williams wrote: I have replaced the lines as suggested and now get the error: :[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 Python

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, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run") by: aKey = OpenKey(HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Ru

Re: [PythonCE] The State of Affairs

2008-07-11 Thread alexandre . delattre
When I was working on PythonCE years ago I had the same concerns. I am wondering if Python eggs, easyinstall and setuptools could be put to use for this. Rather than starting from scratch. I think easyinstall at least gets you the dependency checking, downloading (non-graphical) and instal

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 wi

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

2008-07-10 Thread Alexandre Delattre
Hello, Alexandre. I have begun testing some ideas using the PPYGUI and find it very easy to work with. However, I would like to ask if there is a way to know when the user has pressed the 'X' button in the top right of the window to close the app? The reason I ask, is that when I run some ppygu

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 b

Re: [PythonCE] PPyGui SVN & PPyGui-win32

2008-07-09 Thread Alexandre Delattre
Is there any way to have two buttons on the bottom? As it is I can only use one button (on the left) and one menu (on the right). Or is there a way to change the text of the button after it has been displayed? So far PPygui allow only this menu bar layout, but I'd like to make a more flexible

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 instal

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 __

[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 https://svn.nanl.de/sv

Re: [PythonCE] Comtypes installation problem...

2008-06-27 Thread Alexandre Delattre
Nice, Maybe there some other part of comtypes that would require the missing SafeArrayGetIID function and would fail at runtime (I mean some functions or classes that use this internally). I'll have a little search through the code and use a os.name switch if necessary. Best regards, Alexandre

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 subm

[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 . Direct download is available from sourceforge at . The install process is graphically based to e

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-07 Thread Alexandre Delattre
> Is it possible to use this syntax: > >s = Serial(5) > >(0 = COM1, so 5 = COM6) ? I don't think you can with the current ceserial, but you can always do something like this: if isinstance(port, int): port = "COM%i:" %port elif insinstance(port, str): if not port.endswith(":"):

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=FR&gid=6&pid=ARF32+Data > > Do you think the com will

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. http://docs.pyt

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 s

[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] Wxython for PythonCE 2.5

2007-11-12 Thread Alexandre Delattre
Hi, > For what concerns me, I use Python because I have absolutely no > knowledge of C programming in Windows, neither the applications needed > to develop in C under Windows CE... neither the time to learn, sorry. > I'll stick to Tkinter until I'll be able to install Linux on my > smartphone...

[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 h

[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 http://

[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 a

[PythonCE] Threads / network

2007-10-22 Thread Alexandre Delattre
Hi, 1) Yes, the thread and threading module are portable wrappers around the os threading facilities. This means they suffer from the same limitation of the os, I can remember there's about max 32 concurrent threads possible on wince (vs ~1000 on the desktop) 2) Yes, all you have to do is to b

Re: [PythonCE] General questions

2007-10-21 Thread alexandre . delattre
Hi, by USB Master, I guess you mean USB Host, some Acer models like my n321 have this feature so you can plug an usb stick or hard disk to access data. As far as I know, communications with PythonCE can be made : - by network, using the standard socket module (useful for wifi) - by seria

[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, v

[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 nothing

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 :> > >>

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

[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 you

[PythonCE] Spam on the wiki

2007-08-13 Thread alexandre . delattre
@Luke Dunstan: I've seen you have cleaned the wiki, if you have time you can get a look on this page : http://wikkawiki.org/FreeCap, it's about integrating a captcha system with Wikka. Thanks, Alexandre. ___ PythonCE mailing list PythonCE@python.org

[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 creati

Re: [PythonCE] Remotely uninstalling application

2007-08-07 Thread alexandre . delattre
Hello Petri, This module should do the trick (assume you have ctypes): uninstall.py : from ctypes import * DMProcessConfigXML = cdll.aygshell.DMProcessConfigXML XML = u'''\ ''' def uninstall(app_name): ''' Removes the program designated

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') > *** Unab

[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): r

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... W

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 stand

[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 http:

[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 http://mai

[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 clo

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 up

[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

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 mos

[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

[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. ___ Py

[PythonCE] VensterCE

2006-11-06 Thread Alexandre Delattre
on it, or something compatible with wxWidgets for portability. Alexandre Delattre ___ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce