[frontpython commit] r39 - trunk/SDK/PyFR

1 view
Skip to first unread message

codesite...@google.com

unread,
Apr 8, 2008, 5:56:52 PM4/8/08
to frontpyth...@googlegroups.com
Author: jon.christopher
Date: Mon Apr 7 16:01:16 2008
New Revision: 39

Modified:
trunk/SDK/PyFR/AppLauncherController.py

Log:

disable FrontRow's auto-quit which normally happens after ~20 minutes


Modified: trunk/SDK/PyFR/AppLauncherController.py
==============================================================================
--- trunk/SDK/PyFR/AppLauncherController.py (original)
+++ trunk/SDK/PyFR/AppLauncherController.py Mon Apr 7 16:01:16 2008
@@ -9,7 +9,7 @@

#import modules required by application
import PyFR.WaitController
-
+import objc

class AppLauncherController(PyFR.WaitController.WaitController):
def initWithApp_file_(self, text, application, file = None):
@@ -27,8 +27,11 @@
def PyFR_start(self):
self.launchApp( self.app, self.file )

- def FRWasShown(self):
- self.waitDone()
-
+ # FR automatically quits after 20 minutes. This should
disable that behavior...
+ # not tested here, you might need to do this a few seconds
into your AppShouldExit callback
+ foo=objc.lookUpClass("FRAutoQuitManager")
+ foo.sharedManager().setAutoQuitEnabled_(False)


+ def FRWasShown(self):
+ self.waitDone()

Reply all
Reply to author
Forward
0 new messages