Package pyrobot :: Package gui :: Class gui
[frames | no frames]

Class gui

Known Subclasses:
TKgui, TTYGui

This is the base class for a gui.

Method Summary
  __init__(self, name, options, engine)
Child classes should do initialization pertaining to the creation of the GUI in the constructor.
  addCommandHistory(self, command)
  cleanup(self)
  fileloaddialog(self, type, skel, olddir)
Read a line from user...
  filesavedialog(self, type, skel, startdir)
Read a line from user...
  formatExceptionInfo(self, maxTBlevel)
  freeBrain(self)
  freeRobot(self)
  inform(self, message)
  INThandler(self, signum, frame)
  listCommandHistory(self, search)
  loadBrain(self)
  loadDevice(self)
  loadRobot(self)
  loadSim(self, worldfile)
  makeMenu(self, name, commands)
Could bind a key right here ^1, ^2, ^3...
  makeWatcher(self)
Text-based watcher...
  newBrain(self)
Tk gui overrides this method.
  printCommandLine(self)
  processCommand(self, retval)
  redraw(self)
  resetEngine(self)
  run(self, command)
Child classes should do the beef of what they do right here.
  runEngine(self)
  setCurrentConfig(self, config)
  stepBack(self)
  stepEngine(self)
  stepForward(self)
  stepLeft(self)
  stepRight(self)
  stopEngine(self)
  stopRotate(self)
  stopTranslate(self)
  watch(self, exp)

Method Details

__init__(self, name='abstract gui', options={}, engine=0)
(Constructor)

Child classes should do initialization pertaining to the creation
of the GUI in the constructor.

fileloaddialog(self, type, skel, olddir='')

Read a line from user

filesavedialog(self, type, skel, startdir='')

Read a line from user

makeMenu(self, name, commands)

Could bind a key right here ^1, ^2, ^3...

makeWatcher(self)

Text-based watcher

newBrain(self)

Tk gui overrides this method.

run(self, command=[])

Child classes should do the beef of what they do right here.

Generated by Epydoc 2.1 on Mon Jul 25 01:39:25 2005 http://epydoc.sf.net