[frontpython commit] r51 -

1 view
Skip to first unread message

codesite...@google.com

unread,
Mar 26, 2009, 5:00:40 AM3/26/09
to frontpyth...@googlegroups.com
Author: jon.christopher
Date: Thu Mar 26 01:25:44 2009
New Revision: 51

Added:
trunk/SDK/PyFR/Alert.py

Log:

adding example class showing how to show an alert screen


Added: trunk/SDK/PyFR/Alert.py
==============================================================================
--- (empty file)
+++ trunk/SDK/PyFR/Alert.py Thu Mar 26 01:25:44 2009
@@ -0,0 +1,15 @@
+#import modules required by application
+from BackRow import *
+
+def Alert(controller,msg):
+ alert =
BRAlertController.alertOfType_titled_primaryText_secondaryText_(
0, "Alert", msg, "Press any remote button to go back.")
+ return controller.stack().pushController_(alert)
+
+#
+# example usage
+#
+
+# import PyFR.Alert
+# def SomeRandomMenuHandler(controller, arg):
+# return PyFR.Alert.Alert(controller, "Eat me!")
+

Reply all
Reply to author
Forward
0 new messages