Re: [pygtk] Setting an RC style to a widget from libglade




Hi,

I'm doing a simple test that creates a window through libglade's GladeXML.
I would like the widgets in this window to be styles according to an RC
style. However, though I call gtk.rc_parse("foo") before doing the actual
loading, the widgets show up unstyled (i.e. in the default gtk style).

Widgets created directly work fine, and appear styled. Widgets that are
created through libglade as part of a glade file don't.

Has somebody managed to do this before?

I do this:

wtree = libglade.GladeXML(glade_file)
...
gtk.rc_parse(rc_file_path)

and it seems to work fine.


Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 272 3330 | NMFL

_______________________________________________
pygtk mailing list   pygtk daa com au
http://www.daa.com.au/mailman/listinfo/pygtk

-- 
Steve McClure                   430 10th St NW
Racemi                          Suite N-210
http://www.racemi.com           Atlanta, GA 30318
smcclure racemi com             voice/fax: 404-892-5850






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]