Skip to content

Commit

Permalink
Passage de la couleur en argument de teams
Browse files Browse the repository at this point in the history
  • Loading branch information
jules committed Jul 15, 2012
1 parent a537c7d commit 49225b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,13 @@ def __str__(self):
return "Équipe {}".format(self.name)

class teamBox(gtk.Label):
def __init__(self,fichier=os.path.join(os.path.dirname(__file__), "teams.dat"),prompt=None):
def __init__(self,fichier=os.path.join(os.path.dirname(__file__), "teams.dat"),color="white"):
gtk.Label.__init__(self)
self.set_text("Vide")
self.set_use_markup(True) # Mise en forme Markup
self.team_list = []
self.fichier = fichier
self.prompt = prompt
self.foreground = "white"
self.foreground = color
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

0 comments on commit 49225b3

Please sign in to comment.