def __init__(self, text, size=(None, None),  auto_size_text=None, click_submits=None, enable_events=False, relief=None, font=None, text_color=None, background_color=None, justification=None, pad=None, margins=None, key=None, tooltip=None, visible=True, size_px=(None,None)):
        '''
        Text Element
        :param text:
        :param size:
        :param auto_size_text:
        :param click_submits:
        :param relief:
        :param font:
        :param text_color:
        :param background_color:
        :param justification:
        :param pad:
        :param key:
        :param tooltip:
        '''
        self.DisplayText = str(text)
        self.TextColor = text_color if text_color else DEFAULT_TEXT_COLOR
        self.Justification = justification or 'left'
        self.Relief = relief
        self.ClickSubmits = click_submits or enable_events
        self.Margins = margins
        if background_color is None:
            bg = DEFAULT_TEXT_ELEMENT_BACKGROUND_COLOR
        else:
            bg = background_color
        self.QT_Label = None
        self.Visible = visible

        super().__init__(ELEM_TYPE_TEXT, size, auto_size_text, background_color=bg, font=font if font else DEFAULT_FONT,
                         text_color=self.TextColor, pad=pad, key=key, tooltip=tooltip, size_px=size_px)
        return
def __init__ ( self , text , size = ( None , None ) , auto_size_text = None , click_submits = None , enable_events = False , relief = None , font = None , text_color = None , background_color = None , justification = None , pad = None , margins = None , key = None , tooltip = None , visible = True , size_px = ( None , None ) ) : self . DisplayText = str ( text ) self . TextColor = text_color if text_color else DEFAULT_TEXT_COLOR self . Justification = justification or 'left' self . Relief = relief self . ClickSubmits = click_submits or enable_events self . Margins = margins if background_color is None : bg = DEFAULT_TEXT_ELEMENT_BACKGROUND_COLOR else : bg = background_color self . QT_Label = None self . Visible = visible super ( ) . __init__ ( ELEM_TYPE_TEXT , size , auto_size_text , background_color = bg , font = font if font else DEFAULT_FONT , text_color = self . TextColor , pad = pad , key = key , tooltip = tooltip , size_px = size_px ) return
Text Element
        :param text:
        :param size:
        :param auto_size_text:
        :param click_submits:
        :param relief:
        :param font:
        :param text_color:
        :param background_color:
        :param justification:
        :param pad:
        :param key:
        :param tooltip: