From 7635775ee641395eca839bf135ae29fbc2f64b23 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Thu, 3 Nov 2011 00:19:43 -0500 Subject: Fixed your problem by moving the import. Too much cross importing for my blood. --- src/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui.py') diff --git a/src/ui.py b/src/ui.py index 8fafd3b..fdb83f2 100644 --- a/src/ui.py +++ b/src/ui.py @@ -4,11 +4,11 @@ from editorui import * class KPLayerList(QtGui.QWidget): class LayerModel(QtCore.QAbstractListModel): + def headerData(self, section, orientation, role = Qt.DisplayRole): return 'Layer' def rowCount(self, parent): - print globals().keys() return len(KP.map.layers) def data(self, index, role = Qt.DisplayRole): -- cgit v1.2.3