blob: 231ce1e04743e5f98644679bf7861a5d80e2eeb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
''' unit test for BUG #1077 '''
from PySide import QtCore, QtGui
import time
class Highlighter(QtGui.QSyntaxHighlighter):
def __init__(self, parent, mode):
QtGui.QSyntaxHighlighter.__init__(self, parent)
self.tstamp = time.time()
if __name__ == "__main__":
app = QtGui.QApplication([])
python = QtGui.QTextEdit()
python.setWindowTitle("python")
hl = Highlighter(python.document(), "python")
python.show()
text = hl.document()
|