Intermediate merge of wx.NewID_abuse_fix branch but kept debug code in the branch. This is still work in progress, banch is NOT closed.
authorEdouard Tisserant
Tue, 26 Mar 2019 11:08:32 +0100
changeset 2558 c9d16163f981
parent 2552 46a1e8d1e92c (diff)
parent 2557 a6e7c34497b8 (current diff)
child 2565 b5ce86166880
Intermediate merge of wx.NewID_abuse_fix branch but kept debug code in the branch. This is still work in progress, banch is NOT closed.
Beremiz.py
--- a/Beremiz.py	Tue Mar 26 11:03:57 2019 +0100
+++ b/Beremiz.py	Tue Mar 26 11:08:32 2019 +0100
@@ -33,20 +33,6 @@
 import wx
 from wx.lib.agw.advancedsplash import AdvancedSplash, AS_NOTIMEOUT, AS_CENTER_ON_SCREEN
 
-import traceback
-from pprint import pprint
-orig_NewId = wx.NewId
-log_newid = {}
-def NewId(*a,**k):
-    res = orig_NewId(*a,**k)
-    bt = '|'.join([':'.join([f,str(l)]) for f,l,_0,_1 in traceback.extract_stack()[-2:-1]])
-    log_newid[bt] = log_newid.get(bt, 0) + 1
-    worst = log_newid.items()
-    worst.sort(key=lambda x:x[1])
-    pprint(worst)
-    return res
-wx.NewId = NewId
-
 import util.paths as paths