Module exp_collection :: Class GUI_base
[hide private]
[frames] | no frames]

Class GUI_base

source code

object --+
         |
        GUI_base
Known Subclasses:

Base class for the data-collection graphical user interface.

Instance Methods [hide private]
 
delete_event(self, widget, event, data=None) source code
 
destroy(self, widget, data=None)
Shut down the GUI.
source code
 
connect_experiment(self, expcall, log)
Connect the class that describes the experiment to the GUI.
source code
 
make_TextView(self, extra_line_space, extra_para_space, font_name) source code
 
make_buttons(self, boxtop) source code
 
make_boxtop(self, font_name) source code
 
__init__(self, extra_line_space=5, extra_para_space=5, stim_font=None, top_font=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
main(self)
Call this to start the GUI going.
source code
 
progress(self, i, n)
Set the position of the progress bar.
source code
 
status_push(self, context_id, message)
Push some text onto the status bar.
source code
 
status_pop(self, context_id)
Pop some text off the status bar.
source code
 
stim_win(self)
Return a pointer to the stimulus area.
source code
 
peak_win(self)
Return a pointer to the area that displays the peak amplitude.
source code
 
instr_win(self)
Return a pointer to the instruction area.
source code
 
set_peaks(self, peaks)
Set the displayed peak amplitude.
source code

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]

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

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

progress(self, i, n)

source code 

Set the position of the progress bar. The idea is that i out of n items have been completed.

Parameters:
  • i (int) - How much has been done.
  • n (int) - What's the total amount of work.

status_push(self, context_id, message)

source code 

Push some text onto the status bar.

Parameters:
  • context_id (int) - What category of the thing?
  • message (str) - The thing to display in the "status" area.

status_pop(self, context_id)

source code 

Pop some text off the status bar. The most recent text of the specified category is removed.

Parameters:
  • context_id (int) - What category of the thing?