On Fri, Aug 15, 2003 at 11:58:23PM +0200, L�szl� Monda wrote: > Hi List, > > As the subject says... > > Problem #1: I can't make an arbitrary row active in a CList. > > `select_row' seemed to be fine, but I realized when I changed position > using the keyboard after the call, that the actual position remains > the same. > > I know about a workaround, more precisely moving the actual row into a > new position with `row_move' or `swap_rows', and swapping the contents > of the rows, but a cleaner way should be better.
I patched GtkCList in python-0.6 CVS HEAD to provide a set_focus_row() call that changed the currently focused row (don't confuse with selection). This allows you to work around a bug with SELECTION_BROWSE and might be what you want. > BTW, is there any way to make the active selection disappear and > emulating it with colorized row background? > Or should I write my own CList? ;) Hmmm. You might change the selection style, but I'm not sure it would allow you to see through it. The CList is deprecated in PyGTK-2.x, so you might want to consider using TreeView and co. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
