summaryrefslogtreecommitdiff
path: root/examples/plot3dSceneWindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plot3dSceneWindow.py')
-rw-r--r--examples/plot3dSceneWindow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/plot3dSceneWindow.py b/examples/plot3dSceneWindow.py
index efffcd3..3b78109 100644
--- a/examples/plot3dSceneWindow.py
+++ b/examples/plot3dSceneWindow.py
@@ -45,6 +45,8 @@ __authors__ = ["T. Vincent"]
__license__ = "MIT"
__date__ = "17/11/2017"
+
+import sys
import numpy
from silx.gui import qt
@@ -193,5 +195,8 @@ sceneWidget.addItem(group) # Add the group as an item of the scene
# Show the SceneWidget widget
window.show()
+# Display exception in a pop-up message box
+sys.excepthook = qt.exceptionHandler
+
# Run Qt event loop
qapp.exec_()