Base class used to hold common code for the HSB colour wheel and the RGB colour cube.
wx.lib.agw.cubecolourdialog.HSVWheel
, wx.lib.agw.cubecolourdialog.RGBCube
Default class constructor. |
|
Can this window be given focus by mouse click? |
|
Can this window be given focus by keyboard navigation? If not, the |
|
Overridden base class virtual. Determines the best size of the |
|
Draws the lines connecting the markers on top of the background bitmap. |
|
Draws the markers on top of the background bitmap. |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
BasePyControl
(wx.Control)¶Base class used to hold common code for the HSB colour wheel and the RGB colour cube.
__init__
(self, parent, bitmap=None)¶Default class constructor. Used internally. Do not call it in your code!
parent – the control parent;
bitmap – the background bitmap for this custom control.
AcceptsFocus
(self)¶Can this window be given focus by mouse click?
Note
This method always returns False
as we do not accept focus from
mouse click.
Note
Overridden from wx.Control
.
AcceptsFocusFromKeyboard
(self)¶Can this window be given focus by keyboard navigation? If not, the only way to give it focus (provided it accepts it at all) is to click it.
Note
This method always returns False
as we do not accept focus from
the keyboard.
Note
Overridden from wx.Control
.
DoGetBestSize
(self)¶Overridden base class virtual. Determines the best size of the control based on the bitmap size.
Note
Overridden from wx.Control
.
DrawLines
(self, dc)¶Draws the lines connecting the markers on top of the background bitmap.
dc – an instance of wx.DC
.
Note
This method must be overridden in derived classes.
DrawMarkers
(self, dc=None)¶Draws the markers on top of the background bitmap.
dc – an instance of wx.DC
.
Note
This method must be overridden in derived classes.
OnEraseBackground
(self, event)¶Handles the wx.EVT_ERASE_BACKGROUND
for BasePyControl
.
event – a EraseEvent
event to be processed.
Note
This is intentionally empty to reduce flicker.
OnLeftDown
(self, event)¶Handles the wx.EVT_LEFT_DOWN
for BasePyControl
.
event – a MouseEvent
event to be processed.
Note
This method must be overridden in derived classes.
OnLeftUp
(self, event)¶Handles the wx.EVT_LEFT_UP
for BasePyControl
.
event – a MouseEvent
event to be processed.
Note
This method must be overridden in derived classes.
OnMotion
(self, event)¶Handles the wx.EVT_MOTION
for BasePyControl
.
event – a MouseEvent
event to be processed.
Note
This method must be overridden in derived classes.
OnPaint
(self, event)¶Handles the wx.EVT_PAINT
for BasePyControl
.
event – a PaintEvent
event to be processed.
OnSize
(self, event)¶Handles the wx.EVT_SIZE
for BasePyControl
.
event – a wx.SizeEvent
event to be processed.