]>
Commit | Line | Data |
---|---|---|
7dcf23b1 SH |
1 | #!/usr/bin/python |
2 | # -*- coding: utf-8 -*- | |
3 | # | |
4 | # Copyright (C) 2011 Sebastien Helleu <flashcode@flashtux.org> | |
5 | # | |
6 | # This file is part of QWeeChat, a Qt remote GUI for WeeChat. | |
7 | # | |
8 | # QWeeChat is free software; you can redistribute it and/or modify | |
9 | # it under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 3 of the License, or | |
11 | # (at your option) any later version. | |
12 | # | |
13 | # QWeeChat is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | # | |
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with QWeeChat. If not, see <http://www.gnu.org/licenses/>. | |
20 | # | |
21 | ||
22 | # | |
23 | # Debug window. | |
24 | # | |
25 | ||
26 | import qt_compat | |
27 | QtGui = qt_compat.import_module('QtGui') | |
28 | from chat import ChatTextEdit | |
29 | from input import InputLineEdit | |
30 | ||
31 | ||
32 | class DebugDialog(QtGui.QDialog): | |
33 | """Debug dialog.""" | |
34 | ||
35 | def __init__(self, *args): | |
36 | apply(QtGui.QDialog.__init__, (self,) + args) | |
37 | self.resize(640, 480) | |
38 | self.setWindowTitle('Debug console') | |
39 | ||
40 | self.chat = ChatTextEdit() | |
41 | self.input = InputLineEdit(self.chat) | |
42 | ||
43 | vbox = QtGui.QVBoxLayout() | |
44 | vbox.addWidget(self.chat) | |
45 | vbox.addWidget(self.input) | |
46 | ||
47 | self.setLayout(vbox) |