Implement basic ammo switching context menu. (still needs much

polishing)
This commit is contained in:
cncfanatics
2010-10-19 10:31:52 +02:00
parent 5c653c98ae
commit bc883685ec
7 changed files with 94 additions and 5 deletions

View File

@@ -107,6 +107,10 @@ class MainFrame(wx.Frame):
view = self.fitMultiSwitch.GetPage(sel).view
return view.activeFitID
def getFittingView(self):
sel = self.fitMultiSwitch.GetSelection()
return self.fitMultiSwitch.GetPage(sel).view
def mouseHit(self, event):
tab, _ = self.notebookBrowsers.HitTest(event.Position)
if tab != -1: