Unable to ask for user input from within ParaView Python macro
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In ParaView 3.8.1, it was possible to write a Python macro that asked the user for input with a dialog window. This was done with the following simple code:
import PyQt4.QtGui
(ret, ok) = PyQt4.QtGui.QInputDialog.getInt(
PyQt4.QtGui.QWidget(), 'T', 'L')
if not ok:
raise Exception('input error')
print ret
Starting with 3.10 and continuing with 3.12.0, this will fail. If there is a good reason to disallow "import PyQt4.QtGui" in ParaView, I understand, but can we implement equivalent functionality to these four static functions PyQt4.QtGui.QInputDialog.getInt() PyQt4.QtGui.QInputDialog.getItem() PyQt4.QtGui.QInputDialog.getDouble() PyQt4.QtGui.QInputDialog.getText() from within a ParaView Python macro?