Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/addons/changecolor.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/changecolor.py')
-rw-r--r--addons/changecolor.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/addons/changecolor.py b/addons/changecolor.py
index eac891a..53e6c53 100644
--- a/addons/changecolor.py
+++ b/addons/changecolor.py
@@ -14,8 +14,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-import time
-
import gobject
import gtk, gtk.gdk
@@ -40,13 +38,12 @@ class ChangeColor(Action):
# set timeout
timeout = 500
- def __init__(self, widaddr=None):
+ def __init__(self, **kwargs):
"""Constructor - Change a widget color
+ Accepted keyword arguments:
@param widaddr: the widget for which you want to change the color (UAM)
"""
- Action.__init__(self)
-
- if widaddr: self.widaddr = widaddr
+ super(ChangeColor, self).__init__(**kwargs)
self.init_style = None
self._new_color = None