SWIGged updates for wxGTK for recent changes
A few other little cleanups git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -853,6 +853,7 @@ wxEVT_MENU_INIT = wxc.wxEVT_MENU_INIT
|
||||
wxEVT_MENU_HIGHLIGHT = wxc.wxEVT_MENU_HIGHLIGHT
|
||||
wxEVT_POPUP_MENU_INIT = wxc.wxEVT_POPUP_MENU_INIT
|
||||
wxEVT_SYS_COLOUR_CHANGED = wxc.wxEVT_SYS_COLOUR_CHANGED
|
||||
wxEVT_DISPLAY_CHANGED = wxc.wxEVT_DISPLAY_CHANGED
|
||||
wxEVT_SETTING_CHANGED = wxc.wxEVT_SETTING_CHANGED
|
||||
wxEVT_QUERY_NEW_PALETTE = wxc.wxEVT_QUERY_NEW_PALETTE
|
||||
wxEVT_PALETTE_CHANGED = wxc.wxEVT_PALETTE_CHANGED
|
||||
@@ -984,6 +985,9 @@ def EVT_INIT_DIALOG(win, func):
|
||||
def EVT_SYS_COLOUR_CHANGED(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SYS_COLOUR_CHANGED, func)
|
||||
|
||||
def EVT_DISPLAY_CHANGED(win, func):
|
||||
win.Connect(-1, -1, wxEVT_DISPLAY_CHANGED, func)
|
||||
|
||||
def EVT_SHOW(win, func):
|
||||
win.Connect(-1, -1, wxEVT_SHOW, func)
|
||||
|
||||
@@ -1664,7 +1668,15 @@ class __wxPyCleanup:
|
||||
def __del__(self):
|
||||
self.cleanup()
|
||||
|
||||
__cleanMeUp = __wxPyCleanup()
|
||||
sys.__wxPythonCleanup = __wxPyCleanup()
|
||||
|
||||
## # another possible solution, but it gets called too early...
|
||||
## if sys.version[0] == '2':
|
||||
## import atexit
|
||||
## atexit.register(wxc.wxApp_CleanUp)
|
||||
## else:
|
||||
## sys.exitfunc = wxc.wxApp_CleanUp
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
#----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user