Commit 21e15235 authored by Guido van Rossum's avatar Guido van Rossum

Move zoom height functionality to separate function.

parent 5bb7bb90
......@@ -23,6 +23,9 @@ class ZoomHeight:
def zoom_height_event(self, event):
top = self.editwin.top
zoom_height(top)
def zoom_height(top):
geom = top.wm_geometry()
m = re.match(r"(\d+)x(\d+)\+(-?\d+)\+(-?\d+)", geom)
if not m:
......
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