mirror of https://github.com/kivy/kivy.git
Merge pull request #2981 from merriam/merriam_branch_36
examples/canvas/rotation.py Added docstring.
This commit is contained in:
commit
c69a64dfd8
|
@ -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.app import App
|
||||||
from kivy.lang import Builder
|
from kivy.lang import Builder
|
||||||
|
|
||||||
|
@ -23,4 +32,3 @@ class RotationApp(App):
|
||||||
return Builder.load_string(kv)
|
return Builder.load_string(kv)
|
||||||
|
|
||||||
RotationApp().run()
|
RotationApp().run()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue