From f2002153dfd751b05aa9c3b3695204e40bc6aafd Mon Sep 17 00:00:00 2001 From: Eben Eliason Date: Thu, 03 Apr 2008 05:23:00 +0000 Subject: Added default to label arg in palette constructor This leaves the API backward compatible but prevents the need for new code to pass any unused arguments to the constructor, instead depending on the property API. --- diff --git a/sugar/graphics/palette.py b/sugar/graphics/palette.py index 40e66da..61c94b7 100644 --- a/sugar/graphics/palette.py +++ b/sugar/graphics/palette.py @@ -154,7 +154,7 @@ class Palette(gtk.Window): # DEPRECATED: label is passed with the primary-text property, accel_path # is set via the invoker property, and menu_after_content is not used - def __init__(self, label, accel_path=None, menu_after_content=False, + def __init__(self, label=None, accel_path=None, menu_after_content=False, text_maxlen=0, **kwargs): self.palette_state = self.PRIMARY -- cgit v0.9.1