Changing colors and widget size

quit_button = Button(top, 
                     text='Goodbye, GUI World!', 
                     command=quit,
                     background='yellow', 
                     foreground='blue')
quit_button.pack(side='top', pady=5, fill='x')

# fill='x' expands the widget throughout the available
# space in the horizontal direction

previousnexttable of contents