|
Re: Forbid focusing of TreeView columns: msg#00126gnome.gtk+.python
> The column header is just a button. The trick is getting a pointer to > it. This can be done using this hack, where 'col' if the > gtk.TreeViewColumn object: [...] This is indeed a trick but I think this is a clever one. Unfortunately, and very surprisingly, it does not work: I actually get the button (I can connect it instead of the TreeViewColumn, I can disable it, etc.) but it still gets the focus after I call set_property ! For the moment, I found a work around to solve my problem: I add an EventBox which grabs the focus at the beginning and grabs it again each time the TreeViewColumn is clicked. This is not very clean but it will make the job until a real solution can be found. Many thanks for your answer, even if it does not work in this case, I now know how to get this hidden button, which could be useful in the future. :-) Cheers, Franck _______________________________________________ pygtk mailing list pygtk@xxxxxxxxxx http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Forbid focusing of TreeView columns: 00126, Tim Evans |
|---|---|
| Next by Date: | ANNOUNCE: PyGTK 2.5.4 released (unstable): 00126, Johan Dahlin |
| Previous by Thread: | Re: Forbid focusing of TreeView columnsi: 00126, Tim Evans |
| Next by Thread: | ANNOUNCE: Gazpacho 0.5.2: 00126, Lorenzo Gil Sanchez |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |