From bb9760f79c1557e47dbe5f99d2d71a6dfdd61609 Mon Sep 17 00:00:00 2001 From: Will Wykeham Date: Tue, 13 Oct 2015 16:01:13 +0100 Subject: [PATCH] Add a usage hint to the Projected tab --- gui/projectedView.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gui/projectedView.py b/gui/projectedView.py index 0d7192120..8e99fba1b 100644 --- a/gui/projectedView.py +++ b/gui/projectedView.py @@ -26,6 +26,16 @@ from gui.builtinViewColumns.state import State from gui.contextMenu import ContextMenu import eos.types + +class DummyItem: + def __init__(self, txt): + self.name = txt + self.icon = None + +class DummyEntry: + def __init__(self, txt): + self.item = DummyItem(txt) + class ProjectedViewDrop(wx.PyDropTarget): def __init__(self, dropFn): wx.PyDropTarget.__init__(self) @@ -178,6 +188,10 @@ class ProjectedView(d.Display): self.EnsureVisible(item) self.deselectItems() + + if stuff == []: + stuff = [DummyEntry("Drag an item or fit, or use right-click menu for system effects")] + self.update(stuff) def get(self, row):