Box.setCenterWidget

void setCenterWidget(gtk.widget.Widget widget = null)

Sets a center widget; that is a child widget that will be centered with respect to the full width of the box, even if the children at either side take up different amounts of space.

Parameters

widgetthe widget to center