Issues with the swimming_workout.ico
Opened this issue · 0 comments
In Python/runWorkout.py , the swimming_workout.ico doesn't seem to apply in the iconbitmap() call causing the program to fail. When removed, everything runs successfully.
I am using Ubuntu 22.04.04 LTS. I have learned that .ico is OS-dependent and I should use the .xbm file instead. Using the .xbm as the parameter in iconbitmap('swimming_workout.xbm') continues to output an error.
However, using iconbitmap('@swimming_workout.xbm') also allows the program to continue successfully, however the icon image does not appear in the sidebar. This may be an issue while running the file in the IDE vs compiled.
Since this issue causes the program to crash but isn't particularly important for the program running itself, it may be possible add a check to ignore this call if the iconbitmap() fails. In addition to this, it may be possible to add a check for the device OS to automatically pick which file to use before making the iconbimap() call.