StylePickerPanel¶
Classes:
|
Based on StylePickerPanel, a Panel for selecting a list of colours, and their order. |
-
class
StylePickerPanel(parent, id=- 1, pos=(- 1, - 1), size=(- 1, - 1), style=524288, name=b'panel', label='Choose Styles: ', selection_choices=None)[source]¶ Bases:
PanelBased on StylePickerPanel, a Panel for selecting a list of colours, and their order.
- Parameters
parent (
Window) – The parent window.id – An identifier for the panel. wx.ID_ANY is taken to mean a default. Default
-1.pos – The panel position. The value
wx.DefaultPositionindicates a default position, chosen by either the windowing system or wxWidgets, depending on platform. Default(-1, -1).size – The panel size. The value
wx.DefaultSizeindicates a default size, chosen by either the windowing system or wxWidgets, depending on platform. Default(-1, -1).style – The window style. See wxPanel. Default
524288.name – The window name. Default
b'panel'.label – Label for the panel. Default
'Choose Styles: '.selection_choices (
Optional[List[str]]) – A list of hex value choices to populate the ‘selection’ side of the panel with. DefaultNone.
Methods:
add(event)move([direction])move_down(event)move_up(event)remove(event)update_preview(list_obj, axes)-
do_layout()¶
-
set_properties()¶