[Paraview] Python - Dialogs

pat marion pat.marion at kitware.com
Fri May 7 13:22:39 EDT 2010


I take it back.  The string given as an argument to raw_input will be
displayed as regular stdout in the python console, not in the QMessageBox.
It wouldn't be straight forward to capture the string for display in the
message box.  But feel free to make a feature request if you want.

Pat

On Fri, May 7, 2010 at 8:20 AM, Christian Werner <
christian.werner at rwth-aachen.de> wrote:

> "In fact, it would be trivial to change the c++ code to make a QMessageBox
> appear instead of a QLineEdit."
>
> Are you saying that I should submit a feature request for that? A
> QMessageBox would definitely be more helpful than the QLineEdit.
>
>
> Best regards,
> Christian
>
>
> pat marion schrieb:
>
>> 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 <mailto: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 <http://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/20100507/28edf32f/attachment.htm>


More information about the ParaView mailing list