Ejemplo n.º 1
0
 def updateSelector(self, a0):
     sender = self.sender()
     #if sender == self.chkAC3 and not self.my_parent.is_not_streaming:
     #msg = QMessageBox()
     #msg.question( msg, "Error", \
     #"<qt>Change not permitted. Is streaming active?</qt>", \
     #QMessageBox.Ok )
     #self.chkAC3.setEnabled(False)
     #if a0:
     #self.chkAC3.setChecked(False)
     #else:
     #self.chkAC3.setChecked(True)
     #return
     if sender == self.chkMidiEnable and not self.my_parent.is_not_streaming:
         msg = QMessageBox()
         msg.question( msg, "Error", \
             "<qt>Change not permitted. Is streaming active?</qt>", \
             QMessageBox.Ok )
         self.chkMidiEnable.setEnabled(False)
         state = self.hw.getDiscrete(
             self.SelectorControls[self.chkMidiEnable][0])
         if state:
             self.chkMidiEnable.setChecked(True)
         else:
             self.chkMidiEnable.setChecked(False)
         return
     if sender == self.chkAdatDisable and not self.my_parent.is_not_streaming:
         msg = QMessageBox()
         msg.question( msg, "Error", \
             "<qt>Change not permitted. Is streaming active?</qt>", \
             QMessageBox.Ok )
         self.chkAdatDisable.setEnabled(False)
         state = self.hw.getDiscrete(
             self.SelectorControls[self.chkAdatDisable][0])
         if state:
             self.chkAdatDisable.setChecked(True)
         else:
             self.chkAdatDisable.setChecked(False)
         return
     SaffireMixerBase.updateSelector(self, a0)
Ejemplo n.º 2
0
 def updateSelector(self,a0):
     sender = self.sender()
     #if sender == self.chkAC3 and not self.my_parent.is_not_streaming:
         #msg = QMessageBox()
         #msg.question( msg, "Error", \
             #"<qt>Change not permitted. Is streaming active?</qt>", \
             #QMessageBox.Ok )
         #self.chkAC3.setEnabled(False)
         #if a0:
             #self.chkAC3.setChecked(False)
         #else:
             #self.chkAC3.setChecked(True)
         #return
     if sender == self.chkMidiEnable and not self.my_parent.is_not_streaming:
         msg = QMessageBox()
         msg.question( msg, "Error", \
             "<qt>Change not permitted. Is streaming active?</qt>", \
             QMessageBox.Ok )
         self.chkMidiEnable.setEnabled(False)
         state = self.hw.getDiscrete(self.SelectorControls[self.chkMidiEnable][0])
         if state:
             self.chkMidiEnable.setChecked(True)
         else:
             self.chkMidiEnable.setChecked(False)
         return
     if sender == self.chkAdatDisable and not self.my_parent.is_not_streaming:
         msg = QMessageBox()
         msg.question( msg, "Error", \
             "<qt>Change not permitted. Is streaming active?</qt>", \
             QMessageBox.Ok )
         self.chkAdatDisable.setEnabled(False)
         state = self.hw.getDiscrete(self.SelectorControls[self.chkAdatDisable][0])
         if state:
             self.chkAdatDisable.setChecked(True)
         else:
             self.chkAdatDisable.setChecked(False)
         return
     SaffireMixerBase.updateSelector(self,a0)
Ejemplo n.º 3
0
 def updateSelector(self,a0):
     SaffireMixerBase.updateSelector(self,a0)
Ejemplo n.º 4
0
 def updateSelector(self, a0):
     SaffireMixerBase.updateSelector(self, a0)