code: def get_selected_thread(self):
          
          threadlinewidget = self.get_selected_threadline()
          thread = None
          if threadlinewidget:
              thread = threadlinewidget.get_thread()
          return thread
docs: returns currently selected :class:`~alot.db.Thread`