Module collect_aesop1 :: Class gui
[hide private]
[frames] | no frames]

Class gui

source code

             object --+    
                      |    
exp_collection.GUI_base --+
                          |
                         gui

This is the Graphical User Interface for the experimental data collection software.


Note: all the S_* functions represent states during the data collection process. The program hops from one to the other, around in a loop through the S_* functions for each utterance.

Instance Methods [hide private]
 
set_button_texts(self, rs, ns, repeat=None, next=None)
The GUI has two buttons for the subject to press.
source code
 
__init__(self, extra_line_space=5, extra_para_space=5, top_font=None, stim_font=None)
Creates an instance of the GUI.
source code
 
connect_experiment(self, expcall, log)
Connect the GUI to the class that defines the experiment.
source code

Inherited from exp_collection.GUI_base: delete_event, destroy, instr_win, main, make_TextView, make_boxtop, make_buttons, peak_win, progress, set_peaks, status_pop, status_push, stim_win

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

set_button_texts(self, rs, ns, repeat=None, next=None)

source code 

The GUI has two buttons for the subject to press. One moves on to the next paragraph to read; the other repeats the current paragraph.

Parameters:
  • rs (bool) - Should the 'repeat' key accept clicks?
  • ns (bool) - Should the 'next' key accept clicks?
  • repeat (str or None) - A label for the "repeat" button
  • next (str or None) - A label for the "next" button

__init__(self, extra_line_space=5, extra_para_space=5, top_font=None, stim_font=None)
(Constructor)

source code 

Creates an instance of the GUI. (Normally there is just one.)

Parameters:
  • extra_line_space (int, in pixels) - How many extra pixels should separate one line of the stimulus from the next?
  • extra_para_space (int, in pixels) - How many extra pixels should separate one paragraph of the stimulus from the next?
  • top_font (str, passed into pango.FontDescription) - The name of the font used in the top section of the GUI.
  • stim_font (str, passed into pango.FontDescription) - The name of the font used to present the stimulus
Overrides: object.__init__

connect_experiment(self, expcall, log)

source code 

Connect the GUI to the class that defines the experiment.

Parameters:
  • log (normally an instance of fiatio.merged_writer) - A place to log everything that happens in the experiment
  • expcall (a function pointer) - a function that knows how to change the experiment's state in response to keyboard and mouse events.
Overrides: exp_collection.GUI_base.connect_experiment