]>
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: | |
b2dc1044 RD |
22 | wxDynamicSashNameStr = wx.gizmos.DynamicSashNameStr |
23 | wxEditableListBoxNameStr = wx.gizmos.EditableListBoxNameStr | |
24 | wxTreeListCtrlNameStr = wx.gizmos.TreeListCtrlNameStr | |
d14a1e28 RD |
25 | wxEVT_DYNAMIC_SASH_SPLIT = wx.gizmos.wxEVT_DYNAMIC_SASH_SPLIT |
26 | wxEVT_DYNAMIC_SASH_UNIFY = wx.gizmos.wxEVT_DYNAMIC_SASH_UNIFY | |
27 | wxDS_MANAGE_SCROLLBARS = wx.gizmos.DS_MANAGE_SCROLLBARS | |
28 | wxDS_DRAG_CORNER = wx.gizmos.DS_DRAG_CORNER | |
29 | wxDynamicSashSplitEvent = wx.gizmos.DynamicSashSplitEvent | |
423af76e | 30 | wxDynamicSashSplitEventPtr = wx.gizmos.DynamicSashSplitEventPtr |
d14a1e28 | 31 | wxDynamicSashUnifyEvent = wx.gizmos.DynamicSashUnifyEvent |
423af76e | 32 | wxDynamicSashUnifyEventPtr = wx.gizmos.DynamicSashUnifyEventPtr |
d14a1e28 | 33 | wxDynamicSashWindow = wx.gizmos.DynamicSashWindow |
423af76e | 34 | wxDynamicSashWindowPtr = wx.gizmos.DynamicSashWindowPtr |
bf5ff0c3 | 35 | wxPreDynamicSashWindow = wx.gizmos.PreDynamicSashWindow |
d14a1e28 RD |
36 | wxEL_ALLOW_NEW = wx.gizmos.EL_ALLOW_NEW |
37 | wxEL_ALLOW_EDIT = wx.gizmos.EL_ALLOW_EDIT | |
38 | wxEL_ALLOW_DELETE = wx.gizmos.EL_ALLOW_DELETE | |
39 | wxEditableListBox = wx.gizmos.EditableListBox | |
423af76e | 40 | wxEditableListBoxPtr = wx.gizmos.EditableListBoxPtr |
d14a1e28 | 41 | wxRemotelyScrolledTreeCtrl = wx.gizmos.RemotelyScrolledTreeCtrl |
423af76e | 42 | wxRemotelyScrolledTreeCtrlPtr = wx.gizmos.RemotelyScrolledTreeCtrlPtr |
d14a1e28 | 43 | wxTreeCompanionWindow = wx.gizmos.TreeCompanionWindow |
423af76e | 44 | wxTreeCompanionWindowPtr = wx.gizmos.TreeCompanionWindowPtr |
d14a1e28 | 45 | wxThinSplitterWindow = wx.gizmos.ThinSplitterWindow |
423af76e | 46 | wxThinSplitterWindowPtr = wx.gizmos.ThinSplitterWindowPtr |
d14a1e28 | 47 | wxSplitterScrolledWindow = wx.gizmos.SplitterScrolledWindow |
423af76e | 48 | wxSplitterScrolledWindowPtr = wx.gizmos.SplitterScrolledWindowPtr |
d14a1e28 RD |
49 | wxLED_ALIGN_LEFT = wx.gizmos.LED_ALIGN_LEFT |
50 | wxLED_ALIGN_RIGHT = wx.gizmos.LED_ALIGN_RIGHT | |
51 | wxLED_ALIGN_CENTER = wx.gizmos.LED_ALIGN_CENTER | |
52 | wxLED_ALIGN_MASK = wx.gizmos.LED_ALIGN_MASK | |
53 | wxLED_DRAW_FADED = wx.gizmos.LED_DRAW_FADED | |
d14a1e28 | 54 | wxLEDNumberCtrl = wx.gizmos.LEDNumberCtrl |
423af76e | 55 | wxLEDNumberCtrlPtr = wx.gizmos.LEDNumberCtrlPtr |
bf5ff0c3 | 56 | wxPreLEDNumberCtrl = wx.gizmos.PreLEDNumberCtrl |
d14a1e28 RD |
57 | wxTL_ALIGN_LEFT = wx.gizmos.TL_ALIGN_LEFT |
58 | wxTL_ALIGN_RIGHT = wx.gizmos.TL_ALIGN_RIGHT | |
59 | wxTL_ALIGN_CENTER = wx.gizmos.TL_ALIGN_CENTER | |
60 | wxTREE_HITTEST_ONITEMCOLUMN = wx.gizmos.TREE_HITTEST_ONITEMCOLUMN | |
61 | wxTreeListColumnInfo = wx.gizmos.TreeListColumnInfo | |
423af76e | 62 | wxTreeListColumnInfoPtr = wx.gizmos.TreeListColumnInfoPtr |
d14a1e28 | 63 | wxTreeListCtrl = wx.gizmos.TreeListCtrl |
423af76e | 64 | wxTreeListCtrlPtr = wx.gizmos.TreeListCtrlPtr |
bf5ff0c3 | 65 | wxPreTreeListCtrl = wx.gizmos.PreTreeListCtrl |
d14a1e28 RD |
66 | |
67 | ||
68 | d = globals() | |
69 | for k, v in wx.gizmos.__dict__.iteritems(): | |
70 | if k.startswith('EVT'): | |
71 | d[k] = v | |
72 | del d, k, v | |
73 | ||
74 | ||
75 |