Add WH support to pyfa

This commit is contained in:
DarkPhoenix
2011-11-19 18:13:13 +04:00
parent 029940edf3
commit 8747be71ac
5 changed files with 62 additions and 4 deletions

View File

@@ -200,11 +200,18 @@ class ProjectedView(d.Display):
else:
context = (modFullContext,)
else:
context = ("projectedFit",)
context = (("projectedFit",),)
menu = ContextMenu.getMenu((item,), *context)
if menu is not None:
self.PopupMenu(menu)
elif row == -1 and event.Button == 3:
fitID = self.mainFrame.getActiveFit()
if fitID is None:
return
context = (("projectedNone",),)
menu = ContextMenu.getMenu([], *context)
if menu is not None:
self.PopupMenu(menu)
def remove(self, event):
row, _ = self.HitTest(event.Position)