import sys, os import gtk class TutorialStoreCategories: def __init__(self): categorie_math = gtk.Label('Math (8)') categorie_physics = gtk.Label('Phyisics (16)') categorie_history = gtk.Label('History (32)') categorie_learning = gtk.Label('Learning (53)') categorie_box = gtk.VBox(True, 5) self.categorie_box_frame = gtk.Frame('Categories') self.categorie_box_frame.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(0,0,0)) categorie_box.pack_start(categorie_math, True, True, 4) categorie_box.pack_start(categorie_physics, True, True, 4) categorie_box.pack_start(categorie_history, True, True, 4) categorie_box.pack_start(categorie_learning, True, True, 4) self.categorie_box_frame.add(categorie_box) categorie_math.show() categorie_physics.show() categorie_history.show() categorie_learning.show() categorie_box.show() self.categorie_box_frame.show()