Re: [pygtk] How to set background of a label! HELP!!!

2002-07-01 Thread Graham Ashton

On Mon, 2002-07-01 at 01:04, Jacek Pliszka wrote:
 On Sun, 30 Jun 2002, Matt Wilson wrote:
 
 I added event_box as John suggested and background did work.
 
 But foreground does not. Is there a simpl way to do it?

Try this:

http://www.moeraki.com/pygtktutorial/ch-settingwidgetattributes.html#WIDGET_STYLES

-- 
Graham Ashton

___
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] How to set background of a label! HELP!!!

2002-06-30 Thread Matt Wilson

In GTK there are window widgets and no-window widgets.  No-window
widgets don't have backgrounds.  Labels are no-widow widgets, they
simply paint on the window of their parent widget.  So, to change the
background behind a label you have to change the background of its
parent.

Cheers,

Matt

On Sun, Jun 30, 2002 at 02:02:21AM -0700, Jacek Pliszka wrote:
 Hi!
 
 It's my first encounter with pygtk. And I must say that setting
 the colors is much more complicated here than in Qt.

___
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] How to set background of a label! HELP!!!

2002-06-30 Thread Jacek Pliszka

On Sun, 30 Jun 2002, Matt Wilson wrote:

 In GTK there are window widgets and no-window widgets.  No-window
 widgets don't have backgrounds.  Labels are no-widow widgets, they
 simply paint on the window of their parent widget.  So, to change the
 background behind a label you have to change the background of its
 parent.

Thanks for replay. I tried with frame but it did not work.

I added event_box as John suggested and background did work.

But foreground does not. Is there a simpl way to do it?

BR,

Jacek



___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/