Fixed the pattern to be PEP8 compatible
This commit is contained in:
parent
a7f5cc0098
commit
f0492c2f8f
|
@ -186,21 +186,17 @@ class BaseTooltip:
|
||||||
"""
|
"""
|
||||||
formatted = "<span foreground='%s'>%s</span>"
|
formatted = "<span foreground='%s'>%s</span>"
|
||||||
if status.startswith(_("Available")):
|
if status.startswith(_("Available")):
|
||||||
return formatted % ('#73D216', status)
|
status = formatted % ('#73D216', status)
|
||||||
elif status.startswith(_("Free for Chat")):
|
elif status.startswith(_("Free for Chat")):
|
||||||
return formatted % ('#3465A4', status)
|
status = formatted % ('#3465A4', status)
|
||||||
elif status.startswith(_("Away")):
|
elif status.startswith(_("Away")):
|
||||||
return formatted % ('#EDD400', status)
|
status = formatted % ('#EDD400', status)
|
||||||
elif status.startswith(_("Busy")):
|
elif status.startswith(_("Busy")):
|
||||||
return formatted % ('#F57900', status)
|
status = formatted % ('#F57900', status)
|
||||||
elif status.startswith(_("Not Available")):
|
elif status.startswith(_("Not Available")):
|
||||||
return formatted % ('#CC0000', status)
|
status = formatted % ('#CC0000', status)
|
||||||
elif status.startswith(_("Offline")):
|
elif status.startswith(_("Offline")):
|
||||||
return formatted % ('#555753', status)
|
status = formatted % ('#555753', status)
|
||||||
else:
|
|
||||||
# A fallback reserved for probable changes that might occur
|
|
||||||
# in the future, so if status names will change -- tooltip
|
|
||||||
# population should not fail.
|
|
||||||
return status
|
return status
|
||||||
|
|
||||||
class StatusTable:
|
class StatusTable:
|
||||||
|
|
Loading…
Reference in New Issue