AFXColorComboBox

This class allows the user to select a color from a predefined pallette of colors.


AFXColorComboBox(p, text, tgt=None, sel=0, opts=0, x=0, y=0, w=0, h=0, pl=DEFAULT_PAD, pr=DEFAULT_PAD, pt=DEFAULT_PAD, pb=DEFAULT_PAD)

Constructor.

ArgumentTypeDefaultDescription
pFXComposite Parent widget.
textString Label string.
tgtFXObjectNoneMessage target.
selInt0Message ID.
optsInt0Options and hints.
xInt0X coordinate of origin.
yInt0Y coordinate of origin.
wInt0Width of the widget.
hInt0Width of the widget.
plIntDEFAULT_PADLeft padding (margin).
prIntDEFAULT_PADRight padding (margin).
ptIntDEFAULT_PADTop padding (margin).
pbIntDEFAULT_PADBottom padding (margin).


Global flags

Flags for color selector options.

AFXCOLORCOMBOBOX_INCLUDE_AS_IS

Include "As is" color.

AFXCOLORCOMBOBOX_INCLUDE_DEFAULT

Include "Default" color.