diff options
author | Samus_ <mail2samus@gmail.com> | 2010-03-21 07:27:56 (GMT) |
---|---|---|
committer | Samus_ <mail2samus@gmail.com> | 2010-03-21 07:27:56 (GMT) |
commit | 207fbf2a309cb687134839b6ea07218cbd600fb9 (patch) | |
tree | 358d30345c3aec5a80dc157969c6463c264d87f7 | |
parent | 248d74da46a12f55876c6874d0cc6a81f6185de2 (diff) |
normalizing __init__
-rwxr-xr-x | fracciones.activity/gtkcake.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fracciones.activity/gtkcake.py b/fracciones.activity/gtkcake.py index 3fe307a..5750d43 100755 --- a/fracciones.activity/gtkcake.py +++ b/fracciones.activity/gtkcake.py @@ -22,8 +22,8 @@ WRADIUS = 0.44 class Cake(gtk.DrawingArea): """Widget que dibuja una torta y permite seleccionar trozos de ella""" - def __init__(self, subdivisions): - gtk.DrawingArea.__init__(self) + def __init__(self, subdivisions, *args, **kwargs): + gtk.DrawingArea.__init__(self, *args, **kwargs) self.connect("expose_event", self.expose) self.connect("button_press_event", self.button_press) # Los eventos del raton no estan activados para el DrawingArea |