wx.lib.agw.cubecolourdialog.ColourPanel¶
Simple custom class used to display “old” and “new” colour panels, with alpha blending capabilities.
Class Hierarchy¶
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 |
|
Handles the |
|
Handles the |
|
Handles the |
|
Refresh the panel after a colour/alpha change. |
Class API¶
- class ColourPanel(wx.Panel)¶
Simple custom class used to display “old” and “new” colour panels, with alpha blending capabilities.
Methods¶
- __init__(self, parent, style=wx.SIMPLE_BORDER)¶
Default class constructor. Used internally. Do not call it in your code!
- Parameters:
parent – the control parent window;
style – the
wx.ColourPanelwindow style.
- AcceptsFocus(self)¶
Can this window be given focus by mouse click?
Note
This method always returns
Falseas we do not accept focus from mouse click.Note
Overridden from
Panel.
- 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
Falseas we do not accept focus from the keyboard.Note
Overridden from
Panel.
- OnEraseBackground(self, event)¶
Handles the
wx.EVT_ERASE_BACKGROUNDforwx.ColourPanel.- Parameters:
event – a
EraseEventevent to be processed.
Note
This is intentionally empty to reduce flicker.
- OnPaint(self, event)¶
Handles the
wx.EVT_PAINTforwx.ColourPanel.- Parameters:
event – a
PaintEventevent to be processed.
- OnSize(self, event)¶
Handles the
wx.EVT_SIZEforwx.ColourPanel.- Parameters:
event – a
wx.SizeEventevent to be processed.
- RefreshColour(self, colour)¶
Refresh the panel after a colour/alpha change.
- Parameters:
colour – the new background colour of
wx.ColourPanel.