From 1c0b5d7c47dc0ebfe8d445cfe81ff35dfbaf560f Mon Sep 17 00:00:00 2001 From: Charlie Date: Thu, 05 Nov 2009 15:55:20 +0000 Subject: Workshop activity My tutorials --- (limited to 'Workshop.activity/TutorialStoreCategories.py') diff --git a/Workshop.activity/TutorialStoreCategories.py b/Workshop.activity/TutorialStoreCategories.py new file mode 100644 index 0000000..2bf843d --- /dev/null +++ b/Workshop.activity/TutorialStoreCategories.py @@ -0,0 +1,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() \ No newline at end of file -- cgit v0.9.1