#NEWLINE# def __init__( self , alias = '' , text = '' , default_label = '' , parent = None ) : #NEWLINE# #INDENT# ' AliasLabel(alias:str , text: str, default_label: str,\n                             parent: QWidget) -> QHoverAliasLabel\n        Initialize the label with a text\n        \n        ' #NEWLINE# QtGui . QLabel . __init__ ( self , parent ) #NEWLINE# self . alias = alias #NEWLINE# self . caption = text #NEWLINE# if default_label : #NEWLINE# #INDENT# self . default_label = default_label #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . default_label = '' #NEWLINE# #UNINDENT# self . updateText ( ) #NEWLINE# self . setAttribute ( QtCore . Qt . WA_Hover ) #NEWLINE# self . setCursor ( QtCore . Qt . PointingHandCursor ) #NEWLINE# self . setToolTip ( alias ) #NEWLINE# self . palette ( ) . setColor ( QtGui . QPalette . WindowText , CurrentTheme . HOVER_DEFAULT_COLOR )