add self parameter
This commit is contained in:
parent
0c3238d47a
commit
de51ad9c47
@ -243,27 +243,27 @@ class driver():
|
|||||||
return self.colorNames[attribute[1]]
|
return self.colorNames[attribute[1]]
|
||||||
except:
|
except:
|
||||||
return ''
|
return ''
|
||||||
def getFenrirFGColor(attribute):
|
def getFenrirFGColor(self, attribute):
|
||||||
try:
|
try:
|
||||||
return self.colorNames[attribute[0]]
|
return self.colorNames[attribute[0]]
|
||||||
except:
|
except:
|
||||||
return ''
|
return ''
|
||||||
def getFenrirUnderline(attribute):
|
def getFenrirUnderline(self, attribute):
|
||||||
if attribute[4] == 1:
|
if attribute[4] == 1:
|
||||||
return _('underlined')
|
return _('underlined')
|
||||||
return ''
|
return ''
|
||||||
def getFenrirBold(attribute):
|
def getFenrirBold(self, attribute):
|
||||||
if attribute[3] == 1:
|
if attribute[3] == 1:
|
||||||
return _('bold')
|
return _('bold')
|
||||||
return ''
|
return ''
|
||||||
def getFenrirBlink(attribute):
|
def getFenrirBlink(self, attribute):
|
||||||
if attribute[2] == 1:
|
if attribute[2] == 1:
|
||||||
return _('blink')
|
return _('blink')
|
||||||
return ''
|
return ''
|
||||||
def getFenrirFont(attribute):
|
def getFenrirFont(self, attribute):
|
||||||
return 'System Font'
|
return _('System Font')
|
||||||
def getFenrirFontSize(attribute):
|
def getFenrirFontSize(self, attribute):
|
||||||
return 'System Font Size'
|
return _('System Font Size')
|
||||||
def update(self, trigger='onUpdate'):
|
def update(self, trigger='onUpdate'):
|
||||||
if trigger == 'onInput': # no need for an update on input for VCSA
|
if trigger == 'onInput': # no need for an update on input for VCSA
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user