(self, attr)
Set the default attribute.
Set the default attribute.
Set the default attribute .
def set_attr(self, attr):
        """Set the default attribute."""
        self.attr = attr
        self.graphics.set_attr(attr)
        self.text_screen.set_attr(attr)
        if not self.mode.is_text_mode and self.mode.cursor_attr is None:
            self.cursor.set_attr(attr)
def set_attr ( self , attr ) : self . attr = attr self . graphics . set_attr ( attr ) self . text_screen . set_attr ( attr ) if not self . mode . is_text_mode and self . mode . cursor_attr is None : self . cursor . set_attr ( attr )