Opened 12 years ago

Closed 12 years ago

#92 closed enhancement (implemented)

Highlight the fault lines in the log

Reported by: István Váradi Owned by: István Váradi
Priority: major Milestone: Read-write operation
Component: gui Keywords:
Cc:

Description

Both the normal log and that in the PIREP viewer should contain the faults highlighted. Some code example:



import pygtk
import gtk

window = gtk.Window()
window.set_title("Proba")

vbox = gtk.VBox()
window.add(vbox)

textView = gtk.TextView()
vbox.pack_start(textView, True, True, 0)

buffer = textView.get_buffer()
buffer.insert(buffer.get_end_iter(), "First line\n")

redTag = gtk.TextTag()
redTag.set_property("foreground", "red")
redTag.set_property("weight", 700)
buffer.get_tag_table().add(redTag)

buffer.insert_with_tags(buffer.get_end_iter(), "Red line\n", redTag)

buffer.insert(buffer.get_end_iter(), "Third line\n")

buffer.insert_with_tags(buffer.get_end_iter(), "Yet another red line\n", redTag)

buffer.insert(buffer.get_end_iter(), "Fifth line\n")

window.set_size_request(400, 300)
window.show_all()

gtk.main()

Change History (2)

comment:1 by István Váradi, 12 years ago

Status: newaccepted

comment:2 by István Váradi, 12 years ago

Resolution: implemented
Status: acceptedclosed
Note: See TracTickets for help on using tickets.