<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi again,<br>
<br>
Don't loose your time on that problem: I solved it. <br>
<br>
This is the<i> vtkRenderWindow.FullScreenOn()</i> that causes the
problem (I have made a procedural version of the code by adding
iteratively my different instructions). So I replaced it by <i>vtkRenderWindow.SetSize(1024,
768)</i> and it works everytime. So maybe a bug in <i>FullScreenOn()</i>.
My workstation has 2 screens though...<br>
<br>
But it causes me to ask a way of getting the resolution of my
screen with vtk. Any idea ?<br>
<br>
Cheers,<br>
François
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<br>
<br>
On 08/07/2016 15:55, François Rongère wrote:<br>
</div>
<blockquote
cite="mid:dbd25178-7688-0d48-184b-c6c4c9f74694@ec-nantes.fr"
type="cite">Hi,
<br>
<br>
I managed to build a convenience python class to show some meshes.
The problem I have is that when the vtkWindowInteractor.Start()
method is called, most of the time nothing happen and sometime I
get the wanted window. I tried calling the
vtkWindowInteractor.Initialize() method and it seems that this is
the real culprit... The really strage thing is that sometimes it
is successful...
<br>
<br>
In the case where it fails, I get no error message but the code
seem to enter in the event loop as the command line is not
released with no mean to take the hand back with a CTRL-C as the
event loop does not support it, so it freezes my terminal. A
try/except block catches no error too...
<br>
<br>
I have no clue of what is happening and how to start debugging.
<br>
<br>
I attached an example of this with example data file.
<br>
<br>
I am running python 2.7 with vtk 6.3.0 on a Debian Jessie
workstation.
<br>
<br>
Any help appreciated,
<br>
<br>
Best regards,
<br>
<br>
François.
<br>
<br>
<br>
</blockquote>
<p><br>
</p>
</body>
</html>