Logo Search packages:      
Sourcecode: accerciser version File versions

def event_monitor::EventMonitor::_createHyperlink (   self,
  acc 
) [private]

Create a hyperlink tag for a given accessible. When the link is double 
clicked the accessible is selected in the main program.

@param acc: The accessible to create the tag for.
@type acc: Accessibility.Accessible

@return: The new hyperlink tag
@rtype: gtk.TextTag

Definition at line 357 of file event_monitor.py.

00357                                  :
    '''
    Create a hyperlink tag for a given accessible. When the link is double 
    clicked the accessible is selected in the main program.
    
    @param acc: The accessible to create the tag for.
    @type acc: Accessibility.Accessible
    
    @return: The new hyperlink tag
    @rtype: gtk.TextTag
    '''
    hyperlink = self.monitor_buffer.create_tag(
      None, 
      foreground='blue',
      underline=pango.UNDERLINE_SINGLE)
    hyperlink.connect('event', self._onLinkClicked)
    hyperlink.set_data('acc', acc)
    hyperlink.set_data('islink', True)
    return hyperlink

  def _onLinkClicked(self, tag, widget, event, iter):


Generated by  Doxygen 1.6.0   Back to index