My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 284 attachment: ui_widgets_flippable.py (239 bytes)

1
2
3
4
5
6
7
8
9
10
11
from pymt import *

widget = MTFlippableWidget()
widget.add_widget(MTLabel(label='Front'), side='front')
widget.add_widget(MTLabel(label='Back'), side='back')

@widget.event
def on_touch_down(touch):
widget.flip()

runTouchApp(widget)
Powered by Google Project Hosting