]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_intl_ex.py
Added some info panels that show size and colour attributes about the widget
[wxWidgets.git] / wxPython / src / _intl_ex.py
1 #----------------------------------------------------------------------------
2 # wxGTK sets the locale when initialized. Doing this at the Python
3 # level should set it up to match what GTK is doing at the C level.
4 if wx.Platform == "__WXGTK__":
5 try:
6 import locale
7 locale.setlocale(locale.LC_ALL, "")
8 except:
9 pass
10
11 # On MSW add the directory where the wxWindows catalogs were installed
12 # to the default catalog path.
13 if wx.Platform == "__WXMSW__":
14 import os
15 localedir = os.path.join(os.path.split(__file__)[0], "locale")
16 Locale_AddCatalogLookupPathPrefix(localedir)
17 del os
18
19 #----------------------------------------------------------------------------