comparison python/codeedit.py @ 247:dd8bbb963458

project remove
author Windel Bouwman
date Fri, 26 Jul 2013 10:44:26 +0200
parents ee0d30533dae
children b10d46e5c8dd
comparison
equal deleted inserted replaced
246:f254b87258e6 247:dd8bbb963458
20 self.setFont(QFont('Courier', 12)) 20 self.setFont(QFont('Courier', 12))
21 self.setFocusPolicy(Qt.StrongFocus) 21 self.setFocusPolicy(Qt.StrongFocus)
22 # TODO: only beam cursor in text area.. 22 # TODO: only beam cursor in text area..
23 self.setCursor(Qt.IBeamCursor) 23 self.setCursor(Qt.IBeamCursor)
24 h = QFontMetrics(self.font()).height() 24 h = QFontMetrics(self.font()).height()
25 self.errorPixmap = QPixmap('error.png').scaled(h, h) 25 self.errorPixmap = QPixmap('icons/error.png').scaled(h, h)
26 self.blinkcursor = False 26 self.blinkcursor = False
27 self.errorlist = [] 27 self.errorlist = []
28 # Initial values: 28 # Initial values:
29 self.setSource('') 29 self.setSource('')
30 self.CursorPosition = 0 30 self.CursorPosition = 0