htmlChoice
In [ ]:
Copied!
from sweetbean import Block, Experiment
from sweetbean.stimulus import HtmlChoice
from sweetbean import Block, Experiment
from sweetbean.stimulus import HtmlChoice
In [ ]:
Copied!
choice = HtmlChoice(
duration=2000,
html_array=["<button>Yes</button>", "<button>No</button>"],
values=[1, 0],
time_after_response=300,
)
choice = HtmlChoice(
duration=2000,
html_array=["<button>Yes</button>", "<button>No</button>"],
values=[1, 0],
time_after_response=300,
)
In [ ]:
Copied!
block = Block([choice])
block = Block([choice])
In [ ]:
Copied!
# Create HTML file of the experiment
experiment = Experiment([block])
experiment.to_html("htmlChoice.html")
# Create HTML file of the experiment
experiment = Experiment([block])
experiment.to_html("htmlChoice.html")