Merge pull request #5454 from PySimpleGUI/Dev-latest

Fill in the details fields next to OS in the Open GitHub Issue function
This commit is contained in:
PySimpleGUI 2022-05-08 14:09:39 -04:00 committed by GitHub
commit 05f24d565a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 1 deletions

View File

@ -1,9 +1,13 @@
#!/usr/bin/python3
version = __version__ = "4.60.0 Released 8-May-2022"
version = __version__ = "4.60.0.1 Unreleased"
_change_log = """
Changelog since 4.60.0 released to PyPI on 8-May-2022
4.60.0.1
main_open_github_issue - prefill the "Details" using the platform module (thank you macdeport!)
Fills Mac, Windows and Linux with details
"""
@ -23556,6 +23560,8 @@ def main_open_github_issue():
window = Window('Open A GitHub Issue', layout, finalize=True, resizable=True, enable_close_attempted_event=True, margins=(0, 0))
# for i in range(len(checklist)):
[window['-T{}-'.format(i)].set_cursor('hand1') for i in range(len(checklist))]
# window['-TABGROUP-'].expand(True, True, True)
@ -23563,6 +23569,15 @@ def main_open_github_issue():
# window['-ML DETAILS-'].expand(True, True, True)
# window['-ML MARKDOWN-'].expand(True, True, True)
# window['-PANE-'].expand(True, True, True)
if running_mac():
window['-OS MAC VER-'].update(platform.mac_ver())
elif running_windows():
window['-OS WIN VER-'].update(platform.win32_ver())
elif running_linux():
window['-OS LINUX VER-'].update(platform.libc_ver())
window.bring_to_front()
while True: # Event Loop
event, values = window.read()