PluginColorString.py

changeset 35
72225d6b363a
parent 34
f504ab98d9c6
child 37
6d2acde7b3ec
equal deleted inserted replaced
34:f504ab98d9c6 35:72225d6b363a
21 # Start-Of-Header 21 # Start-Of-Header
22 name = "Color String Plug-in" 22 name = "Color String Plug-in"
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" 23 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
24 autoactivate = True 24 autoactivate = True
25 deactivateable = True 25 deactivateable = True
26 version = "2.2.2" 26 version = "2.2.3"
27 className = "ColorStringPlugin" 27 className = "ColorStringPlugin"
28 packageName = "ColorString" 28 packageName = "ColorString"
29 shortDescription = "Insert color as string" 29 shortDescription = "Insert color as string"
30 longDescription = \ 30 longDescription = \
31 """This plug-in implements a tool to select a color via a""" \ 31 """This plug-in implements a tool to select a color via a""" \
375 375
376 def __isValidRgbaColor(self, color): 376 def __isValidRgbaColor(self, color):
377 """ 377 """
378 Private method to check for a valid RGBA color. 378 Private method to check for a valid RGBA color.
379 379
380 @param name color string to check (string) 380 @param color color string to check (string)
381 @return flag indicating a valid RGBA color (boolean) and a list with 381 @return flag indicating a valid RGBA color (boolean) and a list with
382 the RGBA components of the color (three or four integers) 382 the RGBA components of the color (three or four integers)
383 """ 383 """
384 rgba = [] 384 rgba = []
385 385
397 return False, [] 397 return False, []
398 398
399 rgba.append(c) 399 rgba.append(c)
400 400
401 return True, rgba 401 return True, rgba
402
403 #
404 # eflag: noqa = M801

eric ide

mercurial