aboutsummaryrefslogtreecommitdiffstats
path: root/bin/commander/mainwindow.py
diff options
context:
space:
mode:
authorMichael 'Mickey' Lauer <mickey@vanille-media.de>2004-02-21 14:29:22 +0000
committerMichael 'Mickey' Lauer <mickey@vanille-media.de>2004-02-21 14:29:22 +0000
commit6a2903edc8e93aee0083647d2bdfc1a331254b04 (patch)
treec803dccb7260dce9d25c2f16a81307109377516c /bin/commander/mainwindow.py
parent44b7b3acad4ce433d3e114dcef9877e7554e735a (diff)
downloadbitbake-6a2903edc8e93aee0083647d2bdfc1a331254b04.tar.gz
more information in listview, will refactor into own class soon
Diffstat (limited to 'bin/commander/mainwindow.py')
-rw-r--r--bin/commander/mainwindow.py25
1 files changed, 19 insertions, 6 deletions
diff --git a/bin/commander/mainwindow.py b/bin/commander/mainwindow.py
index 3308e24cf..1e9195348 100644
--- a/bin/commander/mainwindow.py
+++ b/bin/commander/mainwindow.py
@@ -5,6 +5,8 @@ from appinfo import *
from mainwindowbase import *
from aboutdialog import *
from packages import Packages
+from pythonshell import EPythonShell
+from oe import *
class MainWindow( MainWindowBase ):
@@ -103,13 +105,24 @@ class MainWindow( MainWindowBase ):
self.packageView.clear()
for package in p.names():
- QListViewItem( self.packageView, package.split( "/" )[-1],
- p.data(package,"CATEGORY"),
- p.data(package,"PRIORITY"),
- p.data(package,"MAINTAINER"),
- p.data(package,"SRC_URI"),
- p.data(package,"HOMEPAGE") )
+ shortname = package.split( "/" )[-1]
+ item = QListViewItem( self.packageView,
+ p.data(package, "PROVIDES" ).split()[0],
+ p.data(package, "CATEGORY"),
+ p.data(package, "SECTION"),
+ p.data(package, "PRIORITY"),
+ p.data(package, "MAINTAINER"),
+ p.data(package, "SRC_URI"),
+ p.data(package, "HOMEPAGE") )
+ item.setText( 7, p.data(package, "DEPENDS") )
+ item.setText( 8, p.data(package, "RDEPENDS") )
+ item.setText( 9, shortname )
+ def debugConsole(self):
+ shell = EPythonShell( None, { 'p':Packages.instance(), 'data':data, 'exit':lambda:shell.close() } )
+ shell.show()
+ shell.resize( QSize( 500, 300 ) )
+
def helpAbout(self):
d = AboutDialog()
d.exec_loop()