Example #1
0
 def __init__(self, piece: Piece, image_path: str) :
     PhotoImage.__init__(self, file=image_path)
     self.piece = piece
Example #2
0
 def __init__(self, width=32, height=32, **args):
     # typical call: (with=32, height=32)
     PhotoImage.__init__(self, width=width, height=height, **args)
Example #3
0
 def __init__(self, directory, name):
     self.type = directory
     #ouvrir une image à partir de d'un modèle : dossier et nom
     PhotoImage.__init__(self,
                         file="images/{}/{}.png".format(self.type, name))
     self.ID = PhotoImage._last_id