Previous | Next

Python UI Options

(PF_INT, "number", "Number?", 50),
(PF_FLOAT, "angle", "Angle", 3.14159),
# you can also use PF_INT8, PF_INT16, PF_INT32
(PF_STRING, "word", "Word", "Zebrafish!"),
# PF_VALUE is another term for PF_STRING
(PF_TEXT, "text", "Some Text",
  "The quick red fox jumped over the lazy dog"),

(PF_COLOR, "bg-color", "Background", (1.0, 0.0, 0.0)),
# or you can spell it PF_COLOUR

(PF_IMAGE, "image", "Input image", None),
(PF_LAYER, "layer", "Input layer", None),
(PF_CHANNEL, "channel", "Which channel", None),
(PF_DRAWABLE, "drawable", "Input drawable", None),

(PF_TOGGLE, "shadow", "Shadow?", 1),
(PF_BOOL,   "ascending", "_Ascending", True),
(PF_RADIO, "imagefmt", "Image format", "jpg",
  (("png", "png"), ("jpg", "jpg"))),
(PF_OPTION, "option", "Option", 2, ("Mouse", "Cat", "Dog", "Horse")),

(PF_SPINNER, "size", "Pixel Size", 50, (1, 8000, 1)),
(PF_SLIDER, "opacity",  "Op_acity", 100, (0, 100, 1)),
# (PF_ADJUSTMENT is the same as PF_SPINNER

(PF_FILE, "imagefile", "Image file", ""),
(PF_DIRNAME, "dir", "Directory", "/tmp"),

(PF_FONT, "font", "Font", "Sans"),
(PF_BRUSH, "brush", "Brush", None),
(PF_PATTERN, "pattern", "Pattern", None),
(PF_GRADIENT, "gradient", "Gradient", None),
(PF_PALETTE, "palette",  "Palette", ""),