Re: GtkTextView horizontal seperators...



On Tue, 2005-05-10 at 18:38 -0400, Freddie Unpenstein wrote:
I was wondering if anyone knows how I could draw a horizontal red
line across a GtkTextView buffer.
The best solution I found was to just draw directly onto the view
through the expose-event using drawable.draw_line etc.

The attachment didn't make it to the list so here it is quoted:

def on_textview__expose_event(textview, event):
    window = textview.get_window(gtk.TEXT_WINDOW_TEXT)
    if event.window != window:
        return
    # draw onto window

Stephen
-- 
Stephen Kennedy <stevek gnome org>
http://meld.sf.net visual diff and merge




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]