[Paraview] Python - Dialogs

pat marion pat.marion at kitware.com
Thu May 6 12:32:45 EDT 2010


In paraview 3.8 you can use this in the python console:

var = raw_input("Enter something: ")
print "you entered ", var

It's not as pretty as a QMessageBox, but it works.  In fact, it would be
trivial to change the c++ code to make a QMessageBox appear instead of a
QLineEdit appear.

Pat

On Thu, May 6, 2010 at 11:32 AM, Christian Werner <
christian.werner at rwth-aachen.de> wrote:

> Hi!
>
> Is there a way to show the user some MessageBox? I'd like to get some user
> input to control a scripts execution. I am thinking about something like
> that: "Binary Measurement? Yes/No", or "Enter background value in the
> awesome text box below."
>
> Best regards,
> Christian
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100506/15a00e60/attachment.htm>


More information about the ParaView mailing list