Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (29 sloc) 1.13 KB
The :class:`Gtk.Popover` is a seperate window used for displaying additional
information and are often used as a part of button menus and context menus.
Their uses are similar to those of dialog windows with the advantage of being less
disruptive and having a connection with the widget the popover is pointing to.
Popovers have are visually connected to a related widget with a small triangle.
A Popover can be created with :class:`Gtk.Popover`; for opening the popover use
Custom Popover
A widget can be added to a popover using the :meth:`Gtk.Container.add`.
.. image:: ../images/popover_example.png
.. literalinclude:: ../examples/
Menu Popover
A popover can be created from a :class:`Gio.MenuModel` using
:meth:`Gtk.Popover.new_from_model` and can be changed after creation with
.. image:: ../images/popover_advanced_example.png
.. literalinclude:: ../examples/
See Also