MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / normal

Method normal

PySimpleGUI/PySimpleGUI.py:11285–11301  ·  view source on GitHub ↗

Restore a window to a non-maximized state. Does different things depending on platform. See Maximize for more.

(self)

Source from the content-addressed store, hash-verified

11283 self.maximized = True
11284
11285 def normal(self):
11286 """
11287 Restore a window to a non-maximized state. Does different things depending on platform. See Maximize for more.
11288 """
11289 if not self._is_window_created('tried Window.normal'):
11290 return
11291 if self.use_custom_titlebar:
11292 self._custom_titlebar_restore()
11293 else:
11294 if self.TKroot.state() == 'iconic':
11295 self.TKroot.deiconify()
11296 else:
11297 if not running_linux():
11298 self.TKroot.state('normal')
11299 else:
11300 self.TKroot.attributes('-fullscreen', False)
11301 self.maximized = False
11302
11303 def _StartMoveUsingControlKey(self, event):
11304 """

Callers 9

PyplotGGPlotSytleSheetFunction · 0.80
PyplotScalesFunction · 0.80
create_pyplot_scalesFunction · 0.80
create_pyplot_scalesFunction · 0.80
PyplotGGPlotSytleSheetFunction · 0.80
PyplotScalesFunction · 0.80
PyplotGGPlotSytleSheetFunction · 0.80
PyplotScalesFunction · 0.80

Calls 3

_is_window_createdMethod · 0.95
running_linuxFunction · 0.70

Tested by

no test coverage detected