Skip to content

Commit 483d9f8

Browse files
committed
all the examples run now. may try porting all the C examples like i did with odin just to get more testing in
1 parent bd64c61 commit 483d9f8

File tree

3 files changed

+4
-127
lines changed

3 files changed

+4
-127
lines changed

PyPI/Package/src/webui/testing.py

Lines changed: 0 additions & 123 deletions
This file was deleted.

PyPI/Package/src/webui/webui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ def __init__(self, window_id: Optional[int] = None):
197197
"""
198198
if window_id is None:
199199
# -- new_window ---------------------------------
200-
self._window: int = _raw.webui_new_window()
200+
self._window = int(_raw.webui_new_window())
201201
else:
202202
# -- new_window_id ------------------------------
203-
self._window: int = _raw.webui_new_window_id(window_id)
203+
self._window = int(_raw.webui_new_window_id(window_id))
204204

205205
if not self._window:
206206
raise RuntimeError("Failed to create a new WebUI window.")
@@ -392,7 +392,7 @@ def get_url(self) -> str:
392392
"""
393393
Get the current URL as a string.
394394
"""
395-
return str(_raw.webui_get_url(self._window).decode("utf-8"))
395+
return _raw.webui_get_url(c_size_t(self._window)).decode("utf-8")
396396

397397
# -- set_public ---------------------------------
398398
def set_public(self, status: bool) -> None:

PyPI/Package/src/webui/webui_bindings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ class WebuiEventT(Structure):
10621062

10631063

10641064
# -- open_url -----------------------------------
1065-
webui_open_url = webui_lib.webui_get_url
1065+
webui_open_url = webui_lib.webui_open_url
10661066
"""
10671067
brief:
10681068
Open an URL in the native default web browser.

0 commit comments

Comments
 (0)