The ShapeRegion
class.
Default class constructor |
|
Clear the text. |
|
Get the actual colour object from the |
|
Get actual pen. |
|
Get the colour. |
|
Get the font. |
|
Get the format mode. |
|
Get the formatted text. |
|
Get the height. |
|
Get the minimum size. |
|
Get the name. |
|
Get the pen colour |
|
Get the pen style. |
|
Get the position. |
|
Get the proportion. |
|
Get the size. |
|
Get the text. |
|
Get the width. |
|
Set the colour. |
|
Set the font. |
|
Set the format mode of the region. |
|
Set the minimum size. |
|
Set the name. |
|
Set the pen colour. |
|
Set the pen style. |
|
Set the position. |
|
Set the proportions. |
|
Set the size. |
|
Set the text. |
ShapeRegion
(object)¶The ShapeRegion
class.
__init__
(self, region = None)¶Default class constructor
region – a parent region or None???
ClearText
(self)¶Clear the text.
GetActualColourObject
(self)¶Get the actual colour object from the wx.ColourDatabase
.
GetActualPen
(self)¶Get actual pen.
Note
Returns NULL if the pen is invisible (different to pen being transparent; indicates that region boundary should not be drawn.)
GetColour
(self)¶Get the colour.
GetFont
(self)¶Get the font.
GetFormatMode
(self)¶Get the format mode.
GetFormattedText
(self)¶Get the formatted text.
GetHeight
(self)¶Get the height.
GetMinSize
(self)¶Get the minimum size.
GetName
(self)¶Get the name.
GetPenColour
(self)¶Get the pen colour
GetPenStyle
(self)¶Get the pen style.
GetPosition
(self)¶Get the position.
GetProportion
(self)¶Get the proportion.
GetSize
(self)¶Get the size.
GetText
(self)¶Get the text.
GetWidth
(self)¶Get the width.
SetColour
(self, col)¶Set the colour.
col (str) – a valid colour name,
see wx.ColourDatabase
SetFormatMode
(self, mode)¶Set the format mode of the region.
mode – can be a bit list of the following
Format mode |
Description |
---|---|
|
No formatting |
|
Horizontal centring |
|
Vertical centring |
SetMinSize
(self, w, h)¶Set the minimum size.
w – the minimum width
the minimum height
SetName
(self, s)¶Set the name.
s (str) – the name
SetPenColour
(self, col)¶Set the pen colour.
col (str) – a valid colour name,
see wx.ColourDatabase
SetPosition
(self, xp, yp)¶Set the position.
xp – the x position
the y position
SetProportions
(self, xp, yp)¶Set the proportions.
xp – the x region proportion
the y region proportion
SetSize
(self, w, h)¶Set the size.
w – the width
the jeight
SetText
(self, s)¶Set the text.
s (str) – the text