summaryrefslogtreecommitdiff
path: root/adventure/AdventureGame.py
diff options
context:
space:
mode:
Diffstat (limited to 'adventure/AdventureGame.py')
-rw-r--r--adventure/AdventureGame.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/adventure/AdventureGame.py b/adventure/AdventureGame.py
index 62b90ac..4d5c7f9 100644
--- a/adventure/AdventureGame.py
+++ b/adventure/AdventureGame.py
@@ -172,12 +172,9 @@ def describe_current_location():
print_to_description("unknown location:" + current_location)
def set_current_image():
-
if (current_location == FIRST_LOCATION):
#display a jpg using PIL library
- image_label.img = ImageTk.PhotoImage(
-Image.open
-('res/blank-1.jpg'))
+ image_label.img = ImageTk.PhotoImage(Image.open ('res/blank-1.gif'))
elif (current_location == SECOND_LOCATION):
#display image using standard image library (can only be .gif)
image_label.img = PhotoImage(file = 'res/blank-2.gif')
@@ -188,9 +185,8 @@ Image.open
else:
#for safety, display an image... code should never reach here
image_label.img = PhotoImage(file = 'res/blank-4.gif')
-
+
image_label.config(image = image_label.img)
-
def get_location_to_north():