title: AttributeError: 'botclass' object has no attribute 'loglist'
body: <pre><code>class botclass(QtCore.QObject):
      progressChanged = QtCore.pyqtSignal(int)
      def bot(self):
          example_error_message = QListWidgetItem(&quot;Error&quot;)
              example_error_message.setForeground(Qt.red)
              self.loglist.insertItem(0, error)
  
  
  
  class MainPage(QMainWindow):
          def __init__(self, *args, **kwargs):
              QtWidgets.QWidget.__init__(self, *args, **kwargs)
              loadUi(&quot;uifile.ui&quot;, self)
              example_working_message = QListWidgetItem(&quot;Working&quot;)
              example_working_message.setForeground(Qt.green)
              self.loglist.insertItem(0, example_working_message)
  
  
              self.thread = QtCore.QThread()
              self.botwork = botclass()
              self.botwork.moveToThread(self.thread)
              self.thread.started.connect(self.botwork.bot)
              self.botwork.clicked.connect(self.thread.start)
  </code></pre>
  <p>Error is &quot;AttributeError: 'botclass' object has no attribute 'loglist'&quot;</p>
  <p>I'm getting this error when using PyQt5 in Python, how can I solve it? &quot;botclass&quot; will be used with selenium.</p>
  <p>How can fix this?</p>