Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/test-notebook.py
diff options
context:
space:
mode:
authorEduardo Silva <edsiper@monotop.(none)>2007-05-08 13:32:32 (GMT)
committer Eduardo Silva <edsiper@monotop.(none)>2007-05-08 13:32:32 (GMT)
commit9180388a76e9de7742a9337a03458b98eb15747c (patch)
tree82eacfff8dbc2cff93899a6b93e2da81200757c7 /tests/test-notebook.py
parent110fa5f35471665990fa3485f926c9116e39709c (diff)
Notebook widget class: new 'can-close-tabs' property
Diffstat (limited to 'tests/test-notebook.py')
-rw-r--r--tests/test-notebook.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test-notebook.py b/tests/test-notebook.py
index 685bedd..fe90de8 100644
--- a/tests/test-notebook.py
+++ b/tests/test-notebook.py
@@ -24,8 +24,12 @@ from sugar.graphics.notebook import Notebook
window = gtk.Window()
window.connect("destroy", lambda w: gtk.main_quit())
+window.set_size_request(800, 600)
+window.show_all()
nb = Notebook()
+nb.set_property('can-close-tabs', True)
+
window.add(nb)
button1 = gtk.Button('Example 1')
@@ -36,5 +40,4 @@ nb.add_page('Testing label 1', button1)
nb.add_page('Testing label 2', button2)
nb.add_page('Testing label 3', button3)
-window.show_all()
gtk.main()