holds attributes that can be applied to a range of text in a
A texttag can be associated with more than one
by adding it to the
objects of the textbuffers. The attributes of a texttag can be set using the
method. Since not every attribute property of a
gtk.TextTag may be
set each attribute property has a boolean property that indicates whether
the attribute property is set by this texttag. Therefore before retrieving
an attribute value from a texttag you have to check if the associated
boolean property of the attribute property is
|tag name, or
None if the
texttag is anonymous
the name specified by
None the texttag will be
anonymous. The texttag attributes are configured using the
|the texttag's priority.
The get_priority() method returns the priority or the texttag.
|the new priority
set_priority() method sets the
priority of a
gtk.TextTag to the
value specified by
priority. Valid priorities start
at 0 and go to one less than the value returned by the
method. Each texttag in a table has a unique priority; setting the priority
of one texttag shifts the priorities of all the other texttags in the table
to maintain a unique priority for each texttag. Higher priority tags "win"
if two texttags both set the same text attribute for a range of text. When
adding a texttag to a
it will be assigned the highest priority in the table by default; so
normally the precedence of a set of texttags is the order in which they were
added to the table, or created with the
method, that adds the texttag to the buffer's table automatically.
|the object that received the event, such as a widget
|the location where the event was received
|the result of signal emission (whether the event was handled)
event() method emits the "event"
signal on the
gtk.TextTag for the
widget specified by
event_object with the event
event at the textbuffer location
iter. This method returns
True if the event was handled.
|the texttag that received the signal
|the widget that received
pointing to the location where the event was received
|the first user parameter (if any) specified
|additional user parameters (if any)
The "event" signal is emitted when an event occurs in a range of
text that is enclosed in the
texttag. The widget that
the event occurred in is specified by
iter holds the location that the event occurred at
event describes the event.
© manpagez.com 2000-2024 Individual documents may contain additional copyright information.