]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/lib/sizers/__init__.py
last line missing
[wxWidgets.git] / utils / wxPython / lib / sizers / __init__.py
CommitLineData
bb0054cd
RD
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
14from sizer import *
15from box import *
16from border import *
6147ee34 17from shape import *
bb0054cd
RD
18
19#----------------------------------------------------------------------------
06c0fba4 20_msg = """\
6147ee34
RD
21Since the wxWindows library now includes its own sizers, the
22classes in wxPython.lib.sizers have been depreciated. Please
23see the Reference Manual for details of the new classes.
24
25To contiunue using wxPython.lib.sizers without this
26message you can set the WXP_OLDSIZERS envronment
27variable to any value.
06c0fba4
RD
28"""
29
30
31import os
32from wxPython.wx import wxMessageDialog, wxOK, wxICON_EXCLAMATION, wxPlatform
33
34if 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
2f90df85
RD
44
45#----------------------------------------------------------------------------