Lines Matching refs:styles
35 def __init__(self, styles=None, keymap=None):
36 if styles is None:
37 styles = Styles()
38 basic = styles.add('normal', tabsize=3, fontSize=12, fontFamily="Courier")
39 styles.add('error', parent=basic, foreground=colors.red)
40 styles.add('output', parent=basic, foreground=colors.blue)
41 styles.add('input', parent=basic, foreground=colors.black)
42 styles.add('prompt', parent=basic, foreground=colors.purple)
43 self.styles = styles
60 self.document = swing.text.DefaultStyledDocument(self.styles)
61 self.document.setLogicalStyle(0, self.styles.get('normal'))
74 style = self.styles.get(stylename)
84 #self.document.setCharacterAttributes(self.document.length-1, 1, self.styles.get('input'), 1)