Limiting Length of Numeric Settings
#1
I have some numeric settings in my addon which I want to be able to limit to a maximum of 3 digits, can this be done?
Reply
#2
Use a slider control.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
(2012-11-23, 08:38)Nuka1195 Wrote: Use a slider control.

Thanks for the suggestion, I did look at that but it doesn't really fit with what these settings are for.

We have an EPG plugin which also streams live TV, what we want to do is allow the user to give each channel a specific number between 0 and 999. This would allow them to order them according to personal preference or, for example, to match their real STB, eg

BBC One 101
BBC Two 102
ITV1 103
Channel4 104
etc

Whereas someone else might want:
BBC One 1
BBC Two 2
ITV1 3
Channel4 4
etc





Reply
#4
The only other option I know of us to check the setting in code and pop up a warning if it's invalid. Further, you could then set it to the maximum unused value. Not very elegant though
Reply

Logout Mark Read Team Forum Stats Members Help
Limiting Length of Numeric Settings0