docstr: Return the currently selected stack frame (or None if there is no selection)
          
docstr_tok: ["Return","the","currently","selected","stack","frame","(","or","None","if","there","is","no","selection",")"]
code: def selectedFrame(self):
      """Return the currently selected stack frame (or None if there is no selection)"""
      sel = self.selectedItems()
      if len(sel) == 0:
          return None
      else:
          return sel[0].frame
  
file_path: pyqtgraph/pyqtgraph/console/stackwidget.py
imports: import sys, traceback
  from ..Qt import QtWidgets, QtGui
label_desc: Use image node_id 2 for calling the StackWidget obj's underlying member method code with example usage: obj.selectedFrame() and returns: None, sel