Console: logviewer font changes

This commit is contained in:
Eduardo Silva 2007-03-10 19:30:44 -03:00
parent 29d23cbe77
commit f8a3daa2b6
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,7 @@ import pygtk
pygtk.require('2.0')
import gtk
import gobject
import pango
from sugar import env
@ -155,6 +156,10 @@ class LogView(gtk.ScrolledWindow):
self.textview = gtk.TextView()
self.textview.set_wrap_mode(gtk.WRAP_WORD)
font = pango.FontDescription('Sans 8')
font.set_weight(pango.WEIGHT_LIGHT)
self.textview.modify_font(font)
# Set background color
bgcolor = gtk.gdk.color_parse("#FFFFFF")
self.textview.modify_base(gtk.STATE_NORMAL, bgcolor)

View File

@ -1 +1,2 @@
from xo import Interface