def METHOD_NAME(self, layout_changed):
    """
    Handler for "layoutChanged" dbus signal.
    """
    if self.colours:
        self._set_colour(layout_changed)
    self.keyboard = self.configured_keyboards[layout_changed]