#!/usr/bin/python
# -*- coding: utf-8 -*-
#
-# Copyright (C) 2011 Sebastien Helleu <flashcode@flashtux.org>
+# debug.py - debug window
+#
+# Copyright (C) 2011-2013 Sebastien Helleu <flashcode@flashtux.org>
#
# This file is part of QWeeChat, a Qt remote GUI for WeeChat.
#
# along with QWeeChat. If not, see <http://www.gnu.org/licenses/>.
#
-#
-# Debug window.
-#
-
import qt_compat
QtGui = qt_compat.import_module('QtGui')
from chat import ChatTextEdit
"""Debug dialog."""
def __init__(self, *args):
- apply(QtGui.QDialog.__init__, (self,) + args)
+ QtGui.QDialog.__init__(*(self,) + args)
self.resize(640, 480)
self.setWindowTitle('Debug console')
- self.chat = ChatTextEdit()
+ self.chat = ChatTextEdit(debug=True)
self.input = InputLineEdit(self.chat)
vbox = QtGui.QVBoxLayout()