#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""
NexText
Functions to interact with a Nextion Text element
"""
# custom packages
from .common import Common, CommonBackgroundColorMixin, CommonFontMixin, \
CommonPositionMixin, CommonTextMixin
[docs]class NexTextError(Exception):
"""Base class for exceptions in this module."""
pass
[docs]class NexText(Common, CommonBackgroundColorMixin, CommonFontMixin,
CommonPositionMixin, CommonTextMixin):
"""docstring for NexText"""
def __init__(self, nh, pid: int, cid: int, name: str) -> None:
"""
Init text
:param nh: The Nextion hardware interface object
:type nh: NexHardware
:param pid: The page ID
:type pid: int
:param cid: The component ID
:type cid: int
:param name: The component name
:type name: str
"""
super().__init__(nh, pid, cid, name)