Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Christian Butz
VTK
Commits
be2478c2
Commit
be2478c2
authored
Sep 02, 2015
by
Cory Quammen
Committed by
Alex Tsui
Sep 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for Python 3
Signed-off-by:
Alex Tsui
<
alextsui05@gmail.com
>
parent
a98c952a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Wrapping/Python/vtk/qt5/QVTKRenderWindowInteractor.py
Wrapping/Python/vtk/qt5/QVTKRenderWindowInteractor.py
+5
-5
No files found.
Wrapping/Python/vtk/qt5/QVTKRenderWindowInteractor.py
View file @
be2478c2
...
...
@@ -148,13 +148,13 @@ class QVTKRenderWindowInteractor(QWidget):
stereo
=
0
if
kw
.
has_key
(
'stereo'
)
:
if
'stereo'
in
kw
:
if
kw
[
'stereo'
]:
stereo
=
1
rw
=
None
if
kw
.
has_key
(
'rw'
)
:
if
'rw'
in
kw
:
rw
=
kw
[
'rw'
]
# create qt-level widget
...
...
@@ -181,7 +181,7 @@ class QVTKRenderWindowInteractor(QWidget):
self
.
_RenderWindow
.
StereoCapableWindowOn
()
self
.
_RenderWindow
.
SetStereoTypeToCrystalEyes
()
if
kw
.
has_key
(
'iren'
)
:
if
'iren'
in
kw
:
self
.
_Iren
=
kw
[
'iren'
]
else
:
self
.
_Iren
=
vtk
.
vtkGenericRenderWindowInteractor
()
...
...
@@ -218,8 +218,8 @@ class QVTKRenderWindowInteractor(QWidget):
elif
hasattr
(
self
.
_Iren
,
attr
):
return
getattr
(
self
.
_Iren
,
attr
)
else
:
raise
AttributeError
,
self
.
__class__
.
__name__
+
\
" has no attribute named "
+
attr
raise
AttributeError
(
self
.
__class__
.
__name__
+
\
" has no attribute named "
+
attr
)
def
Finalize
(
self
):
'''
...
...
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