Re: [pygtk] Getting tooltips color

2005-11-13 Thread Andrew Conkling
On 11/11/05, Nikos Kouremenos [EMAIL PROTECTED] wrote: win = gtk.Window() win.set_name('gtk-tooltips') # this draws it as tooltip then you get the style and whatever color u like Many thanks; this does indeed work. However, it seems to be missing the border (black for me). I don't think

Re: [pygtk] Getting tooltips color

2005-11-13 Thread Andrew Conkling
On 11/13/05, Gian Mario Tagliaretti [EMAIL PROTECTED] wrote: def _on_expose_event(self, widget, event): w, h = widget.size_request() widget.style.paint_flat_box(widget.window, gtk.STATE_NORMAL, gtk.SHADOW_IN,

Re: [pygtk] Getting tooltips color

2005-11-13 Thread Gian Mario Tagliaretti
2005/11/13, Andrew Conkling [EMAIL PROTECTED]: That doesn't seem to do anything for me. make sure that the argument (detailed description) is tooltip (and not gtk-tooltips or tooltips) and you will have the border around the window. cheers -- Gian Mario Tagliaretti PyGTK GUI programming

Re: [pygtk] Getting tooltips color

2005-11-11 Thread Steve McClure
On Thu, 2005-11-10 at 23:54 -0500, Andrew Conkling wrote: I was wondering if it were possible to get the GTK+ theme's color for tooltips. gtk.Tooltips() does not have a .get_style() since it's not a subclass of gtk.Widget(), so it seems some voodoo magic would be necessary to get the color.

Re: [pygtk] Getting tooltips color

2005-11-11 Thread Andrew Conkling
On 11/11/05, Brian [EMAIL PROTECTED] wrote: On Thu, 2005-10-11 at 23:54 -0500, Andrew Conkling wrote: I was wondering if it were possible to get the GTK+ theme's color for tooltips. gtk.Tooltips() does not have a .get_style() since it's not a subclass of gtk.Widget(), so it seems some

Re: [pygtk] Getting tooltips color

2005-11-11 Thread Nikos Kouremenos
win = gtk.Window() win.set_name('gtk-tooltips') # this draws it as tooltip then you get the style and whatever color u like On 11/11/05, Andrew Conkling [EMAIL PROTECTED] wrote: On 11/11/05, Brian [EMAIL PROTECTED] wrote: On Thu, 2005-10-11 at 23:54 -0500, Andrew Conkling wrote: I was

[pygtk] Getting tooltips color

2005-11-10 Thread Andrew Conkling
I was wondering if it were possible to get the GTK+ theme's color for tooltips. gtk.Tooltips() does not have a .get_style() since it's not a subclass of gtk.Widget(), so it seems some voodoo magic would be necessary to get the color. Also, a related question for my purposes: is it possible to

Re: [pygtk] Getting tooltips color

2005-11-10 Thread Brian
On Thu, 2005-10-11 at 23:54 -0500, Andrew Conkling wrote: I was wondering if it were possible to get the GTK+ theme's color for tooltips. gtk.Tooltips() does not have a .get_style() since it's not a subclass of gtk.Widget(), so it seems some voodoo magic would be necessary to get the color.