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

Function get_versions

PySimpleGUI/PySimpleGUI.py:24272–24307  ·  view source on GitHub ↗

Returns a human-readable string of version numbers for: Python version Platform (Win, Mac, Linux) Platform version (tuple with information from the platform module) PySimpleGUI Port (PySimpleGUI in this case) tkinter version PySimpleGUI version The location of the P

()

Source from the content-addressed store, hash-verified

24270
24271
24272def get_versions():
24273 """
24274 Returns a human-readable string of version numbers for:
24275
24276 Python version
24277 Platform (Win, Mac, Linux)
24278 Platform version (tuple with information from the platform module)
24279 PySimpleGUI Port (PySimpleGUI in this case)
24280 tkinter version
24281 PySimpleGUI version
24282 The location of the PySimpleGUI.py file
24283
24284 The format is a newline between each value and descriptive text for each line
24285
24286 :return:
24287 :rtype: str
24288 """
24289 if running_mac():
24290 platform_name, platform_ver = 'Mac', platform.mac_ver()
24291 elif running_windows():
24292 platform_name, platform_ver = 'Windows', platform.win32_ver()
24293 elif running_linux():
24294 platform_name, platform_ver = 'Linux', platform.libc_ver()
24295 else:
24296 platform_name, platform_ver = 'Unknown platorm', 'Unknown platform version'
24297
24298 versions = "Python Interpeter: {}\nPython version: {}.{}.{}\nPlatform: {}\nPlatform version: {}\nPort: {}\ntkinter version: {}\nPySimpleGUI version: {}\nPySimpleGUI filename: {}".format(
24299 sys.executable, sys.version_info.major,
24300 sys.version_info.minor,
24301 sys.version_info.micro,
24302 platform_name, platform_ver,
24303 port,
24304 tclversion_detailed,
24305 ver,
24306 __file__)
24307 return versions
24308
24309
24310def scheck_hh():

Callers 2

main_get_debug_dataFunction · 0.85
main_command_lineFunction · 0.85

Calls 3

running_macFunction · 0.85
running_windowsFunction · 0.70
running_linuxFunction · 0.70

Tested by

no test coverage detected