Access a QLCDNumber object from a external function
问题 My python script need to change one object lcd_p1 every time the function wait_thread_v1 is call every second by a thread t1, but how do this? I don't know how to access this object inside the function? Anyone can help? vazao1 = 12 global pulses_v1 pulses_v1 = 0 GPIO.setmode(GPIO.BCM) GPIO.setup(vazao1, GPIO.IN) class Window(QWidget): def __init__(self): super().__init__() self.setGeometry(50, 50, 640, 480) self.setWindowTitle("Programa") self.initUI() def initUI(self): self.lcd_v1 =