Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/slides.py
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-06-27 18:05:27 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2012-06-27 18:05:27 (GMT)
commitbb58c3154520c409b028e45488b732c2e7efb3da (patch)
tree4bb42f371e1fc51e9fc2cc04c604c6803457208c /slides.py
parent789a6b19ca4655bbec145309bac3397f7a6979aa (diff)
Starter sugarized activity
Diffstat (limited to 'slides.py')
-rw-r--r--slides.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/slides.py b/slides.py
new file mode 100644
index 0000000..be9a815
--- /dev/null
+++ b/slides.py
@@ -0,0 +1,37 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# slides.py
+#
+# Copyright 2012 S. Daniel Francis <francis@sugarlabs.org>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+# MA 02110-1301, USA.
+#
+
+import gtk
+from cover import CoverSlide
+
+
+class SlidesNotebook(gtk.Notebook):
+ __gtype_name__ = 'BrowseNotebook'
+
+ def clear(self):
+ self.cover.clear()
+
+ def __init__(self):
+ gtk.Notebook.__init__(self)
+ self.set_tab_pos(gtk.POS_LEFT)
+ self.cover = CoverSlide()
+ self.append_page(self.cover, self.cover.get_title_label())