gtk.Borderan object containing data for a border (new in PyGTK 2.4)Synopsisgtk.Bordergobject.GBoxedcopyfreeAttributesAll attributes are available in PyGTK 2.16 and above.
"left"Read-WriteThe width of the left border margin."right"Read-WriteThe width of the right border margin."top"Read-WriteThe width of the bottom border margin."bottom"Read-WriteThe width of the bottom border margin.
DescriptionThis object is available in PyGTK 2.4 and above.A gtk.Border object
contains the integer values for the left, right, top and bottom values of a
border. gtk.Border is used
in gtk.Style
specifications. gtk.Border has two
methods: copy() and
free().Starting with PyGTK 2.16 you can also
treat gtk.Border
objects as sequences of 4 integer values. E.g. you can convert to a tuple or read
and assign individual values by index.Constructorgtk.Borderleft0right0top0bottom0left :the width of the left marginright :the width of the right margintop :the width of the top marginbottom :the width of the bottom marginReturns :a new gtk.gdk.Rectangle
objectThis constructor is available in PyGTK 2.16 and above.Creates a
new gtk.Border with
the attributes specified
by left, right, top
and bottom. Any unspecified attributes default to 0.Methodsgtk.Border.copycopyReturns :a copy of the border.This method is available in PyGTK 2.4 and above.The copy() method returns a copy of the
border object.gtk.Border.freefreeThis method is available in PyGTK 2.4 and above.This method is deprecated and should not be used since it can
crash your application.The free() method frees the memory used
by the border.