set_visible


Description:

[ Version ( since = "2.18" ) ]
public void set_visible (bool visible)

Sets the visibility state of this.

Note that setting this to true doesn’t mean the widget is actually viewable, see get_visible.

This function simply calls show or hide but is nicer to use when the visibility of the widget depends on some condition.

Parameters:

this

a Widget

visible

whether the widget should be shown or not