Pendigard's picture
Upload folder using huggingface_hub (part 115)
b2e2343 verified
Raw History Blame Contribute Delete
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)