[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] Wrapping a custom Model into Python
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2006-08-16 19:33:34
Message-ID: 20060816193334.GA27316 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]
On 16.08.06 15:14:18, Tobias Rundström wrote:
> What is the best practice of wrapping a custom QAbstractItemModel into PyQt? I
> developed a ItemModel that I want to use in a C++ program aswell as in my
> Python program, the best way seems to be to write it in C++ and then wrap it
> into PyQt, this allows sharing the model code. What is the best way of doing
> this?
I think you're looking for sip and it's documentation. That's what is
used to build PyQt and thus it shouldn't be too hard to use for a code
model. I'm not sure but you might need to put the model into a shared
library.
Andreas
--
Courage is your greatest present need.
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic