Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Workshop.activity/TutorialStoreCategories.py
blob: 2bf843de5de32f8cc6a09bd039f1283ff2f2846a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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()