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

Method _custom_titlebar_restore

PySimpleGUI/PySimpleGUI.py:12441–12462  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12439 self._custom_titlebar_restore()
12440
12441 def _custom_titlebar_restore(self):
12442 if running_linux():
12443 # if self._skip_first_restore_callback:
12444 # self._skip_first_restore_callback = False
12445 # return
12446 self.TKroot.unbind('<Button-1>')
12447 self.TKroot.deiconify()
12448
12449 # self.ParentForm.TKroot.wm_overrideredirect(True)
12450 self.TKroot.wm_attributes("-type", 'dock')
12451
12452 else:
12453 self.TKroot.unbind('<Expose>')
12454 self.TKroot.wm_overrideredirect(True)
12455 if self.TKroot.state() == 'iconic':
12456 self.TKroot.deiconify()
12457 else:
12458 if not running_linux():
12459 self.TKroot.state('normal')
12460 else:
12461 self.TKroot.attributes('-fullscreen', False)
12462 self.maximized = False
12463
12464 def _custom_titlebar_minimize(self):
12465 if running_linux():

Callers 2

normalMethod · 0.95

Calls 2

running_linuxFunction · 0.70
unbindMethod · 0.45

Tested by

no test coverage detected