Christian Reis wrote: >On Tue, May 21, 2002 at 04:52:27PM -0400, Gary Jaffe wrote: > > >>I am trying to emulate that behavior with pygtk using the GtkText widget. Is >>this the best way to go about it? I display several lines of text in a >>monospaced font. When the user clicks on a line I plan to determine which >>line was selected and change the background of that line to yellow to make it >>look highlighted. I will space fill the line with just the right number of >>spaces to make the whole line turn yellow. >> >> > >Just as a quick suggestion, why not use a GtkCList for this, with a >single column and a hidden column header? Oh, sure, you'd have to chop >the text into a list of N-column lines (is 80 your goal?), but that's >easy. > > Yep, a list widget is deffinitely the right choice here. A single column clist is probably the best choice for use with gtk 1.2. For people working with 2.0, they should of course be using GtkTreeView :)
James. -- Email: [EMAIL PROTECTED] | Linux.conf.au 2003 Call for Papers out WWW: http://www.daa.com.au/~james/ | http://conf.linux.org.au/cfp.html _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
