code: def gridPen(self):
          
          delegate = self.itemDelegate()
          if isinstance(delegate, XTreeWidgetDelegate):
              return delegate.gridPen()
          return QtGui.QPen()
docs: Returns the pen that will be used when drawing the grid lines.
          
          :return     <QtGui.QPen>