Lines Matching refs:top
19 self.top = self.editwin.top
25 self.top.bell()
34 top = self.top
36 width, height, x, y = get_window_geometry(top)
38 if top.wm_state() != 'normal':
50 set_window_geometry(top, (width, maxheight, x, maxy))
57 top.wm_geometry('')
61 top = self.top
63 screen_dimensions = (top.winfo_screenwidth(),
64 top.winfo_screenheight())
66 orig_state = top.wm_state()
70 top.wm_state('zoomed')
77 top.update()
78 maxwidth, maxheight, maxx, maxy = get_window_geometry(top)
84 maxrooty = top.winfo_rooty()
90 top.wm_state('normal')
91 top.update()
92 orig_geom = get_window_geometry(top)
94 set_window_geometry(top, max_y_geom)
95 top.update()
96 max_y_geom_rooty = top.winfo_rooty()
104 set_window_geometry(top, orig_geom)
105 top.wm_state(orig_state)
110 def get_window_geometry(top): argument
111 geom = top.wm_geometry()
116 def set_window_geometry(top, geometry): argument
117 top.wm_geometry("{:d}x{:d}+{:d}+{:d}".format(*geometry))