Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update selection when already in TreeView #5

Open
midenok opened this issue Oct 27, 2013 · 0 comments
Open

Update selection when already in TreeView #5

midenok opened this issue Oct 27, 2013 · 0 comments

Comments

@midenok
Copy link
Member

midenok commented Oct 27, 2013

Make _append_to_list_and_select() to not append if already appended, but just select.

Make customized class from ListStore for source_treeview, which will put inside hash and check against it and select if already there.

Some code:

        list_store = Gtk.ListStore(str)
        self.source_treeview.set_model(list_store)

Links:
http://www.pygtk.org/pygtk2tutorial/sec-TreeModelInterface.html
http://python-gtk-3-tutorial.readthedocs.org/en/latest/treeview.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant