[pygtk] Re: Get state of focus
f.braennstroem at gmx.de
Tue Feb 6 06:34:35 WST 2007
Fabian Braennstroem schrieb am 01/31/2007 07:53 PM:
> me again :-)
> I am still trying to create a small file manager using pygtk. It is
> kind of based on the tutorial example, but with two different
> treeview to achieve a mc-like setup.
> My problem is now, that I don't know, how I can get the state of the
> focus of each treeview. Is there a function gtk to do that? I looked
> in the gtk.treeview reference and couldn't find any!?
It is probably not the best way to achieve it, but my work around
looks like counting the 'Tab' key strokes and if it is an even
number, treeview 1 got the focus and if it is a odd number treeview
2 got the focus ... it kind of works, but there 'must' be a more
More information about the pygtk