Refine coding style
authorHuang Peng <shawn.p.huang@gmail.com>
Sun, 20 Jul 2008 01:21:06 +0000 (09:21 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Sun, 20 Jul 2008 01:21:06 +0000 (09:21 +0800)
panel/image.py

index 7910b7b..7c3fb15 100644 (file)
 import gtk
 import gtk.gdk as gdk
 
-class Image (gtk.Image):
-    def __init__ (self, filename, width, height):
-        gtk.Image.__init__ (self)
+class Image(gtk.Image):
+    def __init__(self, filename, width, height):
+        super(Image, self).__init__()
         icon = gtk.IconSource
-        pixbuf = gdk.pixbuf_new_from_file_at_scale (filename, width, height, True)
-        self.set_from_pixbuf (pixbuf)
+        pixbuf = gdk.pixbuf_new_from_file_at_scale(filename, width, height, True)
+        self.set_from_pixbuf(pixbuf)