Cleaning code for using only wxPython 2.6 class naming
authorlbessard
Wed, 08 Aug 2007 14:55:39 +0200
changeset 65 cb6bed0720f0
parent 64 dd6f693e46a1
child 66 fd138fc77510
Cleaning code for using only wxPython 2.6 class naming
PLCOpenEditor.py
--- a/PLCOpenEditor.py	Tue Aug 07 17:38:48 2007 +0200
+++ b/PLCOpenEditor.py	Wed Aug 08 14:55:39 2007 +0200
@@ -2947,7 +2947,7 @@
 
 ignored_exceptions = [] # a problem with a line in a module is only reported once per session
 
-def wxAddExceptHook(path, app_version='[No version]'):#, ignored_exceptions=[]):
+def AddExceptHook(path, app_version='[No version]'):#, ignored_exceptions=[]):
     
     def handle_exception(e_type, e_value, e_traceback):
         traceback.print_exception(e_type, e_value, e_traceback) # this is very helpful when there's an exception in the rest of this func
@@ -2993,7 +2993,7 @@
     wx.InitAllImageHandlers()
     
     # Install a exception handle for bug reports
-    wxAddExceptHook(os.getcwd(),__version__)
+    AddExceptHook(os.getcwd(),__version__)
     
     frame = PLCOpenEditor(None)