summaryrefslogtreecommitdiff
path: root/portato/gui/qt/windows.py
diff options
context:
space:
mode:
authornecoro <>2007-04-07 00:40:59 +0000
committernecoro <>2007-04-07 00:40:59 +0000
commit6fdf641424e50fb7515b843612b0625e31c4cf02 (patch)
treeb31862f8899c9d972eea382874f6c6d69eefb934 /portato/gui/qt/windows.py
parenta9b07b7c0c6382eb8fadcc54d1d8a00075c38a29 (diff)
downloadportato-6fdf641424e50fb7515b843612b0625e31c4cf02.tar.gz
portato-6fdf641424e50fb7515b843612b0625e31c4cf02.tar.bz2
portato-6fdf641424e50fb7515b843612b0625e31c4cf02.zip
Added Qt-Terminal
Diffstat (limited to '')
-rw-r--r--portato/gui/qt/windows.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/portato/gui/qt/windows.py b/portato/gui/qt/windows.py
index 475ac45..16152ec 100644
--- a/portato/gui/qt/windows.py
+++ b/portato/gui/qt/windows.py
@@ -21,6 +21,8 @@ from portato.backend.exceptions import *
from portato.gui.gui_helper import Database, Config, EmergeQueue
+from terminal import QtConsole
+
UI_DIR = DATA_DIR+"ui/"
app = QtGui.QApplication([])
@@ -229,11 +231,20 @@ class MainWindow (Window):
self.db = Database()
self.db.populate()
+ # the two lists
self.build_pkg_list()
self.build_cat_list()
QtCore.QObject.connect(self.selCatListModel, QtCore.SIGNAL("currentChanged(QModelIndex, QModelIndex)"), self.cb_cat_list_selected)
QtCore.QObject.connect(self.selPkgListModel, QtCore.SIGNAL("currentChanged(QModelIndex, QModelIndex)"), self.cb_pkg_list_selected)
+ # build console
+ self.console = QtConsole(self.consoleTab)
+ self.consoleLayout = QtGui.QVBoxLayout()
+ self.consoleLayout.setMargin(0)
+ self.consoleLayout.setSpacing(0)
+ self.consoleTab.setLayout(self.consoleLayout)
+ self.consoleLayout.addWidget(self.console)
+
QtCore.QObject.connect(self.aboutAction, QtCore.SIGNAL("triggered()"), self.cb_about_triggered)
self.show()