Move zoom height functionality to separate function.

This commit is contained in:
Guido van Rossum 1999-06-01 18:17:02 +00:00
parent 5fac2ab220
commit 96cf271be9

View file

@ -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: