diff options
author | necoro <> | 2007-08-16 03:39:18 +0000 |
---|---|---|
committer | necoro <> | 2007-08-16 03:39:18 +0000 |
commit | eae9ec73ba26638e25d23ba2261422461150ad73 (patch) | |
tree | 8d1127678d2804c5db673394d203b0c20f7bcfdd /portato/gui/qt/__init__.py | |
parent | 785aa0d72cefab1d6a2b4a27d4cef13d7cec9c58 (diff) | |
download | portato-eae9ec73ba26638e25d23ba2261422461150ad73.tar.gz portato-eae9ec73ba26638e25d23ba2261422461150ad73.tar.bz2 portato-eae9ec73ba26638e25d23ba2261422461150ad73.zip |
removed qt
Diffstat (limited to 'portato/gui/qt/__init__.py')
-rw-r--r-- | portato/gui/qt/__init__.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/portato/gui/qt/__init__.py b/portato/gui/qt/__init__.py deleted file mode 100644 index 3f83aeb..0000000 --- a/portato/gui/qt/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# -# File: portato/gui/qt/__init__.py -# This file is part of the Portato-Project, a graphical portage-frontend. -# -# Copyright (C) 2007 René 'Necoro' Neumann -# This is free software. You may redistribute copies of it under the terms of -# the GNU General Public License version 2. -# There is NO WARRANTY, to the extent permitted by law. -# -# 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, EbuildDialog, SearchDialog - -def run(): - app = QApplication([]) - m = MainWindow() - app.exec_() - -def show_ebuild (pkg): - plugin.load_plugins("qt") - app = QApplication([]) - - def _show (pkg): - pkg = system.new_package(pkg) - hook = plugin.hook("open_ebuild", pkg, None) - - ew = hook(EbuildDialog)(None, pkg) - ew.setWindowTitle("Portato Ebuild Viewer - %s" % pkg.get_cpv()) - 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_() |