Simple custom class used to display “old” and “new” colour panels, with alpha blending capabilities.
__init__ | Default class constructor. |
AcceptsFocus | Can this window be given focus by mouse click? .. |
AcceptsFocusFromKeyboard | Can this window be given focus by keyboard navigation? If not, the |
OnEraseBackground | Handles the wx.EVT_ERASE_BACKGROUND for ColourPanel. |
OnPaint | Handles the wx.EVT_PAINT for ColourPanel. |
OnSize | Handles the wx.EVT_SIZE for ColourPanel. |
RefreshColour | Refresh the panel after a colour/alpha change. |
Simple custom class used to display “old” and “new” colour panels, with alpha blending capabilities.
Default class constructor. Used internally. Do not call it in your code!
Parameters: |
|
---|
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.PyPanel.
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.PyPanel.
Handles the wx.EVT_ERASE_BACKGROUND for ColourPanel.
Parameters: | event – a wx.EraseEvent event to be processed. |
---|
Note
This is intentionally empty to reduce flicker.
Handles the wx.EVT_PAINT for ColourPanel.
Parameters: | event – a wx.PaintEvent event to be processed. |
---|
Handles the wx.EVT_SIZE for ColourPanel.
Parameters: | event – a wx.SizeEvent event to be processed. |
---|
Refresh the panel after a colour/alpha change.
Parameters: | colour – the new background colour of ColourPanel. |
---|