<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
PS:<br>
<br>
I just checked and found that I also tried:<br>
<br>
def done(self):<br>
...<br>
QtGui.QWizard.close(self)<br>
<br>
and that did not work either. <br>
<br>
Regards, Heinz<br>
<br>
On 08/12/2010 04:10 PM, "Sybren A. Stüvel" wrote:
<blockquote cite="mid:4C6400CA.2050809@stuvel.eu" type="cite">
<pre wrap="">On 12-8-2010 15:30, Preisig, Heinz A wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I thought though I essentially tried it with
QtGui.QWizard(self).done(r)
</pre>
</blockquote>
<pre wrap="">
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
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>business</title>
<br>
<br>
<table style="text-align: left; width: 785px; height: 124px;" border="1"
cellpadding="2" cellspacing="1">
<tbody>
<tr>
<td style="width: 50%; vertical-align: top;"><span
style="font-weight: bold;">Heinz A Preisig</span><br>
Professor of Process Systems Engineering</td>
<td style="width: 50px; vertical-align: top;"><span style=""
lang="EN-US">Private: <br>
Øvre Bakklandet 62 B, 7013 Trondheim, Norway<br>
</span></td>
</tr>
<tr>
<td style="vertical-align: top;"><span style="font-style: italic;">Department
of
Chemical Engineering</span><br>
<div style="text-align: left;"><span
style="font-weight: bold; font-style: italic;"></span><span
style="font-weight: bold; font-style: italic;">Norwegian
University of Science and
Technology </span><span
style="font-size: 12pt; font-family: "Times New Roman";"></span><br>
</div>
<span style="font-size: 12pt; font-family: "Times New Roman";"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:45pt;
height:45pt'>
<v:imagedata src="file:///C:\DOCUME~1\preisig\LOCALS~1\Temp\msohtml1\01\clip_image001.png"
o:title=""/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></span><span
style="font-weight: bold; font-style: italic;"></span><span
style="font-style: italic;">N – 7491 Trondheim, Norway</span></td>
<td style="vertical-align: top;">Tel direct:<span style="">
</span> <span style="" lang="EN-US">+47 <span style=""> </span><span
style=""> </span>735
92807<span style=""><br>
</span></span><span style="" lang="EN-US">Tel mob:<span style="">
</span> +47 <span style=""> </span>9754
1334<br>
</span><span style="" lang="EN-US">e-mail:<span style="">
</span><a href="mailto:Heinz.Preisig@chemeng.ntnu.no">Heinz.Preisig@chemeng.ntnu.no</a><br>
</span><span style="" lang="EN-US">web:<span style="">
</span><a href="http://www.chemeng.ntnu.no/%7Epreisig">www.chemeng.ntnu.no\~preisig</a></span></td>
</tr>
</tbody>
</table>
<span style="font-weight: bold;"></span><br>
<span style="" lang="EN-US"></span>
</div>
</body>
</html>