Widget.isToplevel

Determines whether widget is a toplevel widget.

Currently only gtk.Window and gtk.Invisible (and out-of-process gtk.Plugs) are toplevel widgets. Toplevel widgets have no parent widget.

class Widget
bool
isToplevel
()

Return Value

Type: bool

TRUE if widget is a toplevel, FALSE otherwise

Meta

Since

2.18