We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdfb5e2 commit 856daf4Copy full SHA for 856daf4
1 file changed
PyPI/Package/src/webui/webui.py
@@ -304,6 +304,20 @@ def set_root_folder(self, path):
304
ctypes.c_char_p(path.encode('utf-8')))
305
306
307
+ # Allow a specific window address to be accessible from a public network
308
+ def set_public(self, status = True):
309
+ global lib
310
+ if self.window == 0:
311
+ _err_window_is_none('set_public')
312
+ return
313
+ if lib is None:
314
+ _err_library_not_found('set_public')
315
316
+ # Set public
317
+ lib.webui_set_public(self.window,
318
+ ctypes.c_bool(status))
319
+
320
321
def _get_current_folder() -> str:
322
return os.path.dirname(os.path.abspath(__file__))
323
0 commit comments