[PyQt] Fwd: Re: [wizard] done, accept, reject one more time for the records

Preisig, Heinz A Heinz.Preisig at ChemEng.NTNU.NO
Thu Aug 12 15:39:05 BST 2010


PS:

I just checked and found that I also tried:

def done(self):
     ...
     QtGui.QWizard.close(self)

and that did not work either.

Regards, Heinz

On 08/12/2010 04:10 PM, "Sybren A. Stüvel" wrote:
> On 12-8-2010 15:30, Preisig, Heinz A wrote:
>    
>> I thought though I essentially tried it with
>>
>>             QtGui.QWizard(self).done(r)
>>      
> You can't use C-style casting in Python. What QtGui.QWizard(self) does
> is create a new QWizard with "self" as the parent. It then proceeds to
> call done(r) on that new QWizard instance. Then the instance is cobbled
> up by the garbage collector.
>
> I think what you want is to call the unbound method:
>
>    QtGui.QWizard.done(self, r)
>
> Cheers,
> Sybren
>    

-- 


Heinz A Preisig
Professor of Process Systems Engineering 	Private:
Øvre Bakklandet 62 B, 7013 Trondheim, Norway
Department of Chemical Engineering
Norwegian University of Science and Technology
N -- 7491 Trondheim, Norway 	Tel direct: +47 735 92807
Tel mob: +47 9754 1334
e-mail: Heinz.Preisig at chemeng.ntnu.no <mailto:Heinz.Preisig at chemeng.ntnu.no>
web: www.chemeng.ntnu.no\~preisig <http://www.chemeng.ntnu.no/%7Epreisig>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100812/396a61ad/attachment.html>


More information about the PyQt mailing list