How to set the color of a text, or a label.

More
25 Jan 2012 23:49 #17138 by dab77
Hi, in this gladevcp window:

i need to change something into the 'Tensione - kg' field, or into its label.
The best thing should be change the background color of the text, but also the label's background should be ok.

what i tried is:
self.builder.get_object('label9').background_color = "#ffff00000000"

but it doesn't work. Maybe my fault in something, but can someone tell me if it's right or not?

Thanks, Davide.
Attachments:

Please Log in or Create an account to join the conversation.

More
26 Jan 2012 00:10 #17139 by dab77
oh, maybe it has something to deal with this: faq.pygtk.org/index.py?req=show&file=faq07.005.htp

gonna give this a try.

Please Log in or Create an account to join the conversation.

More
26 Jan 2012 01:17 #17144 by dab77
Yes, it works...

..but as much as i can only for labels. i couldn't with an entry.
Attachments:

Please Log in or Create an account to join the conversation.

More
26 Jan 2012 06:55 #17145 by mhaberler
what type of widget is the 'Entry' you are referring to?

-m

Please Log in or Create an account to join the conversation.

More
26 Jan 2012 09:08 #17147 by dab77
gtkEntry. that one in the snapshot.

Please Log in or Create an account to join the conversation.

More
26 Jan 2012 13:52 #17156 by dab77
my fault. gtkEntry doesn't need to sit into an EventBox... Sorry!
and with that you have to use 'base' and 'text' color, instead of 'bg' and 'fg'

Please Log in or Create an account to join the conversation.

More
26 Jan 2012 15:10 #17160 by mhaberler
your artists are a tad overweight ;)

-m

Please Log in or Create an account to join the conversation.

More
26 Jan 2012 15:38 #17162 by dab77
:laugh:
yes, in my simulation i hung fat women!
'till now, in the thruth i cannot hung anything over 15kg dealing with motor power, but still i miss security brakes (waiting for funds to grow..), so i'm limited again to just half a kg!!

Tchuss!

Please Log in or Create an account to join the conversation.

Moderators: HansU
Time to create page: 0.077 seconds
Powered by Kunena Forum