pango.TabArrayan object containing an array of tab stops.Synopsispango.TabArraygobject.GBoxedpango.TabArrayinitial_sizepositions_in_pixelscopyget_sizeresizenew_sizeset_tabtab_indexalignmentlocationget_tabtab_indexget_tabsget_positions_in_pixelsDescriptionA pango.TabArray
object contains an array of tab stops. Each tab stop has an alignment and a
position.Constructorpango.TabArrayinitial_sizepositions_in_pixelsinitial_size :Initial number of tab stops to allocate, can be
0positions_in_pixels :if True the tab positions are
in pixel unitsReturns :a pango.TabArrayCreates a new pango.TabArray
object with the number of tab stops specified by
initial_size. If
positions_in_pixels is True, the
tab stop positions are specified in pixel units otherwise in pango units
(one pixel = pango.SCALE pango units). All tab stops are
initially at position 0.Methodspango.TabArray.copycopyReturns :a new pango.TabArray
objectThe copy() method returns a new pango.TabArray
that is copy of this pango.TabArray.pango.TabArray.get_sizeget_sizeReturns :the number of tab stops in the
array.The get_size() method returns the
number of tab stops in the tab array.pango.TabArray.resizeresizenew_sizenew_size :the new size of the arrayThe resize() method sets the size of
the tab array to the value specified by new_size. You
must subsequently initialize any tabs that were added to the array.pango.TabArray.set_tabset_tabtab_indexalignmentlocationtab_index :the index of a tab stopalignment :the tab alignmentlocation :the tab location in pango
unitsThe set_tab() method sets the specified
alignment and location of the
tab stop specified by tab_index. The value of
alignment must always be
pango.TAB_LEFT in the current implementation.pango.TabArray.get_tabget_tabtab_indextab_index :the tab stop indexReturns :a 2-tuple containing the tab alignment and
positionThe get_tab() method returns a 2-tuple
containing the alignment and position of the tab stop specified by
tab_index.pango.TabArray.get_tabsget_tabsReturns :a tuple containing a list of 2-tuples (each
holding the alignment and position of a tab stop).The get_tabs() method returns a tuple
containing a list of 2-tuples (each holding the alignment and position of a
tab stop)pango.TabArray.get_positions_in_pixelsget_positions_in_pixelsReturns :True if tab stop positions
are specified in pixelsThe get_positions_in_pixels() method
returns True if the tab positions are specified in
pixels and False if they are in pango units.