ocarina/trunk/src/label.py
bjschuma 396631bc3d Began redoing library view, removed GuiObjects directory
git-svn-id: file:///home/anna/Desktop/ocarina-legacy/mithos/ocarina@46 1daee41c-8060-4895-b1f0-2197c00d777a
2009-07-14 03:17:53 +00:00

19 lines
420 B
Python

import gtk
import pango
class Label(gtk.Alignment):
def __init__(self,text,size,weight):
gtk.Alignment.__init__(self,0,1,0,0)
self.show()
self.label = gtk.Label(text)
self.label.show()
attr = pango.AttrList()
attr.insert(pango.AttrSize(size,0,-1))
attr.insert(pango.AttrWeight(weight,0,-1))
self.label.set_attributes(attr)
self.add(self.label)
def set_text(self,text):
self.label.set_text(text)