From ca9c3fae603ac06c52c6ce4c2055e242182b47f6 Mon Sep 17 00:00:00 2001 From: nkrapp Date: Mon, 14 Jul 2025 10:12:35 +0200 Subject: [PATCH 1/2] remove obsolete requirement --- python/requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/python/requirements.txt b/python/requirements.txt index 37f2cea..954ef87 100644 --- a/python/requirements.txt +++ b/python/requirements.txt @@ -1,3 +1,2 @@ hidapi==0.14.0.post2 -PySimpleGUI-4-foss==4.60.4.1 pywin32; os_name == 'nt' From 3d01186a38af74122a54ffe20f5105a8dc223391 Mon Sep 17 00:00:00 2001 From: nkrapp Date: Mon, 14 Jul 2025 10:21:02 +0200 Subject: [PATCH 2/2] define open_browser_func to open webbrowser --- python/qmk_hid/gui.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/python/qmk_hid/gui.py b/python/qmk_hid/gui.py index b0a5cca..40360a9 100644 --- a/python/qmk_hid/gui.py +++ b/python/qmk_hid/gui.py @@ -462,5 +462,12 @@ def tk_flash_firmware(devices, releases, version, fw_type): disable_devices(devices) restart_hint() +def open_browser_func(url): + # try to open url in new tab + success = webbrowser.open(url=url, new=2) + if not success: + info_popup("Failed to open webbrowser.") + return + if __name__ == "__main__": main()