Baby Language Lab Scripts
A collection of data processing tools.
 All Classes Namespaces Files Functions Variables Pages
app.app.App Class Reference

This is the "abstract" superclass of all _app classes. More...

Inheritance diagram for app.app.App:

Public Member Functions

def __init__
 Constructor. More...
 
def start
 This method must be overridden by subclasses to launch their main startup code. More...
 
def event_loop
 This method starts the gtk+ event loop. More...
 

Public Attributes

 app_type
 

Static Public Attributes

tuple APP_TYPES = Enum('GUI CMD_LINE'.split())
 

Detailed Description

This is the "abstract" superclass of all _app classes.

There is one subclass for each bll application. The launcher module instantiates the appropriate subclass to start the application. This provides a single entry point (the launcher module) for all applications. Subclasses should override the start method to do whatever they need to do to start the app.

Definition at line 12 of file app.py.

Constructor & Destructor Documentation

def app.app.App.__init__ (   self,
  app_name,
  app_type,
  app_icon_filename = None 
)

Constructor.

Parameters
self
app_name(string) module name (name of a file from the app/ directory) of the app being started
app_type(int) a value from the static enum App.APP_TYPES, indicating whether or not to initialize GUI stuff.
app_icon_filename(string=None) path to the icon to use for this application (pass None if this is not a GUI-based app). This icon will be shown in the upper left corner of the title bar of all windows. The path may be absolute, or may be relative to the directory from which launcher.py is being called (typically this is the same directory that is specified by the BLL_APP_ROOT_DIR constant in launcher.py).

Definition at line 20 of file app.py.

Member Function Documentation

def app.app.App.event_loop (   self)

This method starts the gtk+ event loop.

This causes the app to start accepting input from input devices like the keyboard and mouse. launcher.py only calls this if the app instance is App.APP_TYPES.GUI

Definition at line 38 of file app.py.

def app.app.App.start (   self)

This method must be overridden by subclasses to launch their main startup code.

Parameters
self

Definition at line 33 of file app.py.

Member Data Documentation

app.app.App.app_type

Definition at line 21 of file app.py.

tuple app.app.App.APP_TYPES = Enum('GUI CMD_LINE'.split())
static

Definition at line 13 of file app.py.


The documentation for this class was generated from the following file: