I have a .kv file containing among many widgets a label and I wish to contain a % symbol within the text string.
My string is currently in this format:
Label:
text: 'Brightness: %s ' % int(s1.value) if s1.value else 'Slider not set'
and this works fine. However, I wish to add the % value after the value so that the string appears like this:
Brightness: 75 %
I have tried escaping the % character using \ and ' ' but I always receive the error:
ValueError: incomplete format
Use % to escape % ->
%% will always be ignored :)