Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SliderPuzzleWidget.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/SliderPuzzleWidget.py b/SliderPuzzleWidget.py
index c22549c..b658c37 100644
--- a/SliderPuzzleWidget.py
+++ b/SliderPuzzleWidget.py
@@ -60,11 +60,12 @@ class SliderCreator (GdkPixbuf.Pixbuf):
width = 564
if height == -1:
height = 564
- self.set_properties({'colorspace':GdkPixbuf.Colorspace.RGB,
- 'has-alpha': False,
- 'bits-per-sample': 8,
- 'width':width,
- 'height':height})
+ super(SliderCreator, self).__init__()
+ self.set_property('colorspace', GdkPixbuf.Colorspace.RGB)
+ self.set_property('has-alpha', False)
+ self.set_property('bits-per-sample', 8)
+ self.set_property('width', width)
+ self.set_property('height', height)
if tlist is None:
items = []
cmds = file(fname).readlines()