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. This would solve > with pygtk). The first is that when the cursor is over the text box, the > pointer turns into an 'insert text' type of pointer (something similar to a and also > The other thing is that there is no horizontal scroll bar. The lines have a > variable length, so I must truncate the lines that are too long. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 272 3330 | 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/
