Example #1
0
    def __init__(self, initialFilename=None):
        JESProgram.activeInstance = self
        self.startupTimeSec = 0

        # Install all the plugins
        self.pluginData = PluginData()
        self.pluginInstaller = PluginInstaller(self.pluginData)

        # Set up the interpreter
        self.interpreter = terp = Interpreter()
        self.debugger = terp.debugger
        self.watcher = Watcher(self.debugger)

        addInterpreterActions(terp)

        terp.initialize(self.initializeInterpreter)
        self.varsToHighlight = list(terp.initialNames)

        # Install the file manager.
        self.fileManager = FileManager()

        self.setupGUI(initialFilename)

        # Open the first Python prompt!
        self.replBuffer.startStatement()