BPArt is an art provider class which does all of the drawing for ButtonPanel. This allows the library caller to customize the BPArt or to completely replace all drawing with custom BPArts.
__init__ | Default class constructor. |
DrawButton | Draws a button in ButtonPanel, together with its text (if any). |
DrawButtonPanel | Paint the ButtonPanel‘s background. |
DrawCaption | Draws the main caption text in ButtonPanel. |
DrawLabel | Draws the label for a button. |
DrawSeparator | Draws a separator in ButtonPanel. |
FillGradientColour | Gradient fill from colour 1 to colour 2 with top to bottom or left to right. |
GetColor | Returns the option value for the specified colour id. |
GetColour | Returns the option value for the specified colour id. |
GetFont | Returns the option value for the specified font id. |
GetGradientType | Returns the gradient type for BPArt drawings. |
GetMetric | Returns the option value for the specified size id. |
SetColor | Sets the option value for the specified colour id. |
SetColour | Sets the option value for the specified colour id. |
SetFont | Sets the option value for the specified font id. |
SetGradientType | Sets the gradient type for BPArt drawings. |
SetMetric | Sets the option value for the specified size id. |
BPArt is an art provider class which does all of the drawing for ButtonPanel. This allows the library caller to customize the BPArt or to completely replace all drawing with custom BPArts.
Default class constructor.
Parameters: | parentStyle (integer) – the window style for ButtonPanel. |
---|
Draws a button in ButtonPanel, together with its text (if any).
Parameters: |
|
---|
Paint the ButtonPanel‘s background.
Parameters: |
|
---|
Draws the main caption text in ButtonPanel.
Parameters: |
|
---|
Draws the label for a button.
Parameters: |
|
---|
Draws a separator in ButtonPanel.
Parameters: |
|
---|
Gradient fill from colour 1 to colour 2 with top to bottom or left to right.
Parameters: |
|
---|
Returns the option value for the specified colour id.
Parameters: | internal`id` – the identification bit for the colour value. This can be one of the
following bits:
|
|||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: | An instance of wx.Colour for the input id. | |||||||||||||||||||||||||||||||||
Raise : | Exception if the id is not recognized. |
Returns the option value for the specified colour id.
Parameters: | internal`id` – the identification bit for the colour value. This can be one of the
following bits:
|
|||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: | An instance of wx.Colour for the input id. | |||||||||||||||||||||||||||||||||
Raise : | Exception if the id is not recognized. |
Returns the option value for the specified font id.
Parameters: | id (integer) – the identification bit for the font value. This can be one of the
following bits:
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Returns: | An instance of wx.Font for the input id. | |||||||||
Raise : | Exception if the id is not recognized. |
Returns the gradient type for BPArt drawings.
Returns: | An integer representing the gradient type. |
---|
See also
SetGradientType for a list of possible gradient types.
Returns the option value for the specified size id.
Parameters: | id (integer) – the identification bit for the size value. This can be one of the
following bits:
|
|||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns: | An integer representing the option value for the input id. | |||||||||||||||
Raise : | Exception if the id is not recognized. |
Sets the option value for the specified colour id.
Parameters: |
|
---|---|
Raise : | Exception if the id is not recognized. |
See also
GetColour for a list of meaningful colour ids.
Sets the option value for the specified colour id.
Parameters: |
|
---|---|
Raise : | Exception if the id is not recognized. |
See also
GetColour for a list of meaningful colour ids.
Sets the option value for the specified font id.
Parameters: |
|
---|---|
Raise : | Exception if the id is not recognized. |
See also
GetFont for a list of meaningful font ids.
Sets the gradient type for BPArt drawings.
Parameters: | gradient (integer) – can be one of the following bits:
|
---|
Sets the option value for the specified size id.
Parameters: |
|
---|---|
Raise : | Exception if the id is not recognized. |
See also
GetMetric for a list of meaningful size ids.