Class p.u.t.PidaTerminal(Terminal):

Part of pida.ui.terminal View In Hierarchy

No class docstring
Line # Kind Name Docs
98 Method __init__ Undocumented
106 Method set_properties Set properties on the widget
113 Method _fix_size Fix the size of the terminal. Initially the widget starts very large,
120 Method _fix_events Undocumented
123 Method _connect_internal Connect the internal signals
130 Method _init_matches Initialize the matching system
136 Method _get_position_from_pointer Get the row/column position for a pointer position
144 Method _on_button_press Called on a button press
155 Method _on_match_right_clicked Called when there is a right click on the terminal. Internally, this
170 Method get_named_match Get a match object for the name
182 Method match_add_match Add a match object.
190 Method match_add_callback Add a match with a callback.
204 Method match_add_menu Add a menu match object.
211 Method match_menu_register_action Register an action with the named match
220 Method feed_text Feed text to the terminal, optionally coloured.
228 Method get_all_text Undocumented
def __init__(self, **kw):
Undocumented
def set_properties(self, **kw):
Set properties on the widget
def _fix_size(self):
Fix the size of the terminal. Initially the widget starts very large, and is unable to be resized by conventional means.
def _fix_events(self):
Undocumented
def _connect_internal(self):
Connect the internal signals
def _init_matches(self):
Initialize the matching system
def _get_position_from_pointer(self, x, y):
Get the row/column position for a pointer position
def _on_button_press(self, term, event):
Called on a button press
def _on_match_right_clicked(self, term, event, match_num, match_str):
Called when there is a right click on the terminal. Internally, this checks whether there has been a match, and fires the required call back or menu.
def get_named_match(self, name):
Get a match object for the name
Parametersname

the name of the match object

RaisesKeyError

If the named match does not exist

def match_add_match(self, match):
Add a match object.
def match_add_callback(self, name, match_str, match_groups, callback):
Add a match with a callback.
Parametersname

the name of the match

match_str

the regular expression to match

match_groups

a regular expression of groups which wil be passed as parameters to the callback function

callback

the callback function to be called with the result of the match

def match_add_menu(self, name, match_str, match_groups, menu=None):
Add a menu match object.
def match_menu_register_action(self, name, action):
Register an action with the named match
Parametersname

The name of the match

action

A gtk.Action to use in the menu

def feed_text(self, text, color=None):
Feed text to the terminal, optionally coloured.
def get_all_text(self):
Undocumented
API Documentation for PIDA, generated by pydoctor.