diff --git a/libs/pyglet/text/__init__.py b/libs/pyglet/text/__init__.py index 0772500..68c45e5 100644 --- a/libs/pyglet/text/__init__.py +++ b/libs/pyglet/text/__init__.py @@ -271,6 +271,8 @@ class DocumentLabel(layout.TextLayout): @color.setter def color(self, color): + r, g, b, *a = color + color = r, g, b, a[0] if a else 255 self.document.set_style(0, len(self.document.text), {'color': color}) @property