On accepte les couleurs ne respectant pas la casse
darcs-hash:20060418162942-72cb0-73694f245c60b1208647408bf213dcf48b752161.gz
This commit is contained in:
parent
5c0f67eb7a
commit
dcc91445ab
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class Parser:
|
||||||
for anArg in argList:
|
for anArg in argList:
|
||||||
anArg = anArg.strip(u' ')
|
anArg = anArg.strip(u' ')
|
||||||
if anArg.find(u'color=')!=-1:
|
if anArg.find(u'color=')!=-1:
|
||||||
theColor = anArg.split(u'=')[1]
|
theColor = anArg.split(u'=')[1].lower()
|
||||||
if theColor == 'random':
|
if theColor == 'random':
|
||||||
theColor = self.getRandomColor()
|
theColor = self.getRandomColor()
|
||||||
settings['color'] = theColor
|
settings['color'] = theColor
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue