<s> from muntjac . api import Label <EOL> class CodeLabel ( Label ) : <EOL> CLIENT_WIDGET = None <EOL> def __init__ ( self , content = None ) : <EOL> if content is None : <EOL> self . setContentMode ( self . CONTENT_PREFORMATTED ) <EOL> super ( CodeLabel , self ) . __init__ ( ) <EOL> else : <EOL> super ( CodeLabel , self ) . __init__ ( content , self . CONTENT_PREFORMATTED ) <EOL> def setContentMode ( self , contentMode ) : <EOL> if contentMode != self . CONTENT_PREFORMATTED : <EOL> raise NotImplementedError , '<STR_LIT>' <EOL> super ( CodeLabel , self ) . setContentMode ( self . CONTENT_PREFORMATTED ) </s>
