summaryrefslogtreecommitdiff
path: root/src/pywebvi/pywebvi.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pywebvi/pywebvi.py')
-rw-r--r--src/pywebvi/pywebvi.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pywebvi/pywebvi.py b/src/pywebvi/pywebvi.py
index b3df416..3815d0f 100644
--- a/src/pywebvi/pywebvi.py
+++ b/src/pywebvi/pywebvi.py
@@ -20,6 +20,7 @@ _WEBVI_CONFIG_TEMPLATE_PATH = 0
_WEBVI_CONFIG_DEBUG = 1
_WEBVI_CONFIG_TIMEOUT_CALLBACK = 2
_WEBVI_CONFIG_TIMEOUT_DATA = 3
+_WEBVI_CONFIG_MENU_SCRIPT_PATH = 4
class WebviState:
NOT_FINISHED = 0
@@ -107,6 +108,15 @@ class WebviContext:
set_config.restype = raise_if_webvi_result_not_ok
set_config(self.handle, _WEBVI_CONFIG_TEMPLATE_PATH, path)
+ def set_menu_script_path(self, path):
+ if self.handle is None:
+ return
+
+ set_config = libwebvi.webvi_set_config
+ set_config.argtypes = [c_long, c_int, c_char_p]
+ set_config.restype = raise_if_webvi_result_not_ok
+ set_config(self.handle, _WEBVI_CONFIG_MENU_SCRIPT_PATH, path)
+
def set_debug(self, enabled):
if self.handle is None:
return