parameters: (self, x)
docstring: Turn the buffer viewer on or off.  The initial state of the
          buffer viewer depends on the Config variable 'show-buffers'.
docstring_summary: Turn the buffer viewer on or off.  The initial state of the
          buffer viewer depends on the Config variable 'show-buffers'.
docstring_tokens: Turn the buffer viewer on or off . The initial state of the buffer viewer depends on the Config variable show - buffers .
function: def enable(self, x):
          """Turn the buffer viewer on or off.  The initial state of the
          buffer viewer depends on the Config variable 'show-buffers'."""
          if x != 0 and x != 1:
              BufferViewer.notify.error('invalid parameter to BufferViewer.enable')
              return
          self.enabled = x
          self.dirty = 1
          if (x and self.task == 0):
              self.task = taskMgr.add(self.maintainReadout, "buffer-viewer-maintain-readout",
                                      priority=1)
function_tokens: def enable ( self , x ) : if x != 0 and x != 1 : BufferViewer . notify . error ( 'invalid parameter to BufferViewer.enable' ) return self . enabled = x self . dirty = 1 if ( x and self . task == 0 ) : self . task = taskMgr . add ( self . maintainReadout , "buffer-viewer-maintain-readout" , priority = 1 )