Currently I have this:
Code: Select all
default mus_vol = _preferences.get_volume("music")
if config.has_music:
label _("Music Volume")
vbox:
bar value Preference("music volume") tooltip _("Change the music volume")
text _("[mus_vol]%")
I've also tried using python substitution
Code: Select all
default mus_vol = _preferences.get_volume("music")
if config.has_music:
label _("Music Volume")
vbox:
bar value Preference("music volume") tooltip _("Change the music volume")
text _("%s") %mus_vol
How can I get this as a value that I can use and convert it to a 100, 99, 98, etc instead of 1.0, 0.99, 0.98 etc.