please provide the file" datalogger_gui.py" so that it can be tested.
You can't be serious. The original post is more than 6 years old!