4 Photo book: Show off your pics

 

This chapter covers

  • Pulling names of files into Python
  • Creating a list
  • Displaying images in a Photo book GUI
  • Using buttons to change the image

The year 2016 was a significant year, do you know why? The number of photos taken in 2016 exceeded the total amount of photos ever taken in the history of taking photos! Just let that sink in for a moment. More photos were taken in 2016 than in the whole time between 1830 (when the first official photograph was taken) and 2015, a period of 185 years! (The Online Photographer)

The data around photos is interesting. Here are some facts from Photutorial.com (https://photutorial.com/photos-statistics/)

  1. In 2021 1.2 trillion photos were taken worldwide.
  2. In 2022 1.72 trillion photos were taken worldwide. The number keeps growing.
  3. That roughly equates to 54,541 photos taken every second, or 4.7 billion per day.
  4. It is estimated that by 2030, 2.3 trillion photos will be taken every year.

Creating the project

 
 

Downloading the images

 
 

Storing your image files

 

Importing the Modules

 
 
 

Creating the variables

 
 
 
 

Creating the functions

 
 
 

Building the main app

 
 
 

Running and testing your GUI program

 

Three other things to try

 
 
 

Adding more image file types

 
 

Changing the background color of the buttons

 
 

Printing your photo

 
 
 

Statements of fact

 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage