Question
CSE 2100 practical computer system with raspberry pi: Question-set 2 -- GUIs} a). You use glade to make a user interface and write c++ code
CSE 2100 practical computer system with raspberry pi:
Question-set 2 -- GUIs} a). You use glade to make a user interface and write c++ code that loads it, displays it, and uses it. It works perfectly on your computer. You give the executable to your buddy who is running the same OS that you do. He complains that your code throws an error when starting up. What likely happened?
b). Should any of your event handling callback functions contain infinite loops or sleep (or sleep-like) statements? Why?
c). You made a GTK+3 based user interface (i.e., in your main code you turn over execution to GTK by calling gtk\_main()). Do some research and describe what the use of the gdk\_threads\_timeout() function could be (hint: timed events). Can you think of (and describe) a specific scenario where that function (and events created by it) could be useful?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started