Widget.setVisible

Sets the visibility state of widget. Note that setting this to TRUE doesn’t mean the widget is actually viewable, see Widget.getVisible.

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

class Widget
void
setVisible
(
bool visible
)

Parameters

visible bool

whether the widget should be shown or not

Meta

Since

2.18