Re: [PyQt] SIP - %Exception for StopIteration

2008-08-05 Thread Jonny Morrill
Thank you both for your help!! @Matt: WOW! I never new that you could create an iterable object from only the __len__ and operator[] functions!! I must have missed that when I was searching through the python documentation for iterator objects. It is not clear to me which is quicker, the only dif

Re: [PyQt] SIP - %Exception for StopIteration

2008-08-05 Thread Giovanni Bajo
On Tue, 2008-08-05 at 16:43 -0700, Jonny Morrill wrote: > Hello, > > I have just started using sip to create python extensions for a few of > my C++ libraries. I have had success with most everything I wanted to > do. There is one thing I could use some help with, though. I wanted to > use one of

Re: [PyQt] SIP - %Exception for StopIteration

2008-08-05 Thread Matt Newell
On Tuesday 05 August 2008 16:43:36 Jonny Morrill wrote: > Hello, > > I have just started using sip to create python extensions for a few of my > C++ libraries. I have had success with most everything I wanted to do. > There is one thing I could use some help with, though. I wanted to use one > of m

[PyQt] SIP - %Exception for StopIteration

2008-08-05 Thread Jonny Morrill
Hello, I have just started using sip to create python extensions for a few of my C++ libraries. I have had success with most everything I wanted to do. There is one thing I could use some help with, though. I wanted to use one of my C++ classes as if it were an iterable python object. To get this

[PyQt] Problems with Sonnet Highlighter

2008-08-05 Thread Albert Cervera i Areny
I wanted to give Sonnet Highlighter a try and I find that it simply doesn't work for me (debian unstable packages), it gives: Traceback (most recent call last): File "test-sonnet.py", line 10, in Sonnet.Highlighter( edit ) TypeError: argument 1 of Highlighter() has an invalid type I attac

[PyQt] KDE API docs for us Pythonists

2008-08-05 Thread Simon Edwards
From my blog: http://www.kdedevelopers.org/node/3593 After the kdebindings meeting about a month ago in Berlin, I had a 8-ish hour long trip back on the train from Berlin to Nijmegen. Deutsche Bahn's trains are rather civilised and have power on board for all your laptop charging needs (provi

[PyQt] Bug with CDPATH

2008-08-05 Thread Martin Blais
Hi, There has been a bug with building sip for a while, which manifests itself both on my Linux and Mac setups: tangerine:~/src/qt/sip-4.7.7-snapshot-20080726$ make cd: 1: can't cd to sipgen make[1]: Entering directory `/home/blais/src/qt/sip-4.7.7-snapshot-20080726' cd: 1: can't cd to s

Re: [PyQt] Copying QStandardItem

2008-08-05 Thread Arve Knudsen
Sounds good, cheers. Arve On Tue, Aug 5, 2008 at 5:10 PM, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Tue, 5 Aug 2008 17:00:37 +0200, "Arve Knudsen" <[EMAIL PROTECTED]> > wrote: >> On Tue, Aug 5, 2008 at 4:42 PM, Phil Thompson >> <[EMAIL PROTECTED]> wrote: >>> On Tue, 5 Aug 2008 16:15:49 +0200,

Re: [PyQt] Copying QStandardItem

2008-08-05 Thread Phil Thompson
On Tue, 5 Aug 2008 17:00:37 +0200, "Arve Knudsen" <[EMAIL PROTECTED]> wrote: > On Tue, Aug 5, 2008 at 4:42 PM, Phil Thompson > <[EMAIL PROTECTED]> wrote: >> On Tue, 5 Aug 2008 16:15:49 +0200, "Arve Knudsen" > <[EMAIL PROTECTED]> >> wrote: >>> Is it problematic to copy QStandardItem? When I use copy

Re: [PyQt] Copying QStandardItem

2008-08-05 Thread Arve Knudsen
On Tue, Aug 5, 2008 at 4:42 PM, Phil Thompson <[EMAIL PROTECTED]> wrote: > On Tue, 5 Aug 2008 16:15:49 +0200, "Arve Knudsen" <[EMAIL PROTECTED]> > wrote: >> Is it problematic to copy QStandardItem? When I use copy.copy, >> accessing the resulting object results in a RuntimeError with the >> message

Re: [PyQt] Copying QStandardItem

2008-08-05 Thread Phil Thompson
On Tue, 5 Aug 2008 16:15:49 +0200, "Arve Knudsen" <[EMAIL PROTECTED]> wrote: > Is it problematic to copy QStandardItem? When I use copy.copy, > accessing the resulting object results in a RuntimeError with the > message 'underlying C/C++ object has been deleted'. QStandardItem has no pickle suppor

[PyQt] Copying QStandardItem

2008-08-05 Thread Arve Knudsen
Is it problematic to copy QStandardItem? When I use copy.copy, accessing the resulting object results in a RuntimeError with the message 'underlying C/C++ object has been deleted'. Arve ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.rive