[pygtk] treeview, cursor_changed twice
Χρήστος Τριανταφύλλης
christriant1995 at gmail.com
Tue Jun 19 04:58:26 WST 2012
I am using glade
Στις 18 Ιουν 2012 11:27 μ.μ., ο χρήστης "Χρήστος Τριανταφύλλης" <
christriant1995 at gmail.com> έγραψε:
> Hello, i have a treeview and i connect the cursor_changed to this:
>
> def on_mangatreeview_cursor_changed(self, widget, user_param=None):
> treeselection = widget.get_selection()
> treemodel,treeiter = treeselection.get_selected()
> path = treemodel.get_path(treeiter)
> value = treemodel.get_value(treeiter, 0)
>
> but the function run twice and i don't want this
>
> any idea?
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20120618/ba7f86bb/attachment.html>
More information about the pygtk
mailing list