Beremiz.py
changeset 1090 f4d08cea7774
parent 1088 43739c16a002
child 1091 5f612651d227
equal deleted inserted replaced
1089:5cd1f8df71aa 1090:f4d08cea7774
   656             return notebook.GetPageIndex(confnode._OpenView(*page_infos[2:]))
   656             return notebook.GetPageIndex(confnode._OpenView(*page_infos[2:]))
   657         else:
   657         else:
   658             return IDEFrame.LoadTab(self, notebook, page_infos)
   658             return IDEFrame.LoadTab(self, notebook, page_infos)
   659     
   659     
   660     def OnCloseFrame(self, event):
   660     def OnCloseFrame(self, event):
   661         self.LogConsole.Unbind(wx.EVT_KILL_FOCUS)
   661         for evt_type in [wx.EVT_SET_FOCUS, 
   662         self.LogConsole.Unbind(wx.stc.EVT_STC_UPDATEUI)
   662                          wx.EVT_KILL_FOCUS, 
       
   663                          wx.stc.EVT_STC_UPDATEUI]:
       
   664             self.LogConsole.Unbind(evt_type)
   663         if self.CTR is None or self.CheckSaveBeforeClosing(_("Close Application")):
   665         if self.CTR is None or self.CheckSaveBeforeClosing(_("Close Application")):
   664             if self.CTR is not None:
   666             if self.CTR is not None:
   665                 self.CTR.KillDebugThread()
   667                 self.CTR.KillDebugThread()
   666             self.KillLocalRuntime()
   668             self.KillLocalRuntime()
   667             
   669