You can toggle whether or not a widget is enabled via setEnabled() and see if it is
enabled via isEnabled(). One common use pattern for this is to disable some
widgets based on a CheckBox or RadioButton checked state. We will explore
CheckBox, RadioButton, and similar sorts of widgets a bit later in the book.