You can use python's raw_input() function to get user input. Paraview's raw_input support is meant to mimic command line programs, so it expects that the python shell is open and places the text input box at the cursor.
If you want to use PyQt4, see http://paraview.markmail.org/message/6h767kpak5dcoqwt Pat On Tue, May 25, 2010 at 6:57 PM, <[email protected]> wrote: > > Hi, > > I am writing a plugin in the python shell. I can get source info with > ActiveSource, or FindSource, but I need to be able to get some info > from the user. Is there a way to popup a dialog box? I know I could > just import Qt myself and do it, but I am guessing paraview already has > an active Qt mainloop somewhere, and starting another wouldn't be > smart. > > Any help would be much appreciated please > > Thank you > > Matt Wilkins > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
