def toggle(self): """Switches the LabelFrame to the opposite state.""" self._variable.set(not self._variable.get()) self._activate() ##################################################