def METHOD_NAME(self, use_waveform):
    """Set whether to paint using the waveform painter (or the normal one).
    :type use_waveform: bool
    """
    old_use_waveform = self._use_waveform
    if use_waveform != old_use_waveform:
        self._use_waveform = use_waveform
        self.painter = None
        data = self.data
        if data:
            self.surf = self._paint(data)
            self._invalidate()