Commit 736f3342 authored by Elvis Stansvik's avatar Elvis Stansvik
Browse files

Call Initialize()/Start() after showing widget

parent 086af689
...@@ -564,8 +564,6 @@ def QVTKRenderWidgetConeExample(): ...@@ -564,8 +564,6 @@ def QVTKRenderWidgetConeExample():
# create the widget # create the widget
widget = QVTKRenderWindowInteractor(window) widget = QVTKRenderWindowInteractor(window)
window.setCentralWidget(widget) window.setCentralWidget(widget)
widget.Initialize()
widget.Start()
# if you don't want the 'q' key to exit comment this. # if you don't want the 'q' key to exit comment this.
widget.AddObserver("ExitEvent", lambda o, e, a=app: a.quit()) widget.AddObserver("ExitEvent", lambda o, e, a=app: a.quit())
...@@ -585,6 +583,10 @@ def QVTKRenderWidgetConeExample(): ...@@ -585,6 +583,10 @@ def QVTKRenderWidgetConeExample():
# show the widget # show the widget
window.show() window.show()
widget.Initialize()
widget.Start()
# start event processing # start event processing
app.exec_() app.exec_()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment