def toggleOnOff(self): if( self.isPaused == 0 ): print '***Pausing DVR***' dvr.stop(self.dvr) self.isPaused = 1 elif( self.isPaused == 1): print '***Unpausing DVR***' dvr.start(self.dvr) self.isPaused = 0
def toggleOnOff(self): if self.isPaused == 0: print "***Pausing DVR***" dvr.stop(self.dvr) self.isPaused = 1 elif self.isPaused == 1: print "***Unpausing DVR***" dvr.start(self.dvr) self.isPaused = 0
def turnOff(self): dvr.stop(self.dvr) self.isPaused = 1
def turnOff(self): dvr.stop(self.dvr)