Skip to content

Commit

Permalink
Teams : changement de couleurs
Browse files Browse the repository at this point in the history
  • Loading branch information
jules committed Jul 15, 2012
1 parent e91d1bf commit a537c7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def __init__(self,fichier=os.path.join(os.path.dirname(__file__), "teams.dat"),p
self.team_list = []
self.fichier = fichier
self.prompt = prompt
self.foreground = "white"
gobject.signal_new("prompt-message",teamBox,gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, [gobject.TYPE_STRING])
gobject.signal_new("decrypt-send-teams",teamBox,gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, [gobject.TYPE_PYOBJECT])

Expand Down Expand Up @@ -107,7 +108,7 @@ def printTeams(self):
self.set_alignment(0,0) # Alignement à gauche
self.set_padding(5,5) # Marge de 5px avec les bords
## Mise en forme de la sortie
tmp = "<span foreground='green' size='large'>"
tmp = "<span foreground='"+self.foreground+"' size='large'>"
for team in self.team_list:
if team.passwd is "":
tmp += u"<span foreground='red'>\u25CB</span> "
Expand Down

0 comments on commit a537c7d

Please sign in to comment.