Constructor
new GUI(psychoJS)
Parameters:
Name | Type | Description |
---|---|---|
psychoJS |
module:core.PsychoJS | the PsychoJS instance |
- Source:
Members
(readonly) dialogMargin :Symbol
Dialog window margins.
Type:
- Symbol
- Source:
(readonly) dialogMaxSize :Symbol
Maximal dimensions of the dialog window.
Type:
- Symbol
- Source:
Methods
closeDialog()
Close the previously opened dialog box, if there is one.
- Source:
dialog(options)
Show a message to the participant in a dialog box.
This function can be used to display both warning and error messages.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source:
DlgFromDict(options)
Create a dialog box that (a) enables the participant to set some experimental values (e.g. the session name), (b) shows progress of resource download, and (c) enables the participant to cancel the experiment.
Setting experiment valuesDlgFromDict displays an input field for all values in the dictionary. It is possible to specify default values e.g.:
let expName = 'stroop';
let expInfo = {'participant':'', 'session':'01'};
psychoJS.schedule(psychoJS.gui.DlgFromDict({dictionary: expInfo, title: expName}));
If the participant cancels (by pressing Cancel or by closing the dialog box), then the dictionary remains unchanged.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Properties
|
- Source: