diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-20 09:21:06 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-07-20 09:21:06 +0800 |
| commit | da338c8ebf41ceecd21dcc7e96aa68868ecc422c (patch) | |
| tree | b30355e597daa90ff4eb9a571653c66e2089eecb | |
| parent | 316b2feb16705b6c24ffd706713b8e4777efa219 (diff) | |
| download | ibus-da338c8ebf41ceecd21dcc7e96aa68868ecc422c.tar.gz ibus-da338c8ebf41ceecd21dcc7e96aa68868ecc422c.tar.xz ibus-da338c8ebf41ceecd21dcc7e96aa68868ecc422c.zip | |
Refine coding style
| -rw-r--r-- | panel/image.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/panel/image.py b/panel/image.py index 7910b7b..7c3fb15 100644 --- a/panel/image.py +++ b/panel/image.py @@ -22,10 +22,10 @@ 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) |
