Question
I need help with those two questions please 1.Write a hello world Python program in python as a GUI messagebox with corner click or OK
I need help with those two questions please
1.Write a hello world Python program in python as a GUI messagebox with corner click or OK button to dismiss it. You can use any python GUI library you would like (suggestions would be TkInter, ctypes, WxPython, PyGame, Pyglet, PyQt, Glade). Be sure to include comments on which library and version you used. This is especially important as not all kits are available for all revs of python.
2. write a Python program that spawns two threads, one which repeatedly writes the time of day as an HH:MM:SS string into a global variable 100 times per second. The second thread will repeatedly read the time of day string from that local variable twice per second for display to screen. Code should be added to ensure the same string is never written twice in a row, so it should really only display to screen once per second. The program will need to use the lock function to mutex the variable and will likely use the python time and thread libs. Try and implement some method to shut the application down gracefully, killing both threads before the program exits. A loop control variable does that nicely
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