64d4e9fe0f6ff0b56eed112afec3c3e66e6afcad
[sface.git] / sface / logwindow.py
1 from PyQt4.QtCore import *
2 from PyQt4.QtGui import *
3
4 from sface.config import config
5
6
7 class LogWindow(QDialog):
8     def __init__(self, parent=None):
9         QWidget.__init__(self, parent)
10         self.setWindowTitle("SFI Log")
11         self.text = QTextBrowser(self)
12         
13         layout = QVBoxLayout()
14         layout.addWidget(self.text)
15         self.setLayout(layout)
16
17     def setText(self, txt):
18         self.text.setText(txt)
19         
20