Skip to content

Search

Documentation

widget_window

The rows a window or a dialog reads: whether it is up, its chrome, and what shuts it.

On this page

ui · 12 properties · UI

The rows a window or a dialog reads: whether it is up, its chrome, and what shuts it.

In a scene, widget_window is the node key that applies it. A script reaches each property below as a field on node.widget_window: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.widget_window.get() and node.widget_window.set(table).

Properties

property type default description
backdrop_color color [0,0,0,0.549] What a dialog dims the screen behind it with
closable bool true Draw a window's cross
collapsible bool false Give a window's title bar an arrow that folds the window to its bar and back
default_open bool true Whether a collapsible window starts unfolded
dismissable bool true Let Escape or a click on the dim shut a dialog; off, only the scene does
header bool true Draw a window's title bar
hide_on_close bool true Whether a window's close button shuts it; off, the button only emits close_request and the script decides
on_close_request string — Script method called when a window's close button is pressed, before it shuts or, with hide_on_close off, instead of shutting, on this node or the nearest ancestor whose script declares it
on_closed string — Script method called when a window or dialog goes away, on this node or the nearest ancestor whose script declares it
on_opened string — Script method called when a window or dialog comes up, on this node or the nearest ancestor whose script declares it
open bool true Whether a window or dialog is up; shut, it draws nothing and keeps nothing out
resizable bool false Give a window a grip in its bottom-right corner that a drag resizes it by, writing width and height within min_width, min_height, max_width and max_height

Are you sure?