]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/lib/sizers/__init__.py
minor additions and bugfixes
[wxWidgets.git] / utils / wxPython / lib / sizers / __init__.py
index 74d416c1c59feefd3c0db3254075c3917a0da5f1..7aaa886daed94450f02c7ef9b90ec0ccd2c5df5b 100644 (file)
@@ -17,13 +17,7 @@ from border  import *
 from shape   import *
 
 #----------------------------------------------------------------------------
-
-import os
-from wxPython.wx import wxMessageDialog, wxOK, wxICON_EXCLAMATION
-
-if not os.environ.has_key('WXP_OLDSIZERS'):
-    dlg = wxMessageDialog(None,
-"""\
+_msg = """\
 Since the wxWindows library now includes its own sizers, the
 classes in wxPython.lib.sizers have been depreciated.  Please
 see the Reference Manual for details of the new classes.
@@ -31,10 +25,21 @@ see the Reference Manual for details of the new classes.
 To contiunue using wxPython.lib.sizers without this
 message you can set the WXP_OLDSIZERS envronment
 variable to any value.
-""",
-                          "Depreciated Feature",
-                          wxOK | wxICON_EXCLAMATION)
-    dlg.ShowModal()
-    dlg.Destroy()
+"""
+
+
+import os
+from wxPython.wx import wxMessageDialog, wxOK, wxICON_EXCLAMATION, wxPlatform
+
+if not os.environ.has_key('WXP_OLDSIZERS'):
+    if wxPlatform == '__WXMSW__':
+        dlg = wxMessageDialog(None, _msg,
+                              "Depreciated Feature",
+                              wxOK | wxICON_EXCLAMATION)
+        dlg.ShowModal()
+        dlg.Destroy()
+    else:
+       print '\a'
+       print _msg
 
 #----------------------------------------------------------------------------