Merge pull request #2981 from merriam/merriam_branch_36

examples/canvas/rotation.py Added docstring.
This commit is contained in:
dessant 2015-02-03 01:31:04 +02:00
commit c69a64dfd8
1 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,12 @@
'''
Rotation Example
================
This example rotates a button using PushMatrix and PopMatrix. You should see
a static button with the words 'hello world' rotated at a 45 degree angle.
'''
from kivy.app import App
from kivy.lang import Builder
@ -23,4 +32,3 @@ class RotationApp(App):
return Builder.load_string(kv)
RotationApp().run()