Skip to content

Commit

Permalink
launcherでファイルが見つからない場合は画像をロードしないようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
mmitti committed Jun 7, 2022
1 parent 4ebf8fe commit fb2c7d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions launcher.py
Expand Up @@ -165,6 +165,8 @@ def create_photo_image(path,w=320,h=240):
return image_tk

def load_image(path):
if not os.path.isfile(path):
return
global canvas, canvas_item, image_tk
image_tk = create_photo_image(path)
if canvas_item == None:
Expand Down

0 comments on commit fb2c7d5

Please sign in to comment.