in scivi2.py:_simple_imshow you are not passing the window_manager object
to the widget. So the reference to the image window is lost and window is
being garbage collected. Once you pass along the reference to the manager,
the windows displays.
However, the image doesn't show up in the window, so now you have another
issue to track down ;)
On Mon, Nov 1, 2010 at 11:22 AM, Maël Primet
From an interactive shell.. I tried mimicking more closely the definition of scivi.py, but it does not work :p Could you try using it from your computer? (github.com/maelp )
On Mon, Nov 1, 2010 at 16:09, Chris Colbert
wrote: are you using that from an interactive shell or from a script?
If you are using from a script, you need to call `io.show()` at the end of your script to enter the toolkit's event loop.
On Mon, Nov 1, 2010 at 11:06 AM, Maël Primet
wrote: I do io.use_plugin('qt2') io.imshow(im) and it opens and close
On Mon, Nov 1, 2010 at 16:01, Chris Colbert
wrote: how are you running it when the windows don't stay open?
On Mon, Nov 1, 2010 at 10:40 AM, mael
wrote: Hi,
I added a 'qt2' plugin to my github repository, but can't get the window to stay displayed, do you know where the problem might be ?