The Following User Says Thank You to twaelti For This Useful Post: | ||
![]() |
2010-02-12
, 08:48
|
Posts: 883 |
Thanked: 980 times |
Joined on Jul 2007
@ Bern, Switzerland
|
#12
|
Basically I have a hildon.Button (also tried with plain gtk.Button) and I want to change the background color between red and green based on state changes.
1. Put the whole button inside eventbox and change eventbox background (the "official" GTK workaround to the fact that buttons do not generally allow background to be messed with), does "nothing" (ie the button with the default background and all is drawn on top of the eb).
2. Put the first child of the hildon.Button (gtk.Alignment) inside the eventbox: makes ugly mess where there is rectangular box inside the button area with the gray button borders visible, click only works if done in the gray border (i guess the eventbox could be connected to the signals as well, but since this looks fugly I didn't bother experimenting with that).
![]() |
2010-02-12
, 22:08
|
Posts: 529 |
Thanked: 46 times |
Joined on Sep 2007
|
#13
|
Darius2006: I know your on another mission right now, but it is generally considered highly impolite to hijack a thread by posting other, quite unrelated questions.
![]() |
2010-02-12
, 23:47
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#14
|
![]() |
2010-02-13
, 23:44
|
Posts: 529 |
Thanked: 46 times |
Joined on Sep 2007
|
#15
|
Darious, you can also open new threads for python development discussion, PM me if you wish my comments to some thread (though I'm not really an expert).
![]() |
2010-08-15
, 21:21
|
|
Posts: 405 |
Thanked: 961 times |
Joined on Dec 2009
@ London, UK
|
#16
|
-Tom (N900, N810, N800)
"the idea of truly having a computer in your pocket just moved a big step closer."