class_docstr: Widget used to display or control data from a hierarchy of Parameters
class_docstr_tok: ["Widget","used","to","display","or","control","data","from","a","hierarchy","of","Parameters"]
docstr: Set the top-level :class:`Parameter <pyqtgraph.parametertree.Parameter>`
  to be displayed in this ParameterTree.
  
  If *showTop* is False, then the top-level parameter is hidden and only 
  its children will be visible. This is a convenience method equivalent 
  to::
  
      tree.clear()
      tree.addParameters(param, showTop)
docstr_tok: ["Set","the","top-level",":","class",":","`","Parameter","<","pyqtgraph.parametertree.Parameter",">","`","to","be","displayed","in","this","ParameterTree",".","If","*","showTop","*","is","False",",","then","the","top-level","parameter","is","hidden","and","only","its","children","will","be","visible",".","This","is","a","convenience","method","equivalent","to",":",":","tree.clear","(",")","tree.addParameters","(","param",",","showTop",")"]
code: def setParameters(self, param, showTop=True):
      """
      Set the top-level :class:`Parameter <pyqtgraph.parametertree.Parameter>`
      to be displayed in this ParameterTree.
  
      If *showTop* is False, then the top-level parameter is hidden and only
      its children will be visible. This is a convenience method equivalent
      to::
  
          tree.clear()
          tree.addParameters(param, showTop)
      """
      self.clear()
      self.addParameters(param, showTop=showTop)
  
file_path: pyqtgraph/pyqtgraph/parametertree/ParameterTree.py
imports: from .parameterTypes import GroupParameterItem
  from ..Qt import QtCore, QtWidgets, mkQApp
  from ..widgets.TreeWidget import TreeWidget
  from .ParameterItem import ParameterItem
label_desc: Use image node_id 2 for calling the ParameterTree obj's underlying member method code with example usage: obj.setParameters(param, showTop) without return types