MantisBT - ParaView | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012861 | ParaView | (No Category) | public | 2012-01-17 15:04 | 2016-08-12 09:59 |
Reporter | Hal Canary | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | 3.12 | ||||
Target Version | Fixed in Version | ||||
Project | TBD | ||||
Topic Name | |||||
Type | usability | ||||
Summary | 0012861: Unable to ask for user input from within ParaView Python macro | ||||
Description | 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? | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | python-gui-test.py (1,691) 2012-01-17 15:04 https://www.vtk.org/Bug/file/9106/python-gui-test.py | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-01-17 15:04 | Hal Canary | New Issue | |||
2012-01-17 15:04 | Hal Canary | File Added: python-gui-test.py | |||
2016-08-12 09:59 | Kitware Robot | Note Added: 0038123 | |||
2016-08-12 09:59 | Kitware Robot | Status | backlog => closed | ||
2016-08-12 09:59 | Kitware Robot | Resolution | open => moved | ||
2016-08-12 09:59 | Kitware Robot | Assigned To | => Kitware Robot |
Notes | |||||
|
|||||
|
|