Deprecated: given a name or label and optional disambiguating index nr, toggle the matching item's selection. Selecting items follows the behavior described in the docstring of the 'get' method. if the item is disabled, or this control is disabled or readonly,
(self, name, by_label=False, nr=None)
| 1892 | return self.get(name, label, nr, exclude_disabled) |
| 1893 | |
| 1894 | def toggle(self, name, by_label=False, nr=None): |
| 1895 | """Deprecated: given a name or label and optional disambiguating index |
| 1896 | nr, toggle the matching item's selection. |
| 1897 | |
| 1898 | Selecting items follows the behavior described in the docstring of the |
| 1899 | 'get' method. |
| 1900 | |
| 1901 | if the item is disabled, or this control is disabled or readonly, |
| 1902 | raise AttributeError. |
| 1903 | |
| 1904 | """ |
| 1905 | deprecation( |
| 1906 | "item = control.get(...); item.selected = not item.selected") |
| 1907 | o = self._get(name, by_label, nr) |
| 1908 | self._set_selected_state(o, not o.selected) |
| 1909 | |
| 1910 | def set(self, selected, name, by_label=False, nr=None): |
| 1911 | """Deprecated: given a name or label and optional disambiguating index |
nothing calls this directly
no test coverage detected