Reputation: 25
:
canvas:
Color:
rgb: 1, 1, 1
Rectangle:
source: "bbbg.png"
size: self.size
BoxLayout:
orientation: 'vertical'
Button:
#pos_hint: {'center': .01}
#size_hint_x: 1
#size_hint_y: 0.07
#size_hint_x: 0.07
disabled:True
pos_hint: {'center': 0}
background_color: 1,1,1,0
on_release: root.manager.current = 'select_next'
on_press: app.nextbtn(self)
source: None
name:""
Image:
size: 540, 540
center: self.parent.center
allow_stretch: True
source: "playbutton.png"
Upvotes: 0
Views: 4465
Reputation: 29488
Get a reference to the button, and then simply set the disabled property to False. For instance, if it is your root widget, you could do App.get_running_app().root.disabled = False
.
The best way to get a reference depends entirely on the context, provide more information if it's not clear.
Upvotes: 1