Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
736f3342
Commit
736f3342
authored
Aug 30, 2020
by
Elvis Stansvik
Browse files
Call Initialize()/Start() after showing widget
parent
086af689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Wrapping/Python/vtkmodules/qt/QVTKRenderWindowInteractor.py
View file @
736f3342
...
...
@@ -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_
()
...
...
Elvis Stansvik
@estan
mentioned in commit
07304197
·
Aug 31, 2020
mentioned in commit
07304197
mentioned in commit 07304197eb99cc548811a33202fed26ca1afbf3f
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment