Exemple #1
0
 def volMute(self, showMuteSymbol=True, force=False):
     if hdmi_cec.isVolumeForwarded():
         return
     vol = self.volctrl.getVolume()
     if vol or force:
         self.volctrl.volumeToggleMute()
         if self.volctrl.isMuted():
             if showMuteSymbol:
                 self.muteDialog.show()
             self.volumeDialog.setValue(0)
         else:
             self.muteDialog.hide()
             self.volumeDialog.setValue(vol)
Exemple #2
0
	def volMute(self, showMuteSymbol=True, force=False):
		if hdmi_cec.isVolumeForwarded():
			return
		vol = self.volctrl.getVolume()
		if vol or force:
			self.volctrl.volumeToggleMute()
			if self.volctrl.isMuted():
				if showMuteSymbol:
					self.muteDialog.show()
				self.volumeDialog.setValue(0)
			else:
				self.muteDialog.hide()
				self.volumeDialog.setValue(vol)
Exemple #3
0
 def volDown(self):
     if hdmi_cec.isVolumeForwarded():
         return
     self.setVolume(-1)
Exemple #4
0
 def volUp(self):
     if hdmi_cec.isVolumeForwarded():
         return
     self.setVolume(+1)
Exemple #5
0
	def volDown(self):
		if hdmi_cec.isVolumeForwarded():
			return
		self.setVolume(-1)
Exemple #6
0
	def volUp(self):
		if hdmi_cec.isVolumeForwarded():
			return
		self.setVolume(+1)