<div>Hello All,</div>
<div>I built a&nbsp;function&nbsp;library, which uses VTK to visualize the data. I used swig to wrap it to a Tcl command library. When I run a Tcl script line by line in the Tcl shell(run $wish, then the Tcl console window pops up, and the Tcl shell starts with % to receive Tcl command), I found the graphics has no interaction(I setup all the Renderer, RenderWindow and RenderWindowInteractor stuff) if I don&#39;t call a event loop from the library. But if I call an event loop to make the graphics interactive, this event loop will always block and the Tcl shell cannot receive command any more. Could&nbsp;any body help me with how to make the graphics interactive without calling an event call? This problem only exists in Linux. In windows I don&#39;t have to call the event loop and the graphics window has interaction by default.
</div>
<div>I see that the Tcl wrapper of VTK library has this feature both in Windows and in Linux. If I setup a pipeline and call &quot;renwin Render&quot;, the graphics window will pop up with interaction, and the Tcl shell is still active for reading new command, so I can call &quot;renwin SetBackground 1 0 0&quot; then to change the background color of the graphics window. I don&#39;t have to explicitly call &quot;iren Start&quot; to start the vtk event loop to enable the interaction, which will block the Tcl shell.
</div>
<div>&nbsp;</div>
<div>Any help will be appreciated! Thank you very much in advance.</div>
<div>&nbsp;</div>
<div>Yang</div>