ShortcutController.newForModel
gtk.shortcut_controller.ShortcutController newForModel(gio.list_model.ListModel model)Creates a new shortcut controller that takes its shortcuts from the given list model.
A controller created by this function does not let you add or remove individual shortcuts using the shortcut controller api, but you can change the contents of the model.
Parameters
model | a [gio.list_model.ListModel] containing shortcuts |
Returns
a newly created shortcut controller