platypush/plugins/luma/oled/__init__.py
def text(self, text: str, pos: Union[Tuple[int], List[int]] = (0, 0),
             fill: str = 'white', font: Optional[str] = None, font_size: Optional[int] = None, clear: bool = False):
        """
        Draw text on the canvas.

        :param text: Text to be drawn.
        :param pos: Position of the text.
        :param fill: Text color (default: ``white``).
        :param font: ``font`` type override.
        :param font_size: ``font_size`` override.
        :param clear: Set to True if you want to clear the canvas before writing the text (default: False).
        """
        if clear:
            self.clear()

        font = self._get_font(font, font_size)

        with self.canvas as draw:
            draw.text(pos, text, fill=fill, font=font)

        Draw text on the canvas.

        :param text: Text to be drawn.
        :param pos: Position of the text.
        :param fill: Text color (default: ``white``).
        :param font: ``font`` type override.
        :param font_size: ``font_size`` override.
        :param clear: Set to True if you want to clear the canvas before writing the text (default: False).
        
Draw text on the canvas.
Draw text on the canvas .
def text(self, text: str, pos: Union[Tuple[int], List[int]] = (0, 0),
             fill: str = 'white', font: Optional[str] = None, font_size: Optional[int] = None, clear: bool = False):
        if clear:
            self.clear()
        font = self._get_font(font, font_size)
        with self.canvas as draw:
            draw.text(pos, text, fill=fill, font=font)
def text ( self , text : str , pos : Union [ Tuple [ int ] , List [ int ] ] = ( 0 , 0 ) , fill : str = 'white' , font : Optional [ str ] = None , font_size : Optional [ int ] = None , clear : bool = False ) : if clear : self . clear ( ) font = self . _get_font ( font , font_size ) with self . canvas as draw : draw . text ( pos , text , fill = fill , font = font )
Draw text on the canvas.
Draw text on the canvas .
"""
        Draw text on the canvas.

        :param text: Text to be drawn.
        :param pos: Position of the text.
        :param fill: Text color (default: ``white``).
        :param font: ``font`` type override.
        :param font_size: ``font_size`` override.
        :param clear: Set to True if you want to clear the canvas before writing the text (default: False).
        """
self
text
str
Text to be drawn.
Text to be drawn .
pos
Union[Tuple[int], List[int]]
Position of the text.
Position of the text .
fill
str
Text color (default: ``white``).
Text color ( default : ` ` white ` ` ) .
font
Optional[str]
``font`` type override.
` ` font ` ` type override .
font_size
Optional[int]
None
clear
bool
Set to True if you want to clear the canvas before writing the text (default: False).
Set to True if you want to clear the canvas before writing the text ( default : False ) .