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

Method _custom_titlebar_minimize

PySimpleGUI/PySimpleGUI.py:12464–12479  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12462 self.maximized = False
12463
12464 def _custom_titlebar_minimize(self):
12465 if running_linux():
12466 self.TKroot.wm_attributes("-type", "normal")
12467 # self.ParentForm.TKroot.state('icon')
12468 # return
12469 # self.ParentForm.maximize()
12470 self.TKroot.wm_overrideredirect(False)
12471 # self.ParentForm.minimize()
12472 # self.ParentForm.TKroot.wm_overrideredirect(False)
12473 self.TKroot.iconify()
12474 # self._skip_first_restore_callback = True
12475 self.TKroot.bind('<Button-1>', self._custom_titlebar_restore_callback)
12476 else:
12477 self.TKroot.wm_overrideredirect(False)
12478 self.TKroot.iconify()
12479 self.TKroot.bind('<Expose>', self._custom_titlebar_restore_callback)
12480
12481 def _custom_titlebar_callback(self, key):
12482 """

Callers 2

minimizeMethod · 0.95

Calls 2

running_linuxFunction · 0.70
bindMethod · 0.45

Tested by

no test coverage detected