Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

simple click counter in python

click = False
click_counter = 0

if click == True:
	click_counter += 1
    click = False

print(click_counter)

# once the click becomes True
# one click adds to the click_counter
# Then click variable becomes False and start the process all over again
 
PREVIOUS NEXT
Tagged: #simple #click #counter #python
ADD COMMENT
Topic
Name
3+9 =