import gtk class Pictogram: lut={"black":0x000000,"yellow":gtk.gdk.Color(0xffff,0xf2f2,0x9b9b),"green":gtk.gdk.Color(0x8b8b,0xd3d3,0x8181),"blue":gtk.gdk.Color(0x3d3d,0x9e9e,0xc2c2),"orange":gtk.gdk.Color(0xdcdc,0x9595,0x2626),"pink":gtk.gdk.Color(0xf4f3,0xb1b1,0xdbdb),"white":gtk.gdk.Color(0xe4e4,0xe3e3,0xd1d1)} font_type={"Normal":"","Black":"Bold","Italic":"Italic"} def __init__(self): self.name="" self.caption="" self.background=Pictogram.lut["white"] self.action=("none",None) self.position=None self.font="" self.fontcolor=gtk.gdk.color_parse("#000000") self.image=""