MantisBT - ParaView
View Issue Details
0012861ParaView(No Category)public2012-01-17 15:042016-08-12 09:59
Hal Canary 
Kitware Robot 
normalminorhave not tried
closedmoved 
3.12 
 
TBD
usability
0012861: Unable to ask for user input from within ParaView Python macro
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?
No tags attached.
? python-gui-test.py (1,691) 2012-01-17 15:04
https://www.vtk.org/Bug/file/9106/python-gui-test.py
Issue History
2012-01-17 15:04Hal CanaryNew Issue
2012-01-17 15:04Hal CanaryFile Added: python-gui-test.py
2016-08-12 09:59Kitware RobotNote Added: 0038123
2016-08-12 09:59Kitware RobotStatusbacklog => closed
2016-08-12 09:59Kitware RobotResolutionopen => moved
2016-08-12 09:59Kitware RobotAssigned To => Kitware Robot

Notes
(0038123)
Kitware Robot   
2016-08-12 09:59   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.