We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 089d20a commit a8d7c64Copy full SHA for a8d7c64
PyPI/Package/src/webui/webui.py
@@ -1456,6 +1456,17 @@ def set_runtime(self, runtime: Runtime) -> None:
1456
"""
1457
_raw.webui_set_runtime(c_size_t(self._window), c_size_t(runtime.value))
1458
1459
+ # -- Alias -----------------------------------
1460
+ # Supporting old projects based on WebUI 2.4.x
1461
+
1462
+ def get_str(self, e: event, index: c_size_t = 0) -> str:
1463
+ return e.get_string_at(index)
1464
1465
+ def get_int(self, e: event, index: c_size_t = 0) -> int:
1466
+ return e.get_int_at(index)
1467
1468
+ def get_bool(self, e: event, index: c_size_t = 0) -> bool:
1469
+ return e.get_bool_at(index)
1470
1471
# == Global functions below ===================================================
1472
0 commit comments