Commit 5c22914f authored by hurzl's avatar hurzl

Merge pull request #1 from hurzl/patch-3

zoom big preview by shift + key
parents 9167dfb8 6fb50be6
...@@ -47,13 +47,21 @@ class window(wx.Frame): ...@@ -47,13 +47,21 @@ class window(wx.Frame):
else: else:
event.Skip() event.Skip()
def key(self, event): def key(self, event):
x=event.GetKeyCode() 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: if x==wx.WXK_UP:
self.p.layerup() self.p.layerup()
if x==wx.WXK_DOWN: if x==wx.WXK_DOWN:
self.p.layerdown() self.p.layerdown()
#print x
#print p.lines.keys() #print p.lines.keys()
def zoom(self, event): def zoom(self, event):
......
Markdown is supported
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