def setStyles(self, commonOverride=None):
        commonDefs = {}
        commonDefs.update(self.commonDefs)
        if commonOverride is not None:
            commonDefs.update(commonOverride)

        STCStyleEditor.setSTCStyles(self, self.styles, self.styleIdNames,
              commonDefs, self.language, self.lexer, self.keywords)
예제 #2
0
    def setStyles(self, commonOverride=None):
        commonDefs = {}
        commonDefs.update(self.commonDefs)
        if commonOverride is not None:
            commonDefs.update(commonOverride)

        STCStyleEditor.setSTCStyles(self, self.styles, self.styleIdNames,
                                    commonDefs, self.language, self.lexer,
                                    self.keywords)
예제 #3
0
    def __init__(self, parent, ID, title, pos, size, parentApp):
        wx.Frame.__init__(self, parent, ID, title, pos, size,
                          TOOL_WINDOW_STYLE)
        parentApp.shell = PythonCardShell(self, -1)

        configfile = configuration.getStyleConfigPath()
        if os.path.exists(configfile):
            STCStyleEditor.initSTC(parentApp.shell, configfile, 'python')

        # KEA this is temporary until we decide what reference
        # we want here
        parentApp.shell.interp.locals['pcapp'] = parentApp
        self.parentApp = parentApp

        wx.EVT_CLOSE(self, self.onCloseMe)

        # and now for a hack-fest
        if wx.Platform == '__WXMSW__':
            self.SetSize(size)
예제 #4
0
 def getSTCStyles(self, config, language):
     """ Override to set values directly """
     return STCStyleEditor.initFromConfig(config, language)
 def getSTCStyles(self, config, language):
     """ Override to set values directly """
     return STCStyleEditor.initFromConfig(config, language)