From c46a70c49daee455e05645ea955bec21bfb82bd3 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Fri, 5 Nov 2010 22:48:25 -0400 Subject: [PATCH] button: add text property --- kivy/uix/button.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kivy/uix/button.py b/kivy/uix/button.py index e8b08b812..cbc24ca67 100644 --- a/kivy/uix/button.py +++ b/kivy/uix/button.py @@ -5,12 +5,14 @@ Button: __all__ = ('Button', ) from kivy.uix.widget import Widget -from kivy.c_ext.properties import OptionProperty +from kivy.c_ext.properties import OptionProperty, StringProperty class Button(Widget): state = OptionProperty('normal', options=('normal', 'down')) + text = StringProperty('Hello') + def __init__(self, **kwargs): super(Button, self).__init__(**kwargs) self.register_event_type('on_press')