]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_extras.py
fixed typo
[wxWidgets.git] / wxPython / src / _extras.py
index c8da773691f203f42174936a6308e3397d0537f9..a3aa03097702352a6ebbe68a664ee845b0d20130 100644 (file)
@@ -576,6 +576,8 @@ class wxTimer(wxPyTimer):
 wxColor      = wxColour
 wxNamedColor = wxNamedColour
 wxPen        = wxPyPen
+wxScrollbar  = wxScrollBar
+
 
 # backwards compatibility
 wxNoRefBitmap       = wxBitmap
@@ -589,11 +591,12 @@ wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
 #----------------------------------------------------------------------
 # wxGTK sets the locale when initialized.  Doing this at the Python
 # level should set it up to match what GTK is doing at the C level.
-try:
-    import locale
-    locale.setlocale(locale.LC_ALL, "")
-except:
-    pass
+if wxPlatform == "__WXGTK__":
+    try:
+        import locale
+        locale.setlocale(locale.LC_ALL, "")
+    except:
+        pass