[frontpython commit] r43 - trunk/examples/FrontMyth

1 view
Skip to first unread message

codesite...@google.com

unread,
May 10, 2008, 1:00:42 PM5/10/08
to frontpyth...@googlegroups.com
Author: garionPHX
Date: Sat May 10 10:00:07 2008
New Revision: 43

Added:
trunk/examples/FrontMyth/FrontMyth.py
Removed:
trunk/examples/FrontMyth/FrontPython.py
Modified:
trunk/examples/FrontMyth/setup.py

Log:
Convert FrontMyth to use the AppLauncher class

Added: trunk/examples/FrontMyth/FrontMyth.py
==============================================================================
--- (empty file)
+++ trunk/examples/FrontMyth/FrontMyth.py Sat May 10 10:00:07 2008
@@ -0,0 +1,30 @@
+#
+# main.py
+# FrontPython
+#
+# Created by garion on 12/15/07.
+# Copyright __MyCompanyName__ 2007. All rights reserved.
+#
+
+
+#import modules required by application
+import PyFR.Appliance
+import PyFR.AppLauncherController
+#import PyFR.Debugging
+
+class MythLaunch(PyFR.AppLauncherController.AppLauncherController):
+ def init(self):
+ PyFR.AppLauncherController.AppLauncherController.initWithApp_( self,
+
'Launching MythTV',
+
'/Applications/MythFrontend.app' )
+ return self
+
+class RUIFrontMyth( PyFR.Appliance.Appliance ):
+ def getController(self):
+ return MythLaunch.alloc().init()
+
+
+
+
+
+

Modified: trunk/examples/FrontMyth/setup.py
==============================================================================
--- trunk/examples/FrontMyth/setup.py (original)
+++ trunk/examples/FrontMyth/setup.py Sat May 10 10:00:07 2008
@@ -2,7 +2,7 @@
import py2app


-plist = dict(NSPrincipalClass='RUIPythonAppliance',
+plist = dict(NSPrincipalClass='RUIFrontMyth',
CFBundleDevelopmentRegion='English',
CFBundleExecutable='FrontMyth',
CFBundleName='FrontMyth',
@@ -19,7 +19,8 @@


setup(
- plugin = ['FrontPython.py'],
+ plugin = ['FrontMyth.py'],
+ packages = ['PyFR'],
data_files=['English.lproj'],
options=dict(py2app=dict(extension='.frappliance', plist=plist))
)

Reply all
Reply to author
Forward
0 new messages