This will be null if the widget is not contained in a root widget.
Widget.root
gtk.root.Root root() @propertyGet root property.
Returns
The [gtk.root.Root] widget of the widget tree containing this widget.
gtk.root.Root root() @propertyGet root property.
This will be null if the widget is not contained in a root widget.