StylePickerPanel

Classes:

StylePickerPanel(parent[, id, pos, size, …])

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: Panel

Based 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.DefaultPosition indicates a default position, chosen by either the windowing system or wxWidgets, depending on platform. Default (-1, -1).

  • size – The panel size. The value wx.DefaultSize indicates 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. Default None.

Methods:

add(event)

do_layout()

get_selection()

move([direction])

move_down(event)

move_up(event)

remove(event)

set_properties()

update_picker_preview(*_)

update_preview(list_obj, axes)

update_selection_preview(*_)

add(event)[source]
do_layout()
get_selection()[source]
move(direction=1)[source]
move_down(event)[source]
move_up(event)[source]
remove(event)[source]
set_properties()
update_picker_preview(*_)[source]
update_preview(list_obj, axes)[source]
update_selection_preview(*_)[source]