Python While loop within mainloop causing lag
问题 When I run the code with the while True: loop included within the root.mainloop() it is making my GUI lag heavily and the code does not run as smoothly as I would like. I am wondering how I make my code run smooth and without lag. for the purpose of this test I have commented out large sections of the code that only work when it is hooked up to my raspberry pi. Thank you in advance for your help. import os import glob import time #import RPi.GPIO as GPIO from datetime import datetime from