Skip to content

idle_event is invoked only once #959

Closed
@bgamari

Description

@bgamari

FigureCanvasBase.idle_event doesn't return anything, meaning it is only called once under the gtk backend. This leads to the apparent breakage of which means examples/idle_and_timeout.py is broken.

All in all it seems that the idle_event callback is incompletely implemented at best. It's quite unclear whether it's even a good idea to pipe this event through CallbackRegistry, since we only really want the backend to register it (with, e.g., gobject.idle_add) if there is a callback to be called. Otherwise we are just creating unnecessary work by executing a stub function.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions