Use RemoveEventHandler instead of PopEventHandler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -191,9 +191,12 @@ class BaseMaskedComboBox( wx.ComboBox, MaskedEditMixin ): | ||||
|     def __repr__(self): | ||||
|         return "<MaskedComboBox: %s>" % self.GetValue() | ||||
|  | ||||
|  | ||||
|     def OnWindowDestroy(self, event): | ||||
|         # clean up associated event handler object: | ||||
|         self.PopEventHandler(deleteHandler=True) | ||||
|         if self.RemoveEventHandler(self.evt_handler): | ||||
|             self.evt_handler.Destroy() | ||||
|         event.Skip() | ||||
|  | ||||
|  | ||||
|     def _CalcSize(self, size=None): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user