- 论坛徽章:
- 1
|
刚接触sciter.搜到的教程都是搭环境
我找不到sciter的UI如何与python通信
比如python里这样写:- if __name__ == '__main__':
- frame = sciter.Window(ismain=True, uni_theme=True)
- frame.load_file("minimal.html")
- frame.run_app()
复制代码
html里这样写:- <!DOCTYPE html>
- <html>
- <head></head>
- <body>
- <input type="checkbox" name="firefox" value="">hello
- ¡¡¡¡ <input type="checkbox" name="open" value="">word
- </body>
- </html>
复制代码
如果hello被选中,执行python里的def hello(): 函数
如果word被选中, 执行python里的def word(): 函数
不知道如何让UI元素被选中后,Python执行操作?
另外sciter有类似api这种文档吗?(我都不知道它在python里该怎么写,有哪些函数)
谢谢
|
|