def _hackhackhack(): styles = pythonpoint.getStyles() codeStyle = styles['Code'] codeStyle.leftIndent = 72 codeStyle.leading = 36 codeStyle.spaceBefore = 24 styles['Code'] = codeStyle pythonpoint.setStyles(styles)
def start_stylesheet(self, args): #makes it the current style sheet. path = self._arg('stylesheet',args,'path') if path=='None': path = [] if type(path) not in SeqTypes: path = [path] path.append('styles') path.append(os.getcwd()) modulename = self._arg('stylesheet', args, 'module') funcname = self._arg('stylesheet', args, 'function') try: found = imp.find_module(modulename, path) (file, pathname, description) = found mod = imp.load_module(modulename, file, pathname, description) except ImportError: #last gasp mod = getModule(modulename) #now get the function func = getattr(mod, funcname) pythonpoint.setStyles(func())