Notebook widget class: new 'can-close-tabs' property

This commit is contained in:
Eduardo Silva
2007-05-08 09:32:32 -04:00
parent 110fa5f354
commit 9180388a76
2 changed files with 52 additions and 39 deletions
+4 -1
View File
@@ -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()