From 1563d3e1f01064bf3b3bd57a977fefb0e0034b54 Mon Sep 17 00:00:00 2001 From: Kazuya O'moto Date: Fri, 2 Dec 2022 21:23:48 +0900 Subject: [PATCH] Don't watch DropTarget Windows bug fix https://github.com/wxWidgets/Phoenix/issues/2043 --- wx/py/filling.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wx/py/filling.py b/wx/py/filling.py index d57f07b7..05bf175f 100644 --- a/wx/py/filling.py +++ b/wx/py/filling.py @@ -125,6 +125,9 @@ class FillingTree(wx.TreeCtrl): d[key] = obj[n] if otype not in COMMONTYPES: for key in introspect.getAttributeNames(obj): + if wx.Platform == '__WXMSW__': + if key == 'DropTarget': # Windows bug fix. + continue # Believe it or not, some attributes can disappear, # such as the exc_traceback attribute of the sys # module. So this is nested in a try block.