Photo Album program execution
Example
This shows the expected execution of the manager.py
program when using photos.txt
as the input file.
User input from the terminal is shown in bold.
$ python3 manager.py ================== Menu ====================== 1: list all photos 2: add a photo 3: search photos by tag 4: view a photo 5: slideshow 6: quit Choose an option: 8 Invalid selection. Choose an option: -4 Invalid selection. Choose an option: 1 Here are the photos in this album: Bluey and Bingo, created by Chilli Heeler #bingo #bluey #travel Bluey dancing, created by Bingo Heeler #bluey #sister #happy Heeler family, created by Nana #happy #bluey #bingo In the car, created by Chilli Heeler #bingo #bluey #letsgo #travel Mummy and daddy, created by Bingo Heeler #happy ================== Menu ====================== 1: list all photos 2: add a photo 3: search photos by tag 4: view a photo 5: slideshow 6: quit Choose an option: 2 Enter name of the file: muffin.gif Enter creator of the image: Bluey Enter description of the image: Muffin losing it Enter tags: muffin cousin puppy Successfully added photo. ================== Menu ====================== 1: list all photos 2: add a photo 3: search photos by tag 4: view a photo 5: slideshow 6: quit Choose an option: 2 Enter name of the file: muffin.gif Enter creator of the image: Bluey Enter description of the image: Photo of muffin Enter tags: muffin cousin Could not add photo to album. ================== Menu ====================== 1: list all photos 2: add a photo 3: search photos by tag 4: view a photo 5: slideshow 6: quit Choose an option: 3 Here are the tags: bingo bluey cousin happy letsgo muffin puppy sister travel Enter a tag to search for: bluey Here are the photos with that tag: Bluey and Bingo Bluey dancing Heeler family In the car ================== Menu ====================== 1: list all photos 2: add a photo 3: search photos by tag 4: view a photo 5: slideshow 6: quit Choose an option: 3 Here are the tags: bingo bluey cousin happy letsgo muffin puppy sister travel Enter a tag to search for: Bandit No photos in the album with that tag. ================== Menu ====================== 1: list all photos 2: add a photo 3: search photos by tag 4: view a photo 5: slideshow 6: quit Choose an option: 4 1: Bluey and Bingo 2: Bluey dancing 3: Heeler family 4: In the car 5: Mummy and daddy 6: Muffin losing it Choose a photo: -12 Please enter a valid number. Choose a photo: 9 Please enter a valid number. Choose a photo: 2 (The following image should appear in a pop-up window. You can close the window by clicking the image.)================== Menu ====================== 1: list all photos 2: add a photo 3: search photos by tag 4: view a photo 5: slideshow 6: quit Choose an option: 5 (You should see an image appear in a pop-up window. When you click it or close the window, the next image should appear. You need to click through all of the images in order to get back to the main menu.) ================== Menu ====================== 1: list all photos 2: add a photo 3: search photos by tag 4: view a photo 5: slideshow 6: quit Choose an option: 6 Good bye!