本文整理匯總了Python中mixer_saffire_base.SaffireMixerBase.updateSelector方法的典型用法代碼示例。如果您正苦於以下問題:Python SaffireMixerBase.updateSelector方法的具體用法?Python SaffireMixerBase.updateSelector怎麽用?Python SaffireMixerBase.updateSelector使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mixer_saffire_base.SaffireMixerBase
的用法示例。
在下文中一共展示了SaffireMixerBase.updateSelector方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: updateSelector
# 需要導入模塊: from mixer_saffire_base import SaffireMixerBase [as 別名]
# 或者: from mixer_saffire_base.SaffireMixerBase import updateSelector [as 別名]
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)
示例2: updateSelector
# 需要導入模塊: from mixer_saffire_base import SaffireMixerBase [as 別名]
# 或者: from mixer_saffire_base.SaffireMixerBase import updateSelector [as 別名]
def updateSelector(self,a0):
SaffireMixerBase.updateSelector(self,a0)