コード例 #1
0
ファイル: __init__.py プロジェクト: nsenave/chessopy
 def __init__(self, piece: Piece, image_path: str) :
     PhotoImage.__init__(self, file=image_path)
     self.piece = piece
コード例 #2
0
 def __init__(self, width=32, height=32, **args):
     # typical call: (with=32, height=32)
     PhotoImage.__init__(self, width=width, height=height, **args)
コード例 #3
0
ファイル: Image.py プロジェクト: CSI-Lyon/Boomberman
 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