0
I want to make a switch button with kivy style, when one is true, the other is false, however, when I change a variable in the class of the first, it is not changed in the second, and remains with the original value. Exemplifying:
c = 'NADA'
class A():
c = 'CLASS A'
class B():
print(c)
c = 'CLASS B'
print(c)
x = A()
x = B()
print(c)
Has as output:
NADA
CLASS B
NADA
What is the result you expect?
– Wictor Chaves
Sorry, I ended up not making explicit, but it’s like the friend below showed,
CLASS A
CLASS B
– Enzo Dtz