SWIGged updates for wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-03-04 05:49:11 +00:00
parent 238ab89099
commit 89505f6a9c
21 changed files with 426 additions and 92 deletions

View File

@@ -48,7 +48,10 @@ class wxPyAppPtr(wxEvtHandlerPtr):
self.thisown = 0
def __del__(self, delfunc=wxc.delete_wxPyApp):
if self.thisown == 1:
delfunc(self)
try:
delfunc(self)
except:
pass
def _setCallbackInfo(self, *_args, **_kwargs):
val = apply(wxc.wxPyApp__setCallbackInfo,(self,) + _args, _kwargs)
return val
@@ -1592,6 +1595,12 @@ if wxPlatform == "__WXGTK__":
except:
pass
if wxPlatform == "__WXMSW__":
import os
localedir = os.path.join(os.path.split(__file__)[0], "locale")
wxLocale_AddCatalogLookupPathPrefix(localedir)
del os
#----------------------------------------------------------------------
# wxWindows version numbers. wxPython version is in __version__.