Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/notebook.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2008-04-18 23:10:48 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2008-04-18 23:10:48 (GMT)
commit283b20114576b1e29d856911d188ce3c73865012 (patch)
tree3f3fbe63475506ae340590f2564dd9d4085b6dc7 /sugar/graphics/notebook.py
parent8783d1113d945b25d5deedae574be52dcf4d34e5 (diff)
pylint most of sugar.graphics, only palette left
Diffstat (limited to 'sugar/graphics/notebook.py')
-rw-r--r--sugar/graphics/notebook.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/sugar/graphics/notebook.py b/sugar/graphics/notebook.py
index 2d49b1f..bc6bab5 100644
--- a/sugar/graphics/notebook.py
+++ b/sugar/graphics/notebook.py
@@ -30,7 +30,8 @@ class Notebook(gtk.Notebook):
__gproperties__ = {
'can-close-tabs': (bool, None, None, False,
- gobject.PARAM_READWRITE | gobject.PARAM_CONSTRUCT_ONLY)
+ gobject.PARAM_READWRITE |
+ gobject.PARAM_CONSTRUCT_ONLY)
}
def __init__(self, **kwargs):
@@ -41,7 +42,8 @@ class Notebook(gtk.Notebook):
# Set True the scrollable notebook property
gobject.GObject.__init__(self, **kwargs)
- gtk.Notebook.__init__(self)
+
+ self._can_close_tabs = None
self.set_scrollable(True)
self.show()
@@ -59,7 +61,7 @@ class Notebook(gtk.Notebook):
gtk.Button.set_relief(button, gtk.RELIEF_NONE)
settings = gtk.Widget.get_settings(button)
- (w,h) = gtk.icon_size_lookup_for_settings(settings, gtk.ICON_SIZE_MENU)
+ w, h = gtk.icon_size_lookup_for_settings(settings, gtk.ICON_SIZE_MENU)
gtk.Widget.set_size_request(button, w + 4, h + 4)
image.show()
icon_box.pack_start(image, True, False, 0)
@@ -77,7 +79,6 @@ class Notebook(gtk.Notebook):
# Add a picture on a button
self._add_icon_to_button(tab_button)
- icon_box = gtk.HBox(False, 0)
event_box.show()
tab_button.show()