Bonjour

J'ai un problème dans mon code: je cherche à créer un jeu de combat (sans image animée) dans lequel le joueur peut choisir ses actions.
Le problème c'est que quand je clique sur ladite action, il me met:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1470, in __call__
    return self.func(*args)
  File "D:\Documents\DOSSIERS\Cédric\Dropbox\3LACAMBRE-SORIA-LAPLANCHE\Projet\Interfaces\intercombat.py", line 195, in afficher1
    afficher(1)
  File "D:\Documents\DOSSIERS\Cédric\Dropbox\3LACAMBRE-SORIA-LAPLANCHE\Projet\Interfaces\intercombat.py", line 238, in afficher
    Laff = Label(Jpc, text = Mot)
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 2537, in __init__
    Widget.__init__(self, master, 'label', cnf, kw)
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 2036, in __init__
    (widgetName, self._w) + extra + self._options(cnf))
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1121, in _options
    nv.append(_stringify(item))
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 80, in _stringify
    value = unicode(value)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 16: ordinal not in range(128)
Je ne comprends pas vraiment ce que cela signifie... Comment remédier à ce problème?

Merci