##// END OF EJS Templates
Updating docs to reflect new examples....
Updating docs to reflect new examples. * Changed literalinclude paths to point to /examples. * Removed parallel options demo from parallel_demos.txt as it is now a notebook. Eventually we will find a way to integrate notebooks with the sphinx docs, but that is beyond the scope of this branch.

File last commit:

r2661:595fc3b9
r9200:daa73a3d
Show More
IPython1SandboxAppDelegate.py
39 lines | 931 B | text/x-python | PythonLexer
#
# IPython1SandboxAppDelegate.py
# IPython1Sandbox
#
# Created by Barry Wark on 3/4/08.
# Copyright __MyCompanyName__ 2008. All rights reserved.
#
from Foundation import NSObject, NSPredicate
import objc
import threading
from PyObjCTools import AppHelper
from twisted.internet import reactor
class IPython1SandboxAppDelegate(NSObject):
ipythonController = objc.IBOutlet()
def applicationShouldTerminate_(self, sender):
if reactor.running:
reactor.addSystemEventTrigger(
'after', 'shutdown', AppHelper.stopEventLoop)
reactor.stop()
return False
return True
def applicationDidFinishLaunching_(self, sender):
reactor.interleave(AppHelper.callAfter)
assert(reactor.running)
def workspaceFilterPredicate(self):
return NSPredicate.predicateWithFormat_("NOT (self.value BEGINSWITH '<')")