Set the foreground color of the text Parameters ---------- color : color
(self, color)
| 956 | self.stale = True |
| 957 | |
| 958 | def set_color(self, color): |
| 959 | """ |
| 960 | Set the foreground color of the text |
| 961 | |
| 962 | Parameters |
| 963 | ---------- |
| 964 | color : color |
| 965 | """ |
| 966 | # Make sure it is hashable, or get_prop_tup will fail. |
| 967 | try: |
| 968 | hash(color) |
| 969 | except TypeError: |
| 970 | color = tuple(color) |
| 971 | self._color = color |
| 972 | self.stale = True |
| 973 | |
| 974 | def set_horizontalalignment(self, align): |
| 975 | """ |
no outgoing calls