Package pygsear :: Module Widget :: Class Console
[show private | hide private]
[frames | no frames]

Class Console

Widget --+
         |
        Console


Method Summary
  __init__(self, locals, size)
  activate(self)
  deactivate(self)
  handle_exception(self, e)
  handle_pagedown(self, pygame_event)
  handle_pageup(self, pygame_event)
  handle_print(self, text)
  history_next(self, pygame_event)
  history_prev(self, pygame_event)
  make_widget(self)
  modal(self)
  new_line(self, text, prompt)
  resize(self, size)
  run_command(self, text)
Process the next line of input.
  set_modal_events(self)
  toggle_visible(self, pygame_event)
  write(self, text)
    Inherited from Widget
  nop(self, arg)
  set_callback(self, callback)

Method Details

run_command(self, text)

Process the next line of input.

This is called when the user presses ENTER in the console widget. If this new text completes a command, the command is executed, otherwise this text is added to a buffer awaiting the next line.
Parameters:
text - The next line of input. Does not include the newline.

Generated by Epydoc 2.0 on Sat Dec 9 14:11:20 2006 http://epydoc.sf.net