Discussion:
how to change item color
g***@public.gmane.org
2013-04-12 20:32:23 UTC
Permalink
I have a very simple question: how is possible to programmatically change
the color of a item (in my case a circle create with make.cercle) from the
default yellow to, for instance, red?
Thanks
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Eric McDonald
2013-04-14 14:49:29 UTC
Permalink
I've done this for labels/etc. and I believe the only way is to use
set_item_parameter (or something like that - I don't have the code handy).
So what I did was create a function that was "set_label_parameter" which
would take in "param_name, param_value, label" and then something like:

params = label.get_item_parameter(),
params.param_name = param_value
label.set_item_parameter(params)

Hope that helps.
Eric
Post by g***@public.gmane.org
I have a very simple question: how is possible to programmatically change
the color of a item (in my case a circle create with make.cercle) from the
default yellow to, for instance, red?
Thanks
--
You received this message because you are subscribed to the Google Groups
"guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqwt+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
Continue reading on narkive:
Loading...