Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

kivy button disable

def build(self):
        # use a (r, g, b, a) tuple
        btn = Button(text ="Push Me !",
                     font_size ="20sp",
                     background_color =(1, 4, 6, 1),
                     color =(1, 1, 1, 1),
                     size =(32, 32),
                     size_hint =(.2, .2),
                     pos =(300, 250),
  
                     # Disabling the button   
                     disabled = True
  
                     )
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #kivy #button #disable
ADD COMMENT
Topic
Name
2+7 =