示例#1
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
示例#2
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
示例#3
0
	def turnOn(self):
		
		dvr.start(self.dvr)
		self.isPaused = 0
示例#4
0
    def turnOn(self):

        dvr.start(self.dvr)
        self.isPaused = 0
 def turnOn(self):
     dvr.start(self.dvr)