On Wed, Mar 23, 2011 at 07:22, Greg Ewing <[email protected]> wrote: > Are there any examples of using gi to access a GtkStyleContext? > I'm completely failing to get anything useful out of it.
Hi, see here: http://library.gnome.org/devel/gtk/unstable/ch25s02.html#gtk-migrating-GtkStyleContext Would be good to have similar documentation for Python. Regards, Tomeu >>>> w = Gtk.Window.new(Gtk.WindowType.TOPLEVEL) >>>> w.set_visible(True) >>>> s = w.get_style_context() >>>> s.get_property("cursor-color", Gtk.StateFlags.SELECTED) > > (.:378): Gtk-WARNING **: Style property "cursor-color" is not registered > > Since "cursor-color" is listed as a style property for the > Widget class, I would have expected all widgets to have it. > > -- > Greg > _______________________________________________ > pygtk mailing list [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ > _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
