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

Method __getitem__

PySimpleGUI/PySimpleGUI.py:12595–12607  ·  view source on GitHub ↗

Returns Element that matches the passed in key. This is "called" by writing code as thus: window['element key'].update :param key: The key to find :type key: str | int | tuple | object :return: The element found :rtype: Element

(self, key)

Source from the content-addressed store, hash-verified

12593
12594
12595 def __getitem__(self, key):
12596 """
12597 Returns Element that matches the passed in key.
12598 This is "called" by writing code as thus:
12599 window['element key'].update
12600
12601 :param key: The key to find
12602 :type key: str | int | tuple | object
12603 :return: The element found
12604 :rtype: Element
12605 """
12606
12607 return self.find_element(key)
12608
12609 def __call__(self, *args, **kwargs):
12610 """

Callers

nothing calls this directly

Calls 1

find_elementMethod · 0.95

Tested by

no test coverage detected