]>
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.windows | |
16 | ||
17 | sys.modules['wxPython.wx'] = _wx | |
18 | del sys, _wx | |
19 | ||
20 | ||
21 | # Now assign all the reverse-renamed names: | |
22 | wxPrePanel = wx.windows.PrePanel | |
23 | wxPanel = wx.windows.Panel | |
24 | wxPreScrolledWindow = wx.windows.PreScrolledWindow | |
25 | wxScrolledWindow = wx.windows.ScrolledWindow | |
26 | wxAcceleratorEntry = wx.windows.AcceleratorEntry | |
27 | wxAcceleratorTable = wx.windows.AcceleratorTable | |
28 | wxNullAcceleratorTable = wx.windows.NullAcceleratorTable | |
29 | wxGetAccelFromString = wx.windows.GetAccelFromString | |
30 | wxFULLSCREEN_NOMENUBAR = wx.windows.FULLSCREEN_NOMENUBAR | |
31 | wxFULLSCREEN_NOTOOLBAR = wx.windows.FULLSCREEN_NOTOOLBAR | |
32 | wxFULLSCREEN_NOSTATUSBAR = wx.windows.FULLSCREEN_NOSTATUSBAR | |
33 | wxFULLSCREEN_NOBORDER = wx.windows.FULLSCREEN_NOBORDER | |
34 | wxFULLSCREEN_NOCAPTION = wx.windows.FULLSCREEN_NOCAPTION | |
35 | wxFULLSCREEN_ALL = wx.windows.FULLSCREEN_ALL | |
36 | wxTOPLEVEL_EX_DIALOG = wx.windows.TOPLEVEL_EX_DIALOG | |
37 | wxTopLevelWindow = wx.windows.TopLevelWindow | |
38 | wxPreFrame = wx.windows.PreFrame | |
39 | wxFrame = wx.windows.Frame | |
40 | wxPreDialog = wx.windows.PreDialog | |
41 | wxDialog = wx.windows.Dialog | |
42 | wxPreMiniFrame = wx.windows.PreMiniFrame | |
43 | wxMiniFrame = wx.windows.MiniFrame | |
44 | wxSPLASH_CENTRE_ON_PARENT = wx.windows.SPLASH_CENTRE_ON_PARENT | |
45 | wxSPLASH_CENTRE_ON_SCREEN = wx.windows.SPLASH_CENTRE_ON_SCREEN | |
46 | wxSPLASH_NO_CENTRE = wx.windows.SPLASH_NO_CENTRE | |
47 | wxSPLASH_TIMEOUT = wx.windows.SPLASH_TIMEOUT | |
48 | wxSPLASH_NO_TIMEOUT = wx.windows.SPLASH_NO_TIMEOUT | |
49 | wxSplashScreenWindow = wx.windows.SplashScreenWindow | |
50 | wxSplashScreen = wx.windows.SplashScreen | |
51 | wxPreStatusBar = wx.windows.PreStatusBar | |
52 | wxStatusBar = wx.windows.StatusBar | |
53 | wxSP_NOBORDER = wx.windows.SP_NOBORDER | |
54 | wxSP_NOSASH = wx.windows.SP_NOSASH | |
55 | wxSP_PERMIT_UNSPLIT = wx.windows.SP_PERMIT_UNSPLIT | |
56 | wxSP_LIVE_UPDATE = wx.windows.SP_LIVE_UPDATE | |
57 | wxSP_3DSASH = wx.windows.SP_3DSASH | |
58 | wxSP_3DBORDER = wx.windows.SP_3DBORDER | |
59 | wxSP_BORDER = wx.windows.SP_BORDER | |
60 | wxSP_3D = wx.windows.SP_3D | |
61 | wxSPLIT_HORIZONTAL = wx.windows.SPLIT_HORIZONTAL | |
62 | wxSPLIT_VERTICAL = wx.windows.SPLIT_VERTICAL | |
63 | wxSPLIT_DRAG_NONE = wx.windows.SPLIT_DRAG_NONE | |
64 | wxSPLIT_DRAG_DRAGGING = wx.windows.SPLIT_DRAG_DRAGGING | |
65 | wxSPLIT_DRAG_LEFT_DOWN = wx.windows.SPLIT_DRAG_LEFT_DOWN | |
66 | wxPreSplitterWindow = wx.windows.PreSplitterWindow | |
67 | wxSplitterWindow = wx.windows.SplitterWindow | |
68 | wxSplitterEvent = wx.windows.SplitterEvent | |
69 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = wx.windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED | |
70 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = wx.windows.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING | |
71 | wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = wx.windows.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED | |
72 | wxEVT_COMMAND_SPLITTER_UNSPLIT = wx.windows.wxEVT_COMMAND_SPLITTER_UNSPLIT | |
73 | wxSASH_DRAG_NONE = wx.windows.SASH_DRAG_NONE | |
74 | wxSASH_DRAG_DRAGGING = wx.windows.SASH_DRAG_DRAGGING | |
75 | wxSASH_DRAG_LEFT_DOWN = wx.windows.SASH_DRAG_LEFT_DOWN | |
76 | wxSW_NOBORDER = wx.windows.SW_NOBORDER | |
77 | wxSW_BORDER = wx.windows.SW_BORDER | |
78 | wxSW_3DSASH = wx.windows.SW_3DSASH | |
79 | wxSW_3DBORDER = wx.windows.SW_3DBORDER | |
80 | wxSW_3D = wx.windows.SW_3D | |
81 | wxSASH_TOP = wx.windows.SASH_TOP | |
82 | wxSASH_RIGHT = wx.windows.SASH_RIGHT | |
83 | wxSASH_BOTTOM = wx.windows.SASH_BOTTOM | |
84 | wxSASH_LEFT = wx.windows.SASH_LEFT | |
85 | wxSASH_NONE = wx.windows.SASH_NONE | |
86 | wxPreSashWindow = wx.windows.PreSashWindow | |
87 | wxSashWindow = wx.windows.SashWindow | |
88 | wxSASH_STATUS_OK = wx.windows.SASH_STATUS_OK | |
89 | wxSASH_STATUS_OUT_OF_RANGE = wx.windows.SASH_STATUS_OUT_OF_RANGE | |
90 | wxSashEvent = wx.windows.SashEvent | |
91 | wxEVT_SASH_DRAGGED = wx.windows.wxEVT_SASH_DRAGGED | |
92 | wxLAYOUT_HORIZONTAL = wx.windows.LAYOUT_HORIZONTAL | |
93 | wxLAYOUT_VERTICAL = wx.windows.LAYOUT_VERTICAL | |
94 | wxLAYOUT_NONE = wx.windows.LAYOUT_NONE | |
95 | wxLAYOUT_TOP = wx.windows.LAYOUT_TOP | |
96 | wxLAYOUT_LEFT = wx.windows.LAYOUT_LEFT | |
97 | wxLAYOUT_RIGHT = wx.windows.LAYOUT_RIGHT | |
98 | wxLAYOUT_BOTTOM = wx.windows.LAYOUT_BOTTOM | |
99 | wxLAYOUT_LENGTH_Y = wx.windows.LAYOUT_LENGTH_Y | |
100 | wxLAYOUT_LENGTH_X = wx.windows.LAYOUT_LENGTH_X | |
101 | wxLAYOUT_MRU_LENGTH = wx.windows.LAYOUT_MRU_LENGTH | |
102 | wxLAYOUT_QUERY = wx.windows.LAYOUT_QUERY | |
103 | wxEVT_QUERY_LAYOUT_INFO = wx.windows.wxEVT_QUERY_LAYOUT_INFO | |
104 | wxEVT_CALCULATE_LAYOUT = wx.windows.wxEVT_CALCULATE_LAYOUT | |
105 | wxQueryLayoutInfoEvent = wx.windows.QueryLayoutInfoEvent | |
106 | wxCalculateLayoutEvent = wx.windows.CalculateLayoutEvent | |
107 | wxPreSashLayoutWindow = wx.windows.PreSashLayoutWindow | |
108 | wxSashLayoutWindow = wx.windows.SashLayoutWindow | |
109 | wxLayoutAlgorithm = wx.windows.LayoutAlgorithm | |
110 | wxPrePopupWindow = wx.windows.PrePopupWindow | |
111 | wxPopupWindow = wx.windows.PopupWindow | |
112 | wxPrePopupTransientWindow = wx.windows.PrePopupTransientWindow | |
113 | wxPopupTransientWindow = wx.windows.PopupTransientWindow | |
114 | wxTipWindow = wx.windows.TipWindow | |
115 | wxPreVScrolledWindow = wx.windows.PreVScrolledWindow | |
116 | wxVScrolledWindow = wx.windows.VScrolledWindow | |
117 | wxPreVListBox = wx.windows.PreVListBox | |
118 | wxVListBox = wx.windows.VListBox | |
119 | wxPreHtmlListBox = wx.windows.PreHtmlListBox | |
120 | wxHtmlListBox = wx.windows.HtmlListBox | |
121 | wxTaskBarIcon = wx.windows.TaskBarIcon | |
122 | wxTaskBarIconEvent = wx.windows.TaskBarIconEvent | |
123 | wxEVT_TASKBAR_MOVE = wx.windows.wxEVT_TASKBAR_MOVE | |
124 | wxEVT_TASKBAR_LEFT_DOWN = wx.windows.wxEVT_TASKBAR_LEFT_DOWN | |
125 | wxEVT_TASKBAR_LEFT_UP = wx.windows.wxEVT_TASKBAR_LEFT_UP | |
126 | wxEVT_TASKBAR_RIGHT_DOWN = wx.windows.wxEVT_TASKBAR_RIGHT_DOWN | |
127 | wxEVT_TASKBAR_RIGHT_UP = wx.windows.wxEVT_TASKBAR_RIGHT_UP | |
128 | wxEVT_TASKBAR_LEFT_DCLICK = wx.windows.wxEVT_TASKBAR_LEFT_DCLICK | |
129 | wxEVT_TASKBAR_RIGHT_DCLICK = wx.windows.wxEVT_TASKBAR_RIGHT_DCLICK | |
130 | wxColourData = wx.windows.ColourData | |
131 | wxColourDialog = wx.windows.ColourDialog | |
132 | wxDirDialog = wx.windows.DirDialog | |
133 | wxFileDialog = wx.windows.FileDialog | |
134 | wxCHOICEDLG_STYLE = wx.windows.CHOICEDLG_STYLE | |
135 | wxMultiChoiceDialog = wx.windows.MultiChoiceDialog | |
136 | wxSingleChoiceDialog = wx.windows.SingleChoiceDialog | |
137 | wxTextEntryDialog = wx.windows.TextEntryDialog | |
138 | wxFontData = wx.windows.FontData | |
139 | wxFontDialog = wx.windows.FontDialog | |
140 | wxMessageDialog = wx.windows.MessageDialog | |
141 | wxProgressDialog = wx.windows.ProgressDialog | |
142 | wxFR_DOWN = wx.windows.FR_DOWN | |
143 | wxFR_WHOLEWORD = wx.windows.FR_WHOLEWORD | |
144 | wxFR_MATCHCASE = wx.windows.FR_MATCHCASE | |
145 | wxFR_REPLACEDIALOG = wx.windows.FR_REPLACEDIALOG | |
146 | wxFR_NOUPDOWN = wx.windows.FR_NOUPDOWN | |
147 | wxFR_NOMATCHCASE = wx.windows.FR_NOMATCHCASE | |
148 | wxFR_NOWHOLEWORD = wx.windows.FR_NOWHOLEWORD | |
149 | wxEVT_COMMAND_FIND = wx.windows.wxEVT_COMMAND_FIND | |
150 | wxEVT_COMMAND_FIND_NEXT = wx.windows.wxEVT_COMMAND_FIND_NEXT | |
151 | wxEVT_COMMAND_FIND_REPLACE = wx.windows.wxEVT_COMMAND_FIND_REPLACE | |
152 | wxEVT_COMMAND_FIND_REPLACE_ALL = wx.windows.wxEVT_COMMAND_FIND_REPLACE_ALL | |
153 | wxEVT_COMMAND_FIND_CLOSE = wx.windows.wxEVT_COMMAND_FIND_CLOSE | |
154 | wxFindDialogEvent = wx.windows.FindDialogEvent | |
155 | wxFindReplaceData = wx.windows.FindReplaceData | |
156 | wxPreFindReplaceDialog = wx.windows.PreFindReplaceDialog | |
157 | wxFindReplaceDialog = wx.windows.FindReplaceDialog | |
158 | IDM_WINDOWTILE = wx.windows.IDM_WINDOWTILE | |
159 | IDM_WINDOWTILEHOR = wx.windows.IDM_WINDOWTILEHOR | |
160 | IDM_WINDOWCASCADE = wx.windows.IDM_WINDOWCASCADE | |
161 | IDM_WINDOWICONS = wx.windows.IDM_WINDOWICONS | |
162 | IDM_WINDOWNEXT = wx.windows.IDM_WINDOWNEXT | |
163 | IDM_WINDOWTILEVERT = wx.windows.IDM_WINDOWTILEVERT | |
164 | wxFIRST_MDI_CHILD = wx.windows.FIRST_MDI_CHILD | |
165 | wxLAST_MDI_CHILD = wx.windows.LAST_MDI_CHILD | |
166 | wxPreMDIParentFrame = wx.windows.PreMDIParentFrame | |
167 | wxMDIParentFrame = wx.windows.MDIParentFrame | |
168 | wxPreMDIChildFrame = wx.windows.PreMDIChildFrame | |
169 | wxMDIChildFrame = wx.windows.MDIChildFrame | |
170 | wxPreMDIClientWindow = wx.windows.PreMDIClientWindow | |
171 | wxMDIClientWindow = wx.windows.MDIClientWindow | |
172 | wxPyWindow = wx.windows.PyWindow | |
173 | wxPyPanel = wx.windows.PyPanel | |
174 | wxPRINT_MODE_NONE = wx.windows.PRINT_MODE_NONE | |
175 | wxPRINT_MODE_PREVIEW = wx.windows.PRINT_MODE_PREVIEW | |
176 | wxPRINT_MODE_FILE = wx.windows.PRINT_MODE_FILE | |
177 | wxPRINT_MODE_PRINTER = wx.windows.PRINT_MODE_PRINTER | |
178 | wxPrintData = wx.windows.PrintData | |
179 | wxPageSetupDialogData = wx.windows.PageSetupDialogData | |
180 | wxPageSetupDialog = wx.windows.PageSetupDialog | |
181 | wxPrintDialogData = wx.windows.PrintDialogData | |
182 | wxPrintDialog = wx.windows.PrintDialog | |
183 | wxPRINTER_NO_ERROR = wx.windows.PRINTER_NO_ERROR | |
184 | wxPRINTER_CANCELLED = wx.windows.PRINTER_CANCELLED | |
185 | wxPRINTER_ERROR = wx.windows.PRINTER_ERROR | |
186 | wxPrinter_GetLastError = wx.windows.Printer_GetLastError | |
187 | wxPrinter = wx.windows.Printer | |
188 | wxPrintout = wx.windows.Printout | |
189 | wxPreviewCanvas = wx.windows.PreviewCanvas | |
190 | wxPreviewFrame = wx.windows.PreviewFrame | |
191 | wxPREVIEW_PRINT = wx.windows.PREVIEW_PRINT | |
192 | wxPREVIEW_PREVIOUS = wx.windows.PREVIEW_PREVIOUS | |
193 | wxPREVIEW_NEXT = wx.windows.PREVIEW_NEXT | |
194 | wxPREVIEW_ZOOM = wx.windows.PREVIEW_ZOOM | |
195 | wxPREVIEW_FIRST = wx.windows.PREVIEW_FIRST | |
196 | wxPREVIEW_LAST = wx.windows.PREVIEW_LAST | |
197 | wxPREVIEW_GOTO = wx.windows.PREVIEW_GOTO | |
198 | wxPREVIEW_DEFAULT = wx.windows.PREVIEW_DEFAULT | |
199 | wxID_PREVIEW_CLOSE = wx.windows.ID_PREVIEW_CLOSE | |
200 | wxID_PREVIEW_NEXT = wx.windows.ID_PREVIEW_NEXT | |
201 | wxID_PREVIEW_PREVIOUS = wx.windows.ID_PREVIEW_PREVIOUS | |
202 | wxID_PREVIEW_PRINT = wx.windows.ID_PREVIEW_PRINT | |
203 | wxID_PREVIEW_ZOOM = wx.windows.ID_PREVIEW_ZOOM | |
204 | wxID_PREVIEW_FIRST = wx.windows.ID_PREVIEW_FIRST | |
205 | wxID_PREVIEW_LAST = wx.windows.ID_PREVIEW_LAST | |
206 | wxID_PREVIEW_GOTO = wx.windows.ID_PREVIEW_GOTO | |
207 | wxPreviewControlBar = wx.windows.PreviewControlBar | |
208 | wxPrintPreview = wx.windows.PrintPreview | |
209 | wxPyPrintPreview = wx.windows.PyPrintPreview | |
210 | wxPyPreviewFrame = wx.windows.PyPreviewFrame | |
211 | wxPyPreviewControlBar = wx.windows.PyPreviewControlBar | |
212 | ||
213 | ||
214 | d = globals() | |
215 | for k, v in wx.windows.__dict__.iteritems(): | |
216 | if k.startswith('EVT'): | |
217 | d[k] = v | |
218 | elif k.startswith('IDM'): | |
219 | d[k] = v | |
220 | del d, k, v | |
221 | ||
222 | ||
223 |