Page Attributes and Methods#
Experiment, position, and identification (Page)#
The   | 
|
The   | 
|
The member's parent section.  | 
|
Alias for   | 
|
Name of the parent section.  | 
|
A single string, indicating the member's position in the experiment.  | 
|
  | 
List of the parent section and the grandparent sections (recursive).  | 
Short version of   | 
|
Unique name of the member.  | 
|
Alias for   | 
|
Alias for   | 
Hooks for overloading (Page)#
Hook for defining a page's own movement behavior, executed every time a movement from the page takes place, before   | 
|
  | 
Executed once, when the page is closed, before data saving.  | 
Executed every time the page is hidden, before closing it and before saving data, but after executing   | 
|
Executed every time the page is shown, after executing   | 
|
Executed once, when the   | 
|
Executed once, when the page is hidden for the first time, before executing   | 
|
Executed once, when the page is shown for the first time, before executing   | 
Data and general utilities (Page)#
Returns a dict of data for all input elements on the page.  | 
|
Returns an empty dict for 'normal' pages and the input data for unlinked pages.  | 
|
Iterates over the visit durations for this page.  | 
|
Returns the duration of the last visit to this page in the current session in seconds.  | 
|
Returns the duration of the last visit to this page in the current session in seconds.  | 
|
Returns True, if the page has been displayed in the ongoing experiment session.  | 
|
False, if the experiment tolerates skipping this page entirely.  | 
|
Boolean, indicating whether a page should be shown.  | 
|
Returns True, if the page is closed.  | 
|
Minimal amount of time that a page must be displayed before participants can move forward.  | 
|
Page title (str).  | 
|
Page subtitle (str).  | 
|
  | 
Hook for controlling whether a page or section should be shown.  | 
A dictionary of additional arguments passed on the class upon initialization.  | 
Access to elements (Page)#
Alias for   | 
|
Alias for   | 
|
Dict of all input elements on this page with non-empty data attribute.  | 
|
Returns a dict of all elements on the page that already have access to the experiment session.  | 
Visual settings (Page)#
A color to be used for the background of this page.  | 
|
Custom value for defining a fixed width of the page.  | 
|
Custom values for definig the width of the page in percent of the screen width.  | 
Development utilities (Page)#
These methods and attributes are most likely to be of interest to you only if you derive your own pages.
  | 
Informs the member that it was added to an experiment session.  | 
  | 
Informs the member that it was added to a section.  | 
  | 
Appends a variable number of elements to the page.  | 
Hook for computations for preparing a page for display.  | 
|
  | 
Saves current experiment data.  | 
  | 
Returns the subset of members in the given attribute that should be shown.  | 
If True, the member will spawn a logger that can be configured individually for each instance  |