MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / get

Method get

PySimpleGUI/PySimpleGUI.py:3601–3615  ·  view source on GitHub ↗

Return the current chosen value showing in spinbox. This value will be the same as what was provided as list of choices. If list items are ints, then the item returned will be an int (not a string) :return: The currently visible entry :rtype: (Any)

(self)

Source from the content-addressed store, hash-verified

3599
3600
3601 def get(self):
3602 """
3603 Return the current chosen value showing in spinbox.
3604 This value will be the same as what was provided as list of choices. If list items are ints, then the
3605 item returned will be an int (not a string)
3606
3607 :return: The currently visible entry
3608 :rtype: (Any)
3609 """
3610 value = self.TKStringVar.get()
3611 for v in self.Values:
3612 if str(v) == value:
3613 value = v
3614 break
3615 return value
3616
3617 Get = get
3618 Update = update

Callers 15

mainFunction · 0.45
get_global_editorFunction · 0.45
get_editorFunction · 0.45
get_explorerFunction · 0.45
settings_windowFunction · 0.45
mainFunction · 0.45
the_threadFunction · 0.45
mainFunction · 0.45
make_windowFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected