Welcome to pyqtgraph!
The arguments for color value can be any valid argument for
pyqtgraph.functions.mkColor. Here's the docstring for that function:
"""
Convenience function for constructing QColor from a variety of argument
types. Accepted arguments are:
================ ================================================
'c' one of: r, g, b, c, m, y, k, w
R, G, B, [A] integers 0-255
(R, G, B, [A]) tuple of integers 0-255
float greyscale, 0.0-1.0
int see :func:`intColor() <pyqtgraph.intColor>`
(int, hues) see :func:`intColor() <pyqtgraph.intColor>`
"RGB" hexadecimal strings; may begin with '#'
"RGBA"
"RRGGBB"
"RRGGBBAA"
QColor QColor instance; makes a copy.
================ ================================================
"""
Hope that helps!
Megan
On Mon, Apr 27, 2020 at 7:31 PM JMA 1 <[email protected]> wrote:
> I'm new to the package and python, which means I'm struggling a bit. When
> trying the parameter_tree.py, the color button that is a child parameter
> does not specify a valid color. When launched, the icon on the r.h.s of
> the parameter value indicates it's a changed value. What is the valid
> syntax for applying a number? When using the color-picker, it generates a
> color object not a number.
>
> examples:
> { 'name' : 'Coplor', 'type' : 'color', 'value' : "FF0", },
>
> child.setValue( format??? )
> "FF0", "0xFF0", "#332211", etc. do not seem to be the correct format
>
> Any ideas?
>
> Thank you in advance.
>
>
> Cheers,
> J -
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyqtgraph" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pyqtgraph/b746d074-5f78-4471-9c40-7421fe718483%40googlegroups.com
> <https://groups.google.com/d/msgid/pyqtgraph/b746d074-5f78-4471-9c40-7421fe718483%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/pyqtgraph/CAOTkkr6U74GjqpMZTjYn80SByG%2BYP7VL97s4kk7zj6kOeQsp-w%40mail.gmail.com.