Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with those two questions please 1.Write a “hello world” Python progr

ID: 3807750 • Letter: I

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 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

Explanation / Answer

PLEASE POST AS SEPARATE QUESTIONS

1) We will use Tkinter GUI toolkit module

  def okFunc(): #The okFunc just closes the window

DO THUMBS UP ^_^