Widget.root

gtk.root.Root root() @property

Get root property.

Returns

The [gtk.root.Root] widget of the widget tree containing this widget.

This will be null if the widget is not contained in a root widget.