Download pool/shard010/Python/0089214_test3.py from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 516 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard010/Python/0089214_test3.py
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard010/Python/0089214_test3.py
-
curl -L -o 0089214_test3.py https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard010/Python/0089214_test3.py
516 Bytes
| """ | |
| Programmatically checking radio-buttons. | |
| """ | |
| import os, sys | |
| os.chdir(os.path.dirname(os.path.realpath(__file__))) | |
| sys.path.append("../../atlastk") | |
| import atlastk | |
| CALLBACKS = { | |
| "": lambda dom: dom.inner("", open("Test3.html").read()), | |
| "rdSelect": lambda dom, id: dom.set_value("rdCheck", dom.get_value(id)), | |
| "rdSubmit": lambda dom, id: dom.alert(f'Selected method: "{dom.get_value("rdContact")}"' ), | |
| "rdCheck": lambda dom, id: dom.set_value("rdContact", dom.get_value(id)) | |
| } | |
| atlastk.launch(CALLBACKS) |