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.<br>
<br>Pat<br><br><div class="gmail_quote">On Fri, May 7, 2010 at 8:20 AM, Christian Werner <span dir="ltr"><<a href="mailto:christian.werner@rwth-aachen.de">christian.werner@rwth-aachen.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
"In fact, it would be trivial to change the c++ code to make a QMessageBox appear instead of a QLineEdit."<br>
<br>
Are you saying that I should submit a feature request for that? A QMessageBox would definitely be more helpful than the QLineEdit.<br>
<br>
<br>
Best regards,<br>
Christian<br>
<br>
<br>
pat marion schrieb:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
In paraview 3.8 you can use this in the python console:<br>
<br>
var = raw_input("Enter something: ")<br>
print "you entered ", var<br>
<br>
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.<br>
<br>
Pat<br>
<br></div><div class="im">
On Thu, May 6, 2010 at 11:32 AM, Christian Werner <<a href="mailto:christian.werner@rwth-aachen.de" target="_blank">christian.werner@rwth-aachen.de</a> <mailto:<a href="mailto:christian.werner@rwth-aachen.de" target="_blank">christian.werner@rwth-aachen.de</a>>> wrote:<br>
<br>
Hi!<br>
<br>
Is there a way to show the user some MessageBox? I'd like to get<br>
some user input to control a scripts execution. I am thinking<br>
about something like that: "Binary Measurement? Yes/No", or "Enter<br>
background value in the awesome text box below."<br>
<br>
Best regards,<br>
Christian<br>
<br>
_______________________________________________<br></div>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><div class="im"><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at:<br>
<a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br>