@zencuke102 said:
Setting Switch.enabled = 0 instead of False may be wrong but it works
You're right but as s.enabled is a Boolean, you could have surprise, try
import ui s = ui.Switch() s.enabled = 7 print(s.enabled)any non-zero int will give True