On Fri, 8 Jul 2005 18:37:57 -0400 "Michael A D'ambrosio" <[EMAIL PROTECTED]> wrote:
> Hello. I am trying to make my treeview emit the row-activated signal on a
> single
> click as opposed to a double click (this is for a touch screen application).
[cut]
Hi all,
I'm new to the list, nice to meet you all.
Mike, you can use the treeview get_selection method. E.g.:
class myapp:
def __init__(self):
...
self.treeview = gtk.TreeView()
self.treeview.connect("cursor-changed",
self.on_cursor_changed)
...
def on_cursor_changed(self):
selection = self.treeview.get_selection()
(model, iter) = selection.get_selected()
...
Ciao
Stefano
--
"Solo due cose sono infinite: l'universo e la stupidità umana... e per quanto
riguarda l'universo non sono sicuro"
Albert Einstein
# GnuPG/PGP Key Id: 0x5646B7D4
pgpVLiDMYV0HC.pgp
Description: PGP signature
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
