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
()
| 24270 | |
| 24271 | |
| 24272 | def 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 | |
| 24310 | def scheck_hh(): |
no test coverage detected