Widget.addController

Adds controller to widget so that it will receive events.

You will usually want to call this function right after creating any kind of gtk.event_controller.EventController.

class Widget
void
addController

Parameters

controller gtk.event_controller.EventController

a gtk.event_controller.EventController that hasn't been added to a widget yet