parameters: (self, **kwds)
docstring: Constructor.
docstring_summary: Constructor.
docstring_tokens: Constructor .
function: def __init__(self, **kwds):
          """
          Constructor.
          """
          super(LogWidget, self).__init__(**kwds)
          self.top_layout = WidgetUtils.addLayout(vertical=True)
          self.setLayout(self.top_layout)
          self.log = QTextBrowser(self)
          self.log.setStyleSheet("QTextBrowser { background: black; color: white; }")
          self.log.setReadOnly(True)
          message.messageEmitter.message.connect(self._write)
          self.button_layout = WidgetUtils.addLayout()
          self.hide_button = WidgetUtils.addButton(self.button_layout, self, "Hide", lambda: self.hide())
          self.clear_button = WidgetUtils.addButton(self.button_layout, self, "Clear", lambda: self.log.clear())
          self.top_layout.addWidget(self.log)
          self.top_layout.addLayout(self.button_layout)
          self.resize(800, 500)
function_tokens: def __init__ ( self , * * kwds ) : super ( LogWidget , self ) . __init__ ( * * kwds ) self . top_layout = WidgetUtils . addLayout ( vertical = True ) self . setLayout ( self . top_layout ) self . log = QTextBrowser ( self ) self . log . setStyleSheet ( "QTextBrowser { background: black; color: white; }" ) self . log . setReadOnly ( True ) message . messageEmitter . message . connect ( self . _write ) self . button_layout = WidgetUtils . addLayout ( ) self . hide_button = WidgetUtils . addButton ( self . button_layout , self , "Hide" , lambda : self . hide ( ) ) self . clear_button = WidgetUtils . addButton ( self . button_layout , self , "Clear" , lambda : self . log . clear ( ) ) self . top_layout . addWidget ( self . log ) self . top_layout . addLayout ( self . button_layout ) self . resize ( 800 , 500 )