[pygtk] not drawing a focus ring on a gtk.Button

spike grobstein spike666 at mac.com
Wed Nov 16 23:17:55 WST 2005


hey,

is there any way to prevent a Button from drawing a focus ring?

i've tried setting the "interior-focus" style property, but it gives  
me an error:

 >>> import pygtk
 >>> import gtk
 >>> w = gtk.Window(gtk.WINDOW_TOPLEVEL)
 >>> b = gtk.Button("BOOBIES")
 >>> s = b.get_style()
 >>> s.set_property("interior-focus", False)
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
TypeError: the object does not support the given parameter
 >>> s.set_property("interior-focus", 0)
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
TypeError: the object does not support the given parameter

am I missing something?

thanks



...spike



More information about the pygtk mailing list