TreeView.set_cursor() issue
- From: "David M. Cook" <dave davidcook org>
- To: gtk-app-devel-list gnome org
- Subject: TreeView.set_cursor() issue
- Date: Tue, 17 Dec 2002 06:43:13 -0800
I'm having an issue with the "repainting" of the TreeView when adding a
child node. I'm trying to add a child node to a tree node, expand the row,
and then start editing on the first column of the new child node. In python
self.view.expand_row(parent_path, gtk.FALSE)
self.view.set_cursor(child_path, viewcol, gtk.TRUE)
self.view.queue_draw()
However, the entry box that shows up is in the old position of the column,
(i.e. to the left and not lined up with where the column is after the
expansion.) I tried putting the queue_draw() before the set_cursor() call,
but this doesn't do anything.
I'm using gtk 2.0.6.
Dave Cook
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]