View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012861ParaView(No Category)public2012-01-17 15:042016-08-12 09:59
ReporterHal Canary 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version3.12 
Target VersionFixed in Version 
Summary0012861: Unable to ask for user input from within ParaView Python macro
DescriptionIn 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?
TagsNo tags attached.
ProjectTBD
Topic Name
Typeusability
Attached Files? file icon python-gui-test.py [^] (1,691 bytes) 2012-01-17 15:04

 Relationships

  Notes
(0038123)
Kitware Robot (administrator)
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.

 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


Copyright © 2000 - 2018 MantisBT Team