:right-sidebar: True License =================================================================== .. currentmodule:: gi.repository.Shumate .. class:: License(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget` A widget that displays license text. Constructors ------------ .. rst-class:: interim-class .. class:: License :no-index: .. classmethod:: new() -> ~gi.repository.Shumate.License Creates an instance of :obj:`~gi.repository.Shumate.License`\. Methods ------- .. rst-class:: interim-class .. class:: License :no-index: .. method:: append_map_source(map_source: ~gi.repository.Shumate.MapSource) -> None :param map_source: .. method:: get_extra_text() -> str Gets the additional license text. .. method:: get_xalign() -> float Get the license's text horizontal alignment. .. method:: prepend_map_source(map_source: ~gi.repository.Shumate.MapSource) -> None :param map_source: .. method:: remove_map_source(map_source: ~gi.repository.Shumate.MapSource) -> None :param map_source: .. method:: set_extra_text(text: str) -> None Show the additional license text on the map view. The text will preceed the map's licence when displayed. Use "\n" to separate the lines. :param text: the additional license text .. method:: set_xalign(xalign: float) -> None Set the license's text horizontal alignment. :param xalign: The license's text horizontal alignment Properties ---------- .. rst-class:: interim-class .. class:: License :no-index: .. attribute:: props.extra_text :type: str The type of the None singleton. .. attribute:: props.xalign :type: float The type of the None singleton.