Merge pull request #1444 from Neugeniko/py3

Ensure graph frame unbinds its event handlers.
This commit is contained in:
Ryan Holmes
2018-02-27 21:09:10 -05:00
committed by GitHub

View File

@@ -170,8 +170,8 @@ class GraphFrame(wx.Frame):
self.AppendFitToList(fitID)
def close(self, event):
self.fitList.fitList.Unbind(wx.EVT_LEFT_DCLICK)
self.mainFrame.Unbind(GE.FIT_CHANGED)
self.fitList.fitList.Unbind(wx.EVT_LEFT_DCLICK, handler=self.removeItem)
self.mainFrame.Unbind(GE.FIT_CHANGED, handler=self.draw)
event.Skip()
def getView(self):