wx.lib.agw.cubecolourdialog.BaseLineCtrl¶
Base class used to hold common code for the Alpha channel control and the brightness palette control.
Class Hierarchy¶
Known Subclasses¶
wx.lib.agw.cubecolourdialog.AlphaCtrl
, wx.lib.agw.cubecolourdialog.BrightCtrl
Known Superclasses¶
Methods Summary¶
Default class constructor. |
|
Can this window be given focus by mouse click? |
|
Can this window be given focus by keyboard navigation? If not, the |
|
Internal method. |
|
Overridden base class virtual. Determines the best size of the control. |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
|
Handles the |
Class API¶
- class BaseLineCtrl(wx.Control)¶
Base class used to hold common code for the Alpha channel control and the brightness palette control.
Methods¶
- __init__(self, parent)¶
Default class constructor. Used internally. Do not call it in your code!
- Parameters:
parent – the control parent window.
- 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
.
- BuildRect(self)¶
Internal method.
- DoGetBestSize(self)¶
Overridden base class virtual. Determines the best size of the control.
Note
Overridden from
wx.Control
.
- OnEraseBackground(self, event)¶
Handles the
wx.EVT_ERASE_BACKGROUND
forBaseLineCtrl
.- Parameters:
event – a
EraseEvent
event to be processed.
Note
This is intentionally empty to reduce flicker.
- OnLeftDown(self, event)¶
Handles the
wx.EVT_LEFT_DOWN
forBaseLineCtrl
.- Parameters:
event – a
MouseEvent
event to be processed.
- OnLeftUp(self, event)¶
Handles the
wx.EVT_LEFT_UP
forBaseLineCtrl
.- Parameters:
event – a
MouseEvent
event to be processed.
- OnMotion(self, event)¶
Handles the
wx.EVT_MOTION
forBaseLineCtrl
.- Parameters:
event – a
MouseEvent
event to be processed.
- OnSize(self, event)¶
Handles the
wx.EVT_SIZE
forBaseLineCtrl
.- Parameters:
event – a
wx.SizeEvent
event to be processed.