Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conditional Button Press
#1
I am looking to make a while loop break upon button press but I'm not sure how to do so. I assume it would be with a conditional statement but the syntax is foreign to me.

A pseudocode example would be as follows:

while True:
 - statement
if *Button2 = Pressed*
break

Please help.
Reply


Messages In This Thread
Conditional Button Press - by Raudert - Mar-16-2017, 08:54 PM
RE: Conditional Button Press - by micseydel - Mar-16-2017, 09:10 PM
RE: Conditional Button Press - by nilamo - Mar-16-2017, 09:11 PM
RE: Conditional Button Press - by Raudert - Mar-17-2017, 01:18 PM
RE: Conditional Button Press - by Larz60+ - Mar-17-2017, 01:31 PM
RE: Conditional Button Press - by Raudert - Mar-17-2017, 01:47 PM
RE: Conditional Button Press - by Larz60+ - Mar-17-2017, 01:51 PM
RE: Conditional Button Press - by Raudert - Mar-17-2017, 02:06 PM
RE: Conditional Button Press - by Larz60+ - Mar-17-2017, 07:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to break out of a for loop on button press? philipbergwerf 6 1,812 Oct-06-2022, 03:12 PM
Last Post: philipbergwerf
  tkinter auto press button kucingkembar 2 3,217 Dec-24-2021, 01:23 PM
Last Post: kucingkembar

Forum Jump:

User Panel Messages

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