From 283b20114576b1e29d856911d188ce3c73865012 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 18 Apr 2008 23:10:48 +0000 Subject: pylint most of sugar.graphics, only palette left --- (limited to 'sugar/graphics/notebook.py') 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() -- cgit v0.9.1