[PyQt] Wrap C++ QWidget Subclass for use in PyQt4
Kovid Goyal
kovid at kovidgoyal.net
Tue Jul 29 20:33:33 BST 2008
That's because PhotoFlow tries to only load a few images (to the left and right
of the current image) at a time. You can do the same thing in the pictureflow
widget in calibre by sub classing the FlowImages class which represents an
abstract data model. Indeed, calibre uses that class to load images on demand
from a database.
Kovid.
On Tuesday 29 July 2008 08:00:33 Tyler Distad wrote:
> On Mon, Jul 28, 2008 at 2:43 AM, kovid <kovid at kovidgoyal.net> wrote:
> > There's a wrapped version in the calibre source tree (search for calibre
> > on launchpad.net)
> >
> > Kovid.
>
> I've downloaded and used the widget from Kovid's Calibre project
> (http://launchpad.net/calibre). Unfortunately, the pictureflow widget
> wrapped in that project seems to be an older version of Ariya
> Hidayat's code. (http://code.google.com/p/pictureflow/) It's a rather
> inefficient version: Using the python-wrapped version and the
> cover_flow.py script from Calibre, loading 400 small images requires
> 342 MB of RAM. Using Ariya's extensions to PictureFlow, that he has
> named PhotoFlow (http://code.google.com/p/photoflow/), loading that
> same directory requires only 11 MB. The actual file size of this
> directory is 13.6 MB.
>
> Because I seem utterly incapable of preparing proper SIP bindings, I
> have completely translated Ariya's PhotoFlow code to Python. The only
> piece I am lacking is a Python-wrapped version of the latest version
> of pictureflow from http://code.google.com/p/pictureflow. However, I
> cannot seem to bind his code no matter what I try. I believe my SIP
> binding is written correctly and have attached it to this email, but
> there seems to be something else wrong in either my configure.py or in
> the readiness of the pictureflow code for binding.
>
> If anyone can offer help or advice on how to bind the pictureflow
> widget, I would be immensely grateful.
>
> Tyler Distad
>
> Both files I have attached are modified versions of Kovid's from the
> Calibre source.
>
>
> !DSPAM:3,488f30a033969229514251!
--
_____________________________________
Kovid Goyal MC 452-48
California Institute of Technology
1200 E California Blvd
Pasadena, CA 91125
cell : +01 626 390 8699
office: +01 626 395 6595 (449 Lauritsen)
email : kovid at theory.caltech.edu
web : http://www.kovidgoyal.net
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080729/ce3c8477/attachment.bin
More information about the PyQt
mailing list