nwfsc-fram / pyFieldSoftware

MIT License
1 stars 1 forks source link

Trawl Backdeck Weight baskets numpad isn't playing donuts sound #210

Open jimfellows-NOAA opened 3 years ago

jimfellows-NOAA commented 3 years ago

The WeighBasketsScreen.qml file is incorrectly calling soundPlayer.play_sound. The PyQtSlot is defined as playSound in the common.SoundPlayer file. The actual python method is called play_sound, which I think is where the confusion comes from. Other sounds use their own python wrapper (see FishSampling.playSound and ProcessCatch.playSound) which allows QML to pass only the single string arg. SoundPlayer.playSound needs all three, sound_name, priority, and override.

jimfellows-NOAA commented 3 years ago

Should be resolved after merging pull request https://github.com/nwfsc-fram/pyFieldSoftware/pull/209