(self)
Plays if paused, pauses if playing.
Plays if paused, pauses if playing.
Plays if paused pauses if playing .
def playpause(self):
        """ Plays if paused, pauses if playing. """
        if self.state == RAMP_STATE_PLAYING:
            self.pause()
        else:
            self.play()
def playpause ( self ) : if self . state == RAMP_STATE_PLAYING : self . pause ( ) else : self . play ( )