Post all custom events on the mainFrame

This commit is contained in:
cncfanatics
2010-08-27 13:23:06 +02:00
parent 0e19433788
commit 5cd0b01e5e
4 changed files with 20 additions and 11 deletions

View File

@@ -31,11 +31,12 @@ class MultiSwitch(wx.Notebook):
self.AddPage(wx.Panel(self), "+")
self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGING, self.checkAdd)
self.Bind(wx.EVT_MIDDLE_DOWN, self.checkRemove)
self.shipBrowser = gui.mainFrame.MainFrame.getInstance().shipBrowser
self.shipBrowser.Bind(sb.EVT_FIT_RENAMED, self.processRename)
self.shipBrowser.Bind(sb.EVT_FIT_SELECTED, self.changeFit)
self.shipBrowser.Bind(sb.EVT_FIT_REMOVED, self.processRemove)
mainFrame = gui.mainFrame.MainFrame.getInstance()
mainFrame.Bind(sb.EVT_FIT_RENAMED, self.processRename)
mainFrame.Bind(sb.EVT_FIT_SELECTED, self.changeFit)
mainFrame.Bind(sb.EVT_FIT_REMOVED, self.processRemove)
self.imageList = wx.ImageList(16, 16)