Day 16, Bug Fixing Exercise 1

Explanation

Lines 9-15 were

window = sg.Window("File Compressor",

                   layout=[[label],

                           [option1, 

                           option2, 

                           option3, 

                           option4],

                           ])

but they should be

window = sg.Window("File Compressor",

                   layout=[[label],

                           [option1],

                           [option2],

                           [option3],

                           [option4],

                           ]) 

Each of the options should be served as a list to the layout.

Note: that the code below will not run because the editor does not support PySimpleGUI. Use your local IDE to run the code instead.

Recommended Course

Python Mega Course: Learn Python in 60 Days, Build 20 Apps
Learn Python on Udemy completely in 60 days or less by building 20 real-world applications from web development to data science.