Skip to content

Commit

Permalink
fix #3861 and #3860
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayaurora committed Dec 22, 2015
1 parent 47c60f1 commit ff17850
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kivy/core/image/img_pil.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _img_read(self, im):
img_tmp = img_ol
img_ol = img_tmp
yield ImageData(img_tmp.size[0], img_tmp.size[1],
img_tmp.mode.lower(), img_tmp.tostring())
img_tmp.mode.lower(), img_tmp.tobytes())
im.seek(im.tell() + 1)
except EOFError:
pass
Expand Down
10 changes: 10 additions & 0 deletions kivy/uix/behaviors/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ class ButtonBehavior(object):
defaults to `None`.
'''

MIN_STATE_TIME = 0.035
'''The minimum period of time which the widget must remain in the
`'down'` state.
..warning::
This is deprecated, and will be removed in the next major release.
Use :attr:`min_state_time` instead.
:attr:`MIN_STATE_TIME` is a float and defaults to 0.035.'''

min_state_time = NumericProperty(0.035)
'''The minimum period of time which the widget must remain in the
`'down'` state.
Expand Down

0 comments on commit ff17850

Please sign in to comment.