Skip to content

Commit

Permalink
doc: revisions to uix/label.py and uix/widget.py to make them consise…
Browse files Browse the repository at this point in the history
…nt and simpler
  • Loading branch information
Zen-CODE committed Nov 8, 2013
1 parent 6e62335 commit 9a60525
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion kivy/uix/label.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ def on_ref_press(self, ref):
widget = Label(text=u'My unicode string')
:data:`text` is a :class:`~kivy.properties.StringProperty`.
:data:`text` is a :class:`~kivy.properties.StringProperty` and defaults to
''.
'''

text_size = ListProperty([None, None])
Expand Down
10 changes: 5 additions & 5 deletions kivy/uix/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@
When you read the documentation, all properties are described in the format::
<name> is a <property class>, defaults to <default value>
<name> is a <property class> and defaults to <default value>.
For example::
e.g.
:data:`Widget.pos` is a :class:`~kivy.properties.ReferenceListProperty` of
(:data:`Widget.x`, :data:`Widget.y`) properties.
:data:`~kivy.uix.label.Label.text` is a
:class:`~kivy.properties.StringProperty` and defaults to ''.
If you want to be notified when the pos attribute changes, i.e., when the
If you want to be notified when the pos attribute changes, i.e. when the
widget moves, you can bind your own callback function like this::
def callback_pos(instance, value):
Expand Down

0 comments on commit 9a60525

Please sign in to comment.