Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
685bdeae
Commit
685bdeae
authored
12 years ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
Just changed Python Syntax back to 2.5
parent
9fc7454d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/pymod/init_spacenav.py
+3
-2
3 additions, 2 deletions
modules/gui/pymod/init_spacenav.py
with
3 additions
and
2 deletions
modules/gui/pymod/init_spacenav.py
+
3
−
2
View file @
685bdeae
...
@@ -46,10 +46,11 @@ class SpacenavControl(QtCore.QObject):
...
@@ -46,10 +46,11 @@ class SpacenavControl(QtCore.QObject):
def
Toggle
(
self
,
button
):
def
Toggle
(
self
,
button
):
if
button
==
0
:
if
button
==
0
:
self
.
trans
=
not
self
.
trans
self
.
trans
=
not
self
.
trans
ost
.
LogVerbose
(
"
SpaceNav: translation %s
"
%
(
"
enabled
"
if
self
.
trans
else
"
disabled
"
))
ost
.
LogVerbose
(
"
SpaceNav: translation %s
"
%
(
self
.
s
trans
and
"
enabled
"
or
"
disabled
"
))
elif
button
==
1
:
elif
button
==
1
:
self
.
rot
=
not
self
.
rot
self
.
rot
=
not
self
.
rot
ost
.
LogVerbose
(
"
SpaceNav: rotation %s
"
%
(
"
enabled
"
if
self
.
rot
else
"
disabled
"
))
#ost.LogVerbose("SpaceNav: rotation %s"%("enabled" if self.rot else "disabled"))
ost
.
LogVerbose
(
"
SpaceNav: rotation %s
"
%
(
self
.
rot
and
"
enabled
"
or
"
disabled
"
))
elif
button
==
12
:
elif
button
==
12
:
if
self
.
speed
>
20
:
if
self
.
speed
>
20
:
self
.
speed
*=
0.8
self
.
speed
*=
0.8
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment