From 7591c7bccd34ed27d02868e5d5a2b0ba7fce868b Mon Sep 17 00:00:00 2001 From: Albert Shown Date: Mon, 27 Nov 2023 09:48:24 -0500 Subject: [PATCH] Add get_url --- PyPI/Package/src/webui/webui.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/PyPI/Package/src/webui/webui.py b/PyPI/Package/src/webui/webui.py index c8a49b2..fa88ad1 100644 --- a/PyPI/Package/src/webui/webui.py +++ b/PyPI/Package/src/webui/webui.py @@ -199,6 +199,18 @@ def is_shown(self): return r + def get_url(self) -> str: + global webui_lib + if webui_lib is None: + _err_library_not_found('get_url') + return + c_res = webui_lib.webui_get_url + c_res.restype = ctypes.c_char_p + data = c_res(self.window) + decode = data.decode('utf-8') + return decode + + def get_str(self, e: event, index: c_size_t = 0) -> str: global webui_lib if webui_lib is None: