summaryrefslogtreecommitdiff
path: root/portato/gui/qt/__init__.py
diff options
context:
space:
mode:
authornecoro <>2007-06-15 13:26:33 +0000
committernecoro <>2007-06-15 13:26:33 +0000
commit7a87171db82eb2bd4b46dc1077e04dfcba2c7393 (patch)
treeb6d4e9edc38f8f1bf2a471d1987983175a141994 /portato/gui/qt/__init__.py
parentfdb59c4e6f967c0c133f2aba1fb0c290d1e05f5b (diff)
downloadportato-7a87171db82eb2bd4b46dc1077e04dfcba2c7393.tar.gz
portato-7a87171db82eb2bd4b46dc1077e04dfcba2c7393.tar.bz2
portato-7a87171db82eb2bd4b46dc1077e04dfcba2c7393.zip
added ability of passing "&&" to the sync command
Diffstat (limited to 'portato/gui/qt/__init__.py')
-rw-r--r--portato/gui/qt/__init__.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/portato/gui/qt/__init__.py b/portato/gui/qt/__init__.py
index df49473..4882a73 100644
--- a/portato/gui/qt/__init__.py
+++ b/portato/gui/qt/__init__.py
@@ -10,10 +10,29 @@
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
+from portato import plugin
+from portato.backend import system
+
from PyQt4.Qt import QApplication
-from windows import MainWindow
+from windows import MainWindow, EbuildDialog, SearchDialog
def run():
app = QApplication([])
m = MainWindow()
app.exec_()
+
+def show_ebuild (pkg):
+ plugin.load_plugins("qt")
+ app = QApplication([])
+
+ def _show (pkg):
+ hook = plugin.hook("open_ebuild", pkg, None)
+
+ ew = hook(EbuildDialog)(None, system.new_package(pkg))
+ ew.setWindowTitle("Portato Ebuild Viewer - %s" % pkg)
+ ew.exec_()
+
+ s = SearchDialog(None, [x.get_cpv() for x in system.sort_package_list(system.find_all_packages(pkg, True))], _show)
+ s.setWindowTitle("Portato Ebuild Viewer - Search")
+ s.show()
+ app.exec_()