mcu
mcu

Reputation: 3512

Maximum number of pending tkinter after events

Is there a defined limit on the number of tkinter after events that can be pending?

This number can get big if for example a worker thread posts after events faster than tkinter can process them.

What happens if this limit is exceeded?

Upvotes: 0

Views: 204

Answers (1)

Thingamabobs
Thingamabobs

Reputation: 8037

The limit is probably hardware related. There are different advice on how to use threads. Some say you shouldn't use threads at all and others are fine with it. Anyway, if your hardware can't afford your requested tasks your application will crash.

Tkinter schedules its after methods not exactly by time, it schedules it after a period of time and the task is on top of the list to do. So in fact, tkinter sets no limits to the tasks your hardware do.

For reference

Upvotes: 1

Related Questions