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():
# create the widget
widget = QVTKRenderWindowInteractor(window)
window.setCentralWidget(widget)
widget.Initialize()
widget.Start()
# if you don't want the 'q' key to exit comment this.
widget.AddObserver("ExitEvent", lambda o, e, a=app: a.quit())
......@@ -585,6 +583,10 @@ def QVTKRenderWidgetConeExample():
# show the widget
window.show()
widget.Initialize()
widget.Start()
# start event processing
app.exec_()
......
Supports Markdown
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