On 06/30/2010 01:43 PM, Lang Hurst wrote:
Is there a way to make a ToggleButton not change state when moused
over?  I set the color of the button when clicked with a line like so:

widget.modify_bg(gtk.STATE_ACTIVE, gtk.gdk.color_parse("light blue"))


Well, after reading the gnome gtk guidlines, I tried to toggle the background when the button is active using

   widget.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.color_parse("light blue"))


because the doc said

   PRELIGHT

   Prelight means mouse over effects. Usually the background will be
   slightly lighter.


but that only succeeded in placing a halo around the button when it was active and moused over. My app will only be used by me, so I can work around this. Still, what a bummer.

--
There are no stupid questions, just stupid people.

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to