detail later in this book firstthoughlet' focus on building guis that are larger than single button and explore few other ways to use classes in gui work adding multiple widgets it' time to start building user interfaces with more than one widget example - makes the window shown in figure - example - pp \gui\intro\gui py from tkinter import def greeting()print('hello stdout world'win frame(win pack(label(wintext='hello container world'pack(side=topbutton(wintext='hello'command=greetingpack(side=leftbutton(wintext='quit'command=win quitpack(side=rightwin mainloop(figure - multiple-widget window this example makes frame widget (another tkinter classand attaches three other widget objects to ita label and two buttonsby passing the frame as their first argument in tkinter termswe say that the frame becomes parent to the other three widgets both buttons on this display trigger callbackspressing the hello button triggers the greeting function defined within this filewhich prints to stdout again pressing the quit button calls the standard tkinter quit methodinherited by win from the frame class (frame quit has the same effect as the tk quit we used earlierhere is the stdout text that shows up on hello button presseswherever this script' standard streams may bec:\pp \gui\intropython gui py hello stdout worldhello stdout worldadding multiple widgets