setEnabled

fun setEnabled(enable: Boolean)(source)

Disable or enable the window.