Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We've now seen two different libraries for writing programs that have graphical user interfaces: PyGame and Tkinter. In exploring these two libraries, we've seen that


We've now seen two different libraries for writing programs that have graphical user interfaces: PyGame and Tkinter. In exploring these two libraries, we've seen that there are substantial similarities between them, but also substantial differences; both the similarities and the differences are instructive.


When we wrote Tkinter-based user interfaces and we needed to specify what would happen when meaningful input events arose, we tended to write the names of functions, but didn't follow them with parentheses and didn't pass arguments to them, which might have struck you as odd at first. What is it about Tkinter's underlying design that made this the correct choice? What would have happened if we had put in the parentheses and passed the arguments instead?

When we wrote PyGame-based games and we needed to specify what would happen when meaningful input events arose, we instead wrote calls to functions (i.e., we included the parentheses and any applicable arguments). What's different about PyGame's design that made that the right choice, when it's not the right choice in Tkinter?



Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Quantitative Methods For Business

Authors: David Anderson, Dennis Sweeney, Thomas Williams, Jeffrey Cam

11th Edition

978-0324651812, 324651813, 978-0324651751

More Books

Students also viewed these General Management questions