mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
Move zoom height functionality to separate function.
This commit is contained in:
parent
5fac2ab220
commit
96cf271be9
1 changed files with 21 additions and 18 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue