[pygtk] rc file discrepancy/bug?
Chris Cole
ccole2 at mix.wvu.edu
Wed Nov 28 10:19:13 WST 2007
Based on an earlier e-mail I sent I was confused about using pathnames =
in rc files to do something really simple like set the background color =
of a gtkbutton using rc files. I've attached four things:
1. rc - simple rc file to set a background color on a button based
on a widget hierarchy pattern
2. test.glade - a simple glade layout
3. glade.py - simple python code to load test.glade file and use rc
style
4. noglade.py - another simple python script to replicate the widget
hierarchy being used in test.glade w/o using glade to generate the
layout
The hierarchy given in both glade.py and noglade.py is:
-- GtkWindow -> GtkVBox -> GtkButton
However, running glade.py and noglade.py gives conflicting results, yet =
everything appears to be the same? How come the rc style rule doesn't =
work when the gui is generated with glade??? Am I missing something =
really obvious or is this a bug?
Thanks,
Chris
-------------- next part --------------
style "button-style"
{
bg[NORMAL] =3D { 1.0, 0, 0 }
}
widget "window.*.GtkButton" style "button-style"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.glade
Type: application/x-glade
Size: 1294 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20071127/5adc1785/t=
est.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glade.py
Type: text/x-python
Size: 238 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20071127/5adc1785/g=
lade.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noglade.py
Type: text/x-python
Size: 257 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20071127/5adc1785/n=
oglade.py
More information about the pygtk
mailing list