Python Forum
maximum recursion depth exceeded
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
maximum recursion depth exceeded
#4
A good principle is to avoid time.sleep() with GUIs because it freezes the GUI. You can use tkinter's after() method. Something like
startClickingVar = False

def click_forever():
    if startClickingVar:
        mouse.click(Button.left, 1)
        root.after(1000, click_forever)

def startClick():
    global startClickingVar
    if not startClickingVar:
        startClickingVar = True
        click_forever()

def stopClick():
    global startClickingVar
    startClickingVar = False
Reply


Messages In This Thread
maximum recursion depth exceeded - by saba_keon - Apr-07-2018, 06:49 PM
RE: maximum recursion depth exceeded - by saba_keon - Apr-07-2018, 08:19 PM
RE: maximum recursion depth exceeded - by Gribouillis - Apr-08-2018, 07:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pyinstaller Maximum recursion bug scales11 8 14,451 Nov-10-2023, 10:26 PM
Last Post: SuzanneKH09
  Max recursion depth.... Error MeloB 2 3,263 Feb-16-2022, 05:21 PM
Last Post: MeloB
  Time Limit Exceeded error loves 5 4,357 Dec-03-2020, 07:15 AM
Last Post: Sofia_Grace
Bug maximum recursion depth exceeded while calling a Python object error in python3 Prezess 4 5,703 Aug-02-2020, 02:21 PM
Last Post: deanhystad
  Requesting help with my implementation of depth-first search tigerfuchs 6 3,654 Sep-26-2019, 05:47 AM
Last Post: perfringo
  RecursionError: maximum recursion depth exceeded in comparison ? leoahum 11 16,254 Mar-18-2019, 01:53 PM
Last Post: leoahum
  Replace with Maximum Value leoahum 4 3,569 Mar-13-2019, 06:24 PM
Last Post: leoahum
  fibonacci ***Time limit exceeded*** frequency 18 12,942 Nov-29-2018, 09:03 PM
Last Post: frequency
  'Time Limit Exceeded' Problem bkpee3 2 7,362 Nov-14-2018, 03:51 AM
Last Post: bkpee3
  variable loop depth Skaperen 5 5,636 Jul-18-2018, 02:48 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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