mirror of https://github.com/kivy/kivy.git
python 3 syntax in pagelayout.py
print command was in python2 syntax, so you get an error running it on python3. Changed lines 22 and 54.
This commit is contained in:
parent
73d5f621db
commit
933ef2c86b
|
@ -19,7 +19,7 @@ PageLayout:
|
|||
|
||||
Button:
|
||||
text: 'test'
|
||||
on_press: print "test"
|
||||
on_press: print("test")
|
||||
|
||||
BoxLayout:
|
||||
orientation: 'vertical'
|
||||
|
@ -51,7 +51,7 @@ PageLayout:
|
|||
source: 'http://kivy.org/slides/kivyandroid-thumb.jpg'
|
||||
Button:
|
||||
text: 'test'
|
||||
on_press: print "test last page"
|
||||
on_press: print("test last page")
|
||||
AsyncImage:
|
||||
source: 'http://kivy.org/slides/kivypictures-thumb.jpg'
|
||||
Widget
|
||||
|
|
Loading…
Reference in New Issue