|
class gtk.TextAttributes(gobject.GBoxed): |
|
A gtk.TextAttributes
object holds a set of attributes that describe the properties of a section
of text. A gtk.TextAttributes
object is usually obtained by calling either of the gtk.TextIter.get_attributes
()
or gtk.TextView.get_default_attributes
()
methods to retrieve the attributes in effect.
A gtk.TextAttributes
object created with gtk.TextAttributes() cannot
be applied within PyGTK because there is no way to set the attributes.
Likewise, the copy
()
and copy_values
()
methods can create a new copy or copy the attributes but there are no
methods in PyGTK that take a gtk.TextAttributes
object as an argument. The most effective way to use a gtk.TextAttributes
object is to read its attributes and use them to set the properties of a
gtk.TextTag
.
gtk.TextAttributes()
Returns : | a new gtk.TextAttributes |
Creates a gtk.TextAttributes
object, that contains a set of attributes of some text.
def copy()
Returns : | a copy of the gtk.TextAttributes
object |
The copy
() method copies the text
attributes and returns a new gtk.TextAttributes
object.
def copy_values(dest
)
| the gtk.TextAttributes
whose attributes will be set |
The copy_values
() method copies the
values from the gtk.TextAttributes
object to dest
so that dest
has the same values. Frees existing values in
dest
.
© manpagez.com 2000-2024 Individual documents may contain additional copyright information.