Skip to content

Instantly share code, notes, and snippets.

@iamutkarshtiwari
Created March 12, 2016 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamutkarshtiwari/a826625eb0ebcd63c91c to your computer and use it in GitHub Desktop.
Save iamutkarshtiwari/a826625eb0ebcd63c91c to your computer and use it in GitHub Desktop.
def __key_detect_cb(self, _list_view, event):
keyname = Gdk.keyval_name(event.keyval)
(path, col) = self._list_view.tree_view.get_cursor()
ren = col.get_cell_renderers()[0]
self._list_view.tree_view.set_cursor_on_cell(path, col, ren ,False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment