@ -371,15 +371,16 @@ class MainWindow(TemplateMainWindow):
bpmCheckbox . stateChanged . connect ( bpmCheckboxChanged )
def callback_quarterNotesPerMinuteChanged ( newValue ) :
#We just receive an int, not a dict.
def callback_quarterNotesPerMinuteChanged ( newValue : float ) :
""" We just receive a float, not a dict. Jack supports floats as tempo.
However , we only use ints here and our spinbox is int . """
beatsPerMinute . blockSignals ( True )
bpmCheckbox . blockSignals ( True )
if newValue :
bpmCheckbox . setChecked ( True )
beatsPerMinute . setEnabled ( True )
beatsPerMinute . setValue ( newValue )
beatsPerMinute . setValue ( int ( newValue ) )
else :
beatsPerMinute . setEnabled ( False )
bpmCheckbox . setChecked ( False )
@ -389,8 +390,6 @@ class MainWindow(TemplateMainWindow):
bpmCheckbox . blockSignals ( False )
api . callbacks . quarterNotesPerMinuteChanged . append ( callback_quarterNotesPerMinuteChanged )
#Number of Measures
numberOfMeasures = QtWidgets . QSpinBox ( )
numberOfMeasures . setMinimum ( 1 )