[pygtk] Gtk+ RC Files for Styling Widgets?
I'm working on a project right now where I'll need to do some fancy things with Glade and coloring widgets. My first thought was that for text-containing widgets, I could store the color information in Pango markup and then apply that color to the whole widget at runtime. However, whilst browsing the Glade documentation, I stumbled upon this tantalizing little tidbit: It is also possible to use GTK+ rc files to set the colors fonts of your widgets. If you turn on the 'Set Widget Names' project option in Glade, that may make it easier to refer to your widgets, as you can refer to them by name. See the GTK+ Resource Files documentation at developer.gnome.org/doc/API/gtk/index.html. I see nothing about GTK RC files in the PyGTK documentation. Is there perhaps some way to wrap the relevant functions? Regards, K. __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com. ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
Re: [pygtk] Gtk+ RC Files for Styling Widgets?
http://www.pygtk.org/docs/pygtk/class-gtkrcstyle.html Kevin wrote: I see nothing about GTK RC files in the PyGTK documentation. Is there perhaps some way to wrap the relevant functions? -- Walter Leibbrandt http://translate.org.za/blogs/walter Software Developer +27 12 460 1095 (w) Translate.org.za Recent blogs: * Firefox-style button with a pop-up menu http://www.translate.org.za/blogs/walter/en/content/firefox-style-button-pop-menu * Virtaal's MVCisation * Things that changed the way I code ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
[pygtk] gtk rc files
I'm setting up an application that will be packaged for general use, and I would like to have one or more rc files to control the default settings (styles and default directories, among others). Is it possible to include non-gtk-related items in a gtk rcfile that is processed by rc-parse()? Are there standard methods for parsing the additional values I put in the file? -- Collins Richey - Denver Area - WWTLRD? gentoo(since 01/01/01) 2.4.18+(ext3) xfce-sylpheed-mozilla ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
Re: [pygtk] gtk rc files
On Mon, May 27, 2002 at 08:20:41AM -0600, Collins wrote: Is it possible to include non-gtk-related items in a gtk rcfile that is processed by rc-parse()? Are there standard methods for parsing the additional values I put in the file? IIRC, no, it is not; the rc parser will complain about them. You'll need your own configuration files; I would suggest using Python's ConfigParser module, which works fine. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 272 3330 | NMFL ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/