We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6842af4 commit 4ead3aaCopy full SHA for 4ead3aa
adafruit_button.py
@@ -229,6 +229,16 @@ def selected(self, value):
229
if self._label is not None:
230
self._label.color = new_label
231
232
+ @property
233
+ def group(self):
234
+ """Return self for compatibility with old API."""
235
+ print(
236
+ "Warning: The group property is being deprecated. "
237
+ "User code should be updated to add the Button directly to the "
238
+ "Display or other Groups."
239
+ )
240
+ return self
241
+
242
def contains(self, point):
243
"""Used to determine if a point is contained within a button. For example,
244
``button.contains(touch)`` where ``touch`` is the touch point on the screen will allow for
0 commit comments