How to set the color of a text, or a label.
25 Jan 2012 23:49 #17138
by dab77
How to set the color of a text, or a label. was created 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.
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.
Please Log in or Create an account to join the conversation.
26 Jan 2012 00:10 #17139
by dab77
Replied by dab77 on topic Re:How to set the color of a text, or a label.
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.
gonna give this a try.
Please Log in or Create an account to join the conversation.
26 Jan 2012 01:17 #17144
by dab77
Replied by dab77 on topic Re:How to set the color of a text, or a label.
Please Log in or Create an account to join the conversation.
26 Jan 2012 06:55 #17145
by mhaberler
Replied by mhaberler on topic Re:How to set the color of a text, or a label.
what type of widget is the 'Entry' you are referring to?
-m
-m
Please Log in or Create an account to join the conversation.
26 Jan 2012 09:08 #17147
by dab77
Replied by dab77 on topic Re:How to set the color of a text, or a label.
gtkEntry. that one in the snapshot.
Please Log in or Create an account to join the conversation.
26 Jan 2012 13:52 #17156
by dab77
Replied by dab77 on topic Re:How to set the color of a text, or a label.
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'
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.
26 Jan 2012 15:10 #17160
by mhaberler
Replied by mhaberler on topic Re:How to set the color of a text, or a label.
your artists are a tad overweight
-m
-m
Please Log in or Create an account to join the conversation.
26 Jan 2012 15:38 #17162
by dab77
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!
Replied by dab77 on topic Re:How to set the color of a text, or a label.
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.074 seconds