Deprecated: given a name or label and optional disambiguating index nr, set the matching item's selection to the bool value of selected. Selecting items follows the behavior described in the docstring of the 'get' method. if the item is disabled, or this control is
(self, selected, name, by_label=False, nr=None)
| 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 |
| 1912 | nr, set the matching item's selection to the bool value of selected. |
| 1913 | |
| 1914 | Selecting items follows the behavior described in the docstring of the |
| 1915 | 'get' method. |
| 1916 | |
| 1917 | if the item is disabled, or this control is disabled or readonly, |
| 1918 | raise AttributeError. |
| 1919 | |
| 1920 | """ |
| 1921 | deprecation( |
| 1922 | "control.get(...).selected = <boolean>") |
| 1923 | self._set_selected_state(self._get(name, by_label, nr), selected) |
| 1924 | |
| 1925 | def _set_selected_state(self, item, action): |
| 1926 | # action: |
nothing calls this directly
no test coverage detected