Code

Prune initial timer work.
[inkscape.git] / share / extensions / color_randomize.py
index 9bad74893718d152d7ece598c15000d4c904f2c8..e939b7b6d26b529aa9fe9cd2b3fda39511b38e2c 100644 (file)
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 import coloreffect,random,inkex
 
 class C(coloreffect.ColorEffect):
@@ -15,6 +16,10 @@ class C(coloreffect.ColorEffect):
             action="store", type="inkbool", 
             dest="lightness", default=True,
             help="randomize lightness")
+        self.OptionParser.add_option("--tab",
+            action="store", type="string",
+            dest="tab",
+            help="The selected UI-tab when OK was pressed")
 
     def colmod(self,r,g,b):
         hsl = self.rgb_to_hsl(r/255.0, g/255.0, b/255.0)
@@ -28,4 +33,7 @@ class C(coloreffect.ColorEffect):
         return '%02x%02x%02x' % (rgb[0]*255, rgb[1]*255, rgb[2]*255)
 
 c = C()
-c.affect()
\ No newline at end of file
+c.affect()
+
+
+# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 fileencoding=utf-8 textwidth=99