code: def __init__(self, parent):
      QtWidgets.QLineEdit.__init__(self, parent)
      self.ps1 = ">>> "
      self.ps2 = "... "
      self.history = [""]
      self.ptr = 0
      self.setMultiline(False)
  
file_path: pyqtgraph/pyqtgraph/console/CmdInput.py
imports: from ..Qt import QtCore, QtWidgets
label_desc: Use image node_id 1 to create a new CmdInput object from inherited base classes: QtWidgets with example: obj = CmdInput(parent)