style_picker

Dialogs for choosing Matplotlib colours and styles.

Classes:

ColourPicker(parent[, title, label, …])

Dialog for choosing Matplotlib colours.

StylePicker(parent[, title, label, …])

Dialog for choosing Matplotlib marker styles.

class ColourPicker(parent, title='Choose Colours', label='Choose Colours: ', picker_choices=None, selection_choices=None, *args, **kwds)[source]

Bases: StylePicker

Dialog for choosing Matplotlib colours.

Parameters
  • parent (Window) – Parent window. Should not be None.

  • title (str) – The dialog title. Default 'Choose Colours'.

  • label (str) – The dialog label. Default 'Choose Colours: '.

  • selection_choices (Optional[List]) – Default None.

  • *args – Additional arguments passed to wx.Dialog.

  • **kwds – Additional keyword arguments passed to wx.Dialog.

Methods:

apply(event)

Called when the user presses the Apply button.

apply(event)[source]

Called when the user presses the Apply button.

Parameters

event – The wxPython event.

class StylePicker(parent, title='Choose Styles', label='Choose Styles: ', selection_choices=None, *args, **kwds)[source]

Bases: Dialog

Dialog for choosing Matplotlib marker styles.

Parameters
  • parent (Window) – Parent window. Should not be None.

  • title (str) – The dialog title. Default 'Choose Styles'.

  • label (str) – The dialog label. Default 'Choose Styles: '.

  • selection_choices (Optional[List]) – Default None.

  • *args – Additional arguments passed to wx.Dialog.

  • **kwds – Additional keyword arguments passed to wx.Dialog.

Methods:

apply(event)

Called when the user presses the Apply button.

cancel(_)

Called when the user presses the Cancel button.

apply(event)[source]

Called when the user presses the Apply button.

Parameters

event – The wxPython event.

cancel(_)[source]

Called when the user presses the Cancel button.