Skip to content

Commit 912885a

Browse files
authored
Merge pull request #5 from AlbertShown/main
Add get_url
2 parents 3b7f9d0 + 7591c7b commit 912885a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

PyPI/Package/src/webui/webui.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,18 @@ def is_shown(self):
199199
return r
200200

201201

202+
def get_url(self) -> str:
203+
global webui_lib
204+
if webui_lib is None:
205+
_err_library_not_found('get_url')
206+
return
207+
c_res = webui_lib.webui_get_url
208+
c_res.restype = ctypes.c_char_p
209+
data = c_res(self.window)
210+
decode = data.decode('utf-8')
211+
return decode
212+
213+
202214
def get_str(self, e: event, index: c_size_t = 0) -> str:
203215
global webui_lib
204216
if webui_lib is None:

0 commit comments

Comments
 (0)