[pygtk] Problem with label.set_selectable()

Gian Mario Tagliaretti gianmt at gnome.org
Wed Jul 4 19:46:04 WST 2007


2007/7/2, Sylvain Saleur <syeric1 a gmail.com>:
> Hello!

Hi Sylvain,

> I have a problem using label.set_selectable(True).

> I append a page to a notebook. In this page, there are some widgets,
> including a label. I want to allow the selection of the label. When I
> append the page during the use of the program, the text appear
> selected by default...

Unfortunately also looking at gtklabel.c this seams to be the correct
behavior, is that a problem for you to have the text selected?

I don't know if you already tried, if you have more than one
selectable label, the first one you pack in the container is the one
with the text selected.

cheers
-- 
Gian Mario Tagliaretti


More information about the pygtk mailing list