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

Function __get_ver_thread

PySimpleGUI/PySimpleGUI.py:24668–24691  ·  view source on GitHub ↗

Not directly user callable The thread that gets a package version and returns it. Uses a Python progrm it creates and runs as a subprocess to get the value to return :param interpreter: The interpreter to use to check. If none specified, then the currently running interpreter is us

(interpreter, package, window, key)

Source from the content-addressed store, hash-verified

24666
24667
24668def __get_ver_thread(interpreter, package, window, key):
24669 """
24670 Not directly user callable
24671 The thread that gets a package version and returns it. Uses a Python progrm it creates and runs as a subprocess to get the value to return
24672 :param interpreter: The interpreter to use to check. If none specified, then the currently running interpreter is used
24673 :type interpreter: str
24674 :param package: The name of the package to get version of
24675 :type package: str
24676 :param window: Optional Window. If provided, the operation is run as a thread and the results passed to the window as an event
24677 :type window: (Window)
24678 :param key: key that will be sent to Window when operation completes
24679 :type key: str | int | tuple | object | None
24680 :return:
24681 """
24682 ver = __get_ver_pre_38(interpreter, package)
24683 if not ver:
24684 ver = __get_ver_38_later(interpreter, package)
24685 if ver == ' ':
24686 ver = ''
24687 if window:
24688 window.write_event_value(key, ver)
24689 return None
24690 else:
24691 return ver if ver != ' ' else ''
24692
24693def __get_ver_pre_38(interpreter, package):
24694 """

Callers 1

Calls 3

__get_ver_pre_38Function · 0.85
__get_ver_38_laterFunction · 0.85
write_event_valueMethod · 0.80

Tested by

no test coverage detected