@ -74,19 +74,19 @@ class QuickMidiInputComboController(QtWidgets.QWidget):
#api.callbacks.auditionerVolumeChanged.append(self.callback__auditionerVolumeChanged)
def callback_startLoadingAuditionerInstrument ( self , idkey ) :
self . parentWidget . qtApp . setOverrideCursor ( QtCore . Qt . WaitCursor ) #reset in self.callback_auditionerInstrumentChanged
self . parentWidget . qtApp . setOverrideCursor ( QtCore . Qt . WaitCursor ) # type: ignore #mypy doesn't know PyQts parent Widget # reset in self.callback_auditionerInstrumentChanged
self . label . setText ( QtCore . QCoreApplication . translate ( " QuickMidiInputComboController " , " …loading… " ) )
self . parentWidget . qtApp . processEvents ( ) #actually show the label and cursor
def callback_auditionerInstrumentChanged ( self , exportMetadata : dict ) :
self . parentWidget . qtApp . restoreOverrideCursor ( ) #We assume the cursor was set to a loading animation
app = self . parentWidget . qtApp . restoreOverrideCursor ( ) # type: ignore #mypy doesn't know PyQts parent Widget #We assume the cursor was set to a loading animation
key = exportMetadata [ " id-key " ]
t = f " ➜ [ { key [ 0 ] } - { key [ 1 ] } ] { exportMetadata [ ' name ' ] } "
self . label . setText ( t )
def callback__auditionerVolumeChanged ( self , value : float ) :
self . volumeDial . setValue ( value )
self . parentWidget . statusBar ( ) . showMessage ( QtCore . QCoreApplication . translate ( " QuickMidiInputComboController " , " Volume: {} " ) . format ( value ) )
self . parentWidget . statusBar ( ) . showMessage ( QtCore . QCoreApplication . translate ( " QuickMidiInputComboController " , " Volume: {} " ) . format ( value ) ) # type: ignore #mypy doesn't know PyQts parent Widget
def _sendVolumeChangeToEngine ( self , newValue ) :
self . volumeDial . blockSignals ( True )