[PythonCE] Re: Python on Axim v50 / XScale

Brad Clements bkc at murkworks.com
Mon Dec 13 18:03:20 CET 2004


On 13 Dec 2004 at 16:38, Voidspace wrote:

> There is a pythonCE version of apache which will run as localhost. 
> Normally winCE has no concept of localhost - so this is your best bet. I
> don't have the URL, but google should find it.
> 
> For testing on the desktop Xitami is a great server to use as localhost.
> You'll then be programming CGIs to go with it.

Ugh, this requires starting up python on each request.

What I did on the desktop was to use a modified dibler.py (from the spambayes project). I 
combined that with SimpleTAL.

Then, I use venster to create a simple frame application that uses ATL to embed IE as the 
window contents.

You should see the 'test browser' application in venster examples.  I just start a dibbler 'http 
server' instance in it's own thread, then tell embedded IE to navigate to the local server's 
address and port.

I'm sure there's no problem getting dibbler and SimpleTAL to run on pythonce. For the 
embedded IE browser, probably win32gui could do it if the ATL hack works on CE.

Another option is to use the shell to launch IE to your URL. The only problem there is 
figuring out when to quit your application. I'm not sure if you'll be able to use the process 
handle on CE, I haven't tried it.



-- 
Brad Clements,                bkc at murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
http://www.wecanstopspam.org/                   AOL-IM: BKClements



More information about the PythonCE mailing list