]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/lib/sizers/__init__.py
wizard.h added to the list of headers
[wxWidgets.git] / utils / wxPython / lib / sizers / __init__.py
1 #----------------------------------------------------------------------------
2 # Name: __init__.py
3 # Purpose: The presence of this file turns this directory into a
4 # Python package.
5 #
6 # Author: Robin Dunn
7 #
8 # Created: 18-May-1999
9 # RCS-ID: $Id$
10 # Copyright: (c) 1998 by Total Control Software
11 # Licence: wxWindows license
12 #----------------------------------------------------------------------------
13
14 from sizer import *
15 from box import *
16 from border import *
17 from shape import *
18
19 #----------------------------------------------------------------------------
20 _msg = """\
21 Since the wxWindows library now includes its own sizers, the
22 classes in wxPython.lib.sizers have been depreciated. Please
23 see the Reference Manual for details of the new classes.
24
25 To contiunue using wxPython.lib.sizers without this
26 message you can set the WXP_OLDSIZERS envronment
27 variable to any value.
28 """
29
30
31 import os
32 from wxPython.wx import wxMessageDialog, wxOK, wxICON_EXCLAMATION, wxPlatform
33
34 if not os.environ.has_key('WXP_OLDSIZERS'):
35 if wxPlatform == '__WXMSW__':
36 dlg = wxMessageDialog(None, _msg,
37 "Depreciated Feature",
38 wxOK | wxICON_EXCLAMATION)
39 dlg.ShowModal()
40 dlg.Destroy()
41 else:
42 print '\a'
43 print _msg
44
45 #----------------------------------------------------------------------------