MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / _is_window_created

Method _is_window_created

PySimpleGUI/PySimpleGUI.py:12620–12630  ·  view source on GitHub ↗
(self, additional_message='')

Source from the content-addressed store, hash-verified

12618 return self.read(*args, **kwargs)
12619
12620 def _is_window_created(self, additional_message=''):
12621 msg = str(additional_message)
12622 if self.TKroot is None:
12623 warnings.warn(
12624 'You cannot perform operations on a Window until it is read or finalized. Adding a "finalize=True" parameter to your Window creation will fix this. ' + msg,
12625 UserWarning)
12626 if not SUPPRESS_ERROR_POPUPS:
12627 _error_popup_with_traceback('You cannot perform operations on a Window until it is read or finalized.',
12628 'Adding a "finalize=True" parameter to your Window creation will likely fix this', msg)
12629 return False
12630 return True
12631
12632 def _has_custom_titlebar_element(self):
12633 for elem in self.AllKeysDict.values():

Callers 15

move_to_centerMethod · 0.95
minimizeMethod · 0.95
maximizeMethod · 0.95
normalMethod · 0.95
_move_callbackMethod · 0.95
disableMethod · 0.95
enableMethod · 0.95
hideMethod · 0.95
un_hideMethod · 0.95
disappearMethod · 0.95
reappearMethod · 0.95
set_alphaMethod · 0.95

Calls 1

Tested by

no test coverage detected