[PythonCE] Qt-wince

2007-10-22 Thread Frédéric Mantegazza

I saw that Trolltech is releasing a WinCE version of Qt (there is a
preview available on their web site).

Do you know if a PyQt port could be considered on such plateform? Does
anyone here already have looked this way?

--
   Frédéric
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


[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 bind your server, or connect your 
socket to the loopback interface via the ip 127.0.0.1

Regards,
Alexandre
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Threads / network

2007-10-22 Thread Frédéric Mantegazza

Le 22/10/2007, "Alexandre Delattre"
<[EMAIL PROTECTED]> a écrit:

>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 bind your server, or connect your
>socket to the loopback interface via the ip 127.0.0.1

Ok, thanks :o)

--
   Frédéric
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


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


Re: [PythonCE] Qt-wince

2007-10-22 Thread Frédéric Mantegazza

Le 22/10/2007, "Alexandre Delattre"
<[EMAIL PROTECTED]> a écrit:

> 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

Ok, I see. Not an easy task :o/

--
   Frédéric
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] General questions

2007-10-22 Thread Luke Dunstan



From: Frédéric Mantegazza<[EMAIL PROTECTED]>
To: pythonce@python.org
Subject: Re: [PythonCE] General questions
Date: Sun, 21 Oct 2007 16:55:18 +0200

On dimanche 21 octobre 2007, [EMAIL PROTECTED] wrote:

> If you want to stick with USB, I think you should try to create a
> virtual serial port for usb with the driver given at
> http://www.ftdichip.com/Drivers/VCP.htm (don't know if it works for
> all devices) and use ceserial. Or maybe there's some drivers to setup
> ip over usb, then you can use the regular socket module.

Yes, my idea was to use a FTDI chip. But I'm afraid I don't have the
knowledge to develop a driver undre WindowsCE...



Look again at the linked FTDI page: they already provide a Windows CE 
driver.


Luke


___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] General questions

2007-10-22 Thread Frédéric Mantegazza
On lundi 22 octobre 2007, Luke Dunstan wrote:

> >Yes, my idea was to use a FTDI chip. But I'm afraid I don't have the
> >knowledge to develop a driver undre WindowsCE...
>
> Look again at the linked FTDI page: they already provide a Windows CE
> driver.

Great! Thanks.

-- 
   Frédéric

   http://www.gbiloba.org

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce