Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
36a2034a
Commit
36a2034a
authored
Mar 05, 2012
by
kliment
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #189 from hurzl/experimental
preview zoom by key
parents
1b281123
5c22914f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
gviz.py
gviz.py
+12
-4
No files found.
gviz.py
View file @
36a2034a
...
...
@@ -47,13 +47,21 @@ class window(wx.Frame):
else
:
event
.
Skip
()
def
key
(
self
,
event
):
x
=
event
.
GetKeyCode
()
#print x
if
event
.
ShiftDown
():
cx
,
cy
=
self
.
p
.
translate
if
x
==
wx
.
WXK_UP
:
self
.
p
.
zoom
(
cx
,
cy
,
1.2
)
if
x
==
wx
.
WXK_DOWN
:
self
.
p
.
zoom
(
cx
,
cy
,
1
/
1.2
)
else
:
if
x
==
wx
.
WXK_UP
:
self
.
p
.
layerup
()
if
x
==
wx
.
WXK_DOWN
:
self
.
p
.
layerdown
()
#print x
#print p.lines.keys()
def
zoom
(
self
,
event
):
...
...
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