예제 #1
0
 def do_get_path(self, iter_):
     """ Gtk.TreeModel """
     if iter_ is None or iter_.stamp != self.stamp:
         return Gtk.TreePath()
     r = self._get_user_data(iter_)
     indices = self._get_indices(r)
     if indices is None:
         return Gtk.TreePath()
     return Gtk.TreePath.new_from_indices(indices)
예제 #2
0
 def path_to_node(self, row):
     """ Called from toga impl widget """
     indices = self._get_indices(row)
     if indices is not None:
         return Gtk.TreePath.new_from_indices(indices)
     return Gtk.TreePath()