]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | ## This file reverse renames symbols in the wx package to give |
2 | ## them their wx prefix again, for backwards compatibility. | |
3 | ## | |
4 | ## Generated by ./distrib/build_renamers.py | |
5 | ||
6 | # This silly stuff here is so the wxPython.wx module doesn't conflict | |
7 | # with the wx package. We need to import modules from the wx package | |
8 | # here, then we'll put the wxPython.wx entry back in sys.modules. | |
9 | import sys | |
10 | _wx = None | |
11 | if sys.modules.has_key('wxPython.wx'): | |
12 | _wx = sys.modules['wxPython.wx'] | |
13 | del sys.modules['wxPython.wx'] | |
14 | ||
15 | import wx.gizmos | |
16 | ||
17 | sys.modules['wxPython.wx'] = _wx | |
18 | del sys, _wx | |
19 | ||
20 | ||
21 | # Now assign all the reverse-renamed names: | |
22 | wxEVT_DYNAMIC_SASH_SPLIT = wx.gizmos.wxEVT_DYNAMIC_SASH_SPLIT | |
23 | wxEVT_DYNAMIC_SASH_UNIFY = wx.gizmos.wxEVT_DYNAMIC_SASH_UNIFY | |
24 | wxDS_MANAGE_SCROLLBARS = wx.gizmos.DS_MANAGE_SCROLLBARS | |
25 | wxDS_DRAG_CORNER = wx.gizmos.DS_DRAG_CORNER | |
26 | wxDynamicSashSplitEvent = wx.gizmos.DynamicSashSplitEvent | |
423af76e | 27 | wxDynamicSashSplitEventPtr = wx.gizmos.DynamicSashSplitEventPtr |
d14a1e28 | 28 | wxDynamicSashUnifyEvent = wx.gizmos.DynamicSashUnifyEvent |
423af76e | 29 | wxDynamicSashUnifyEventPtr = wx.gizmos.DynamicSashUnifyEventPtr |
d14a1e28 RD |
30 | wxPreDynamicSashWindow = wx.gizmos.PreDynamicSashWindow |
31 | wxDynamicSashWindow = wx.gizmos.DynamicSashWindow | |
423af76e | 32 | wxDynamicSashWindowPtr = wx.gizmos.DynamicSashWindowPtr |
d14a1e28 RD |
33 | wxEL_ALLOW_NEW = wx.gizmos.EL_ALLOW_NEW |
34 | wxEL_ALLOW_EDIT = wx.gizmos.EL_ALLOW_EDIT | |
35 | wxEL_ALLOW_DELETE = wx.gizmos.EL_ALLOW_DELETE | |
36 | wxEditableListBox = wx.gizmos.EditableListBox | |
423af76e | 37 | wxEditableListBoxPtr = wx.gizmos.EditableListBoxPtr |
d14a1e28 | 38 | wxRemotelyScrolledTreeCtrl = wx.gizmos.RemotelyScrolledTreeCtrl |
423af76e | 39 | wxRemotelyScrolledTreeCtrlPtr = wx.gizmos.RemotelyScrolledTreeCtrlPtr |
d14a1e28 | 40 | wxTreeCompanionWindow = wx.gizmos.TreeCompanionWindow |
423af76e | 41 | wxTreeCompanionWindowPtr = wx.gizmos.TreeCompanionWindowPtr |
d14a1e28 | 42 | wxThinSplitterWindow = wx.gizmos.ThinSplitterWindow |
423af76e | 43 | wxThinSplitterWindowPtr = wx.gizmos.ThinSplitterWindowPtr |
d14a1e28 | 44 | wxSplitterScrolledWindow = wx.gizmos.SplitterScrolledWindow |
423af76e | 45 | wxSplitterScrolledWindowPtr = wx.gizmos.SplitterScrolledWindowPtr |
d14a1e28 RD |
46 | wxLED_ALIGN_LEFT = wx.gizmos.LED_ALIGN_LEFT |
47 | wxLED_ALIGN_RIGHT = wx.gizmos.LED_ALIGN_RIGHT | |
48 | wxLED_ALIGN_CENTER = wx.gizmos.LED_ALIGN_CENTER | |
49 | wxLED_ALIGN_MASK = wx.gizmos.LED_ALIGN_MASK | |
50 | wxLED_DRAW_FADED = wx.gizmos.LED_DRAW_FADED | |
51 | wxPreLEDNumberCtrl = wx.gizmos.PreLEDNumberCtrl | |
52 | wxLEDNumberCtrl = wx.gizmos.LEDNumberCtrl | |
423af76e | 53 | wxLEDNumberCtrlPtr = wx.gizmos.LEDNumberCtrlPtr |
d14a1e28 RD |
54 | wxTL_ALIGN_LEFT = wx.gizmos.TL_ALIGN_LEFT |
55 | wxTL_ALIGN_RIGHT = wx.gizmos.TL_ALIGN_RIGHT | |
56 | wxTL_ALIGN_CENTER = wx.gizmos.TL_ALIGN_CENTER | |
57 | wxTREE_HITTEST_ONITEMCOLUMN = wx.gizmos.TREE_HITTEST_ONITEMCOLUMN | |
58 | wxTreeListColumnInfo = wx.gizmos.TreeListColumnInfo | |
423af76e | 59 | wxTreeListColumnInfoPtr = wx.gizmos.TreeListColumnInfoPtr |
d14a1e28 RD |
60 | wxPreTreeListCtrl = wx.gizmos.PreTreeListCtrl |
61 | wxTreeListCtrl = wx.gizmos.TreeListCtrl | |
423af76e | 62 | wxTreeListCtrlPtr = wx.gizmos.TreeListCtrlPtr |
d14a1e28 RD |
63 | |
64 | ||
65 | d = globals() | |
66 | for k, v in wx.gizmos.__dict__.iteritems(): | |
67 | if k.startswith('EVT'): | |
68 | d[k] = v | |
69 | del d, k, v | |
70 | ||
71 | ||
72 |