parameters: (self)
docstring: remove any layers from preview canvas
docstring_summary: remove any layers from preview canvas
docstring_tokens: remove any layers from preview canvas
function: def _clear(self):
          """ remove any layers from preview canvas """
          if self.item is not None:
              # skip exception on RuntimeError fixes #6892
              try:
                  self.item.aboutToChange.disconnect(self.setDirty)
              except RuntimeError:
                  pass
  
          self.item = None
          self.dirty = False
          self._loadTablePreview(None)
function_tokens: def _clear ( self ) : if self . item is not None : # skip exception on RuntimeError fixes #6892 try : self . item . aboutToChange . disconnect ( self . setDirty ) except RuntimeError : pass self . item = None self . dirty = False self . _loadTablePreview ( None )