<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
there are now some hints to why the problem occurs. The problem, not
necessary error, is in the executive. It signals a excepthook and
dispatches a message, which may or may not be meaningful, but likely
not. Search on the net indicates that the problem is in the python
executive causing a stack problem, probably an overflow.<br>
<br>
Probably not much one can do about at least not from the user end.<br>
<br>
Interesting to the community may be that the problem is reduced by
not using the method parentItem() in Qt's graphics system. Once I
passed the parent as a parameter, the big bulk of error messages
disappeared. Current status is that the message only appears in
connection with using the rubber band. So it is still there, but it
has greatly reduced and most important of all: the error is not in
the user code, except than there is something in the choice of the
configuration of the graphics system or the way the problem is
solved.<br>
<br>
Cheers,<br>
Heinz Preisig<br>
<br>
On 2012-05-03 10:32, Heinz A Preisig wrote:
<blockquote cite="mid:4FA242AE.4090607@chemeng.ntnu.no" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hi,<br>
<br>
I have been taking out an old program that I wrote 2 years ago
that uses QGraphicsItem in a graph application. I get an error<br>
TypeError: 'int' object is not callable<br>
which I cannot localise. <br>
<br>
Tried lots of things with the debugger, but do not get anywhere.
Cannot isolate or localise the error source. I also downloaded
newest version of pyqt, recompiled and with the tracing switch
set. <br>
Still no results. <br>
<br>
Error occurs in various activities related to creating, moving but
also when clicking on the graph items. Not on all of them though.
<br>
<br>
Any ideas on how to go about it? Looks like the error comes from
within the pyqt, but experience shows that it is most likely one
owns stupidity that is the problem.<br>
<br>
Regards<br>
Heinz Preisig<br>
<div class="moz-signature">-- <br>
<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 moz-do-not-send="true"
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 moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a>
<a class="moz-txt-link-freetext" href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<br>
<span style="" lang="EN-US"></span>
</body>
</html>