Python Forum
[PyGUI] Threading in gui
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGUI] Threading in gui
#2
The while loop detects the GPIO event-changes when a button is pressed.
What stops you from calling a function outside the while loop?
while ...
if GPIO.event_detected(16):
do_something():
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
Threading in gui - by razor23 - Sep-22-2020, 12:51 PM
RE: Threading in gui - by DPaul - Sep-23-2020, 08:06 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020