]>
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 | ## | |
237302e7 | 4 | ## Generated by BuildRenamers in config.py |
d14a1e28 RD |
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.grid | |
16 | ||
17 | sys.modules['wxPython.wx'] = _wx | |
18 | del sys, _wx | |
19 | ||
20 | ||
21 | # Now assign all the reverse-renamed names: | |
b2dc1044 | 22 | wxDateTimeFormatStr = wx.grid.DateTimeFormatStr |
d14a1e28 RD |
23 | wxGRID_VALUE_STRING = wx.grid.GRID_VALUE_STRING |
24 | wxGRID_VALUE_BOOL = wx.grid.GRID_VALUE_BOOL | |
25 | wxGRID_VALUE_NUMBER = wx.grid.GRID_VALUE_NUMBER | |
26 | wxGRID_VALUE_FLOAT = wx.grid.GRID_VALUE_FLOAT | |
27 | wxGRID_VALUE_CHOICE = wx.grid.GRID_VALUE_CHOICE | |
28 | wxGRID_VALUE_TEXT = wx.grid.GRID_VALUE_TEXT | |
29 | wxGRID_VALUE_LONG = wx.grid.GRID_VALUE_LONG | |
30 | wxGRID_VALUE_CHOICEINT = wx.grid.GRID_VALUE_CHOICEINT | |
31 | wxGRID_VALUE_DATETIME = wx.grid.GRID_VALUE_DATETIME | |
32 | wxGridNoCellCoords = wx.grid.GridNoCellCoords | |
33 | wxGridNoCellRect = wx.grid.GridNoCellRect | |
b0f7404b RD |
34 | wxGRID_DEFAULT_NUMBER_ROWS = wx.grid.GRID_DEFAULT_NUMBER_ROWS |
35 | wxGRID_DEFAULT_NUMBER_COLS = wx.grid.GRID_DEFAULT_NUMBER_COLS | |
36 | wxGRID_DEFAULT_ROW_HEIGHT = wx.grid.GRID_DEFAULT_ROW_HEIGHT | |
37 | wxGRID_DEFAULT_COL_WIDTH = wx.grid.GRID_DEFAULT_COL_WIDTH | |
38 | wxGRID_DEFAULT_COL_LABEL_HEIGHT = wx.grid.GRID_DEFAULT_COL_LABEL_HEIGHT | |
39 | wxGRID_DEFAULT_ROW_LABEL_WIDTH = wx.grid.GRID_DEFAULT_ROW_LABEL_WIDTH | |
40 | wxGRID_LABEL_EDGE_ZONE = wx.grid.GRID_LABEL_EDGE_ZONE | |
41 | wxGRID_MIN_ROW_HEIGHT = wx.grid.GRID_MIN_ROW_HEIGHT | |
42 | wxGRID_MIN_COL_WIDTH = wx.grid.GRID_MIN_COL_WIDTH | |
43 | wxGRID_DEFAULT_SCROLLBAR_WIDTH = wx.grid.GRID_DEFAULT_SCROLLBAR_WIDTH | |
d14a1e28 | 44 | wxGridCellRenderer = wx.grid.GridCellRenderer |
423af76e | 45 | wxGridCellRendererPtr = wx.grid.GridCellRendererPtr |
d14a1e28 | 46 | wxPyGridCellRenderer = wx.grid.PyGridCellRenderer |
423af76e | 47 | wxPyGridCellRendererPtr = wx.grid.PyGridCellRendererPtr |
d14a1e28 | 48 | wxGridCellStringRenderer = wx.grid.GridCellStringRenderer |
423af76e | 49 | wxGridCellStringRendererPtr = wx.grid.GridCellStringRendererPtr |
d14a1e28 | 50 | wxGridCellNumberRenderer = wx.grid.GridCellNumberRenderer |
423af76e | 51 | wxGridCellNumberRendererPtr = wx.grid.GridCellNumberRendererPtr |
d14a1e28 | 52 | wxGridCellFloatRenderer = wx.grid.GridCellFloatRenderer |
423af76e | 53 | wxGridCellFloatRendererPtr = wx.grid.GridCellFloatRendererPtr |
d14a1e28 | 54 | wxGridCellBoolRenderer = wx.grid.GridCellBoolRenderer |
423af76e | 55 | wxGridCellBoolRendererPtr = wx.grid.GridCellBoolRendererPtr |
d14a1e28 | 56 | wxGridCellDateTimeRenderer = wx.grid.GridCellDateTimeRenderer |
423af76e | 57 | wxGridCellDateTimeRendererPtr = wx.grid.GridCellDateTimeRendererPtr |
d14a1e28 | 58 | wxGridCellEnumRenderer = wx.grid.GridCellEnumRenderer |
423af76e | 59 | wxGridCellEnumRendererPtr = wx.grid.GridCellEnumRendererPtr |
d14a1e28 | 60 | wxGridCellAutoWrapStringRenderer = wx.grid.GridCellAutoWrapStringRenderer |
423af76e | 61 | wxGridCellAutoWrapStringRendererPtr = wx.grid.GridCellAutoWrapStringRendererPtr |
d14a1e28 | 62 | wxGridCellEditor = wx.grid.GridCellEditor |
423af76e | 63 | wxGridCellEditorPtr = wx.grid.GridCellEditorPtr |
d14a1e28 | 64 | wxPyGridCellEditor = wx.grid.PyGridCellEditor |
423af76e | 65 | wxPyGridCellEditorPtr = wx.grid.PyGridCellEditorPtr |
d14a1e28 | 66 | wxGridCellTextEditor = wx.grid.GridCellTextEditor |
423af76e | 67 | wxGridCellTextEditorPtr = wx.grid.GridCellTextEditorPtr |
d14a1e28 | 68 | wxGridCellNumberEditor = wx.grid.GridCellNumberEditor |
423af76e | 69 | wxGridCellNumberEditorPtr = wx.grid.GridCellNumberEditorPtr |
d14a1e28 | 70 | wxGridCellFloatEditor = wx.grid.GridCellFloatEditor |
423af76e | 71 | wxGridCellFloatEditorPtr = wx.grid.GridCellFloatEditorPtr |
d14a1e28 | 72 | wxGridCellBoolEditor = wx.grid.GridCellBoolEditor |
423af76e | 73 | wxGridCellBoolEditorPtr = wx.grid.GridCellBoolEditorPtr |
d14a1e28 | 74 | wxGridCellChoiceEditor = wx.grid.GridCellChoiceEditor |
423af76e | 75 | wxGridCellChoiceEditorPtr = wx.grid.GridCellChoiceEditorPtr |
d14a1e28 | 76 | wxGridCellEnumEditor = wx.grid.GridCellEnumEditor |
423af76e | 77 | wxGridCellEnumEditorPtr = wx.grid.GridCellEnumEditorPtr |
d14a1e28 | 78 | wxGridCellAutoWrapStringEditor = wx.grid.GridCellAutoWrapStringEditor |
423af76e | 79 | wxGridCellAutoWrapStringEditorPtr = wx.grid.GridCellAutoWrapStringEditorPtr |
d14a1e28 | 80 | wxGridCellAttr = wx.grid.GridCellAttr |
423af76e | 81 | wxGridCellAttrPtr = wx.grid.GridCellAttrPtr |
d14a1e28 | 82 | wxGridCellAttrProvider = wx.grid.GridCellAttrProvider |
423af76e | 83 | wxGridCellAttrProviderPtr = wx.grid.GridCellAttrProviderPtr |
d14a1e28 | 84 | wxPyGridCellAttrProvider = wx.grid.PyGridCellAttrProvider |
423af76e | 85 | wxPyGridCellAttrProviderPtr = wx.grid.PyGridCellAttrProviderPtr |
d14a1e28 | 86 | wxGridTableBase = wx.grid.GridTableBase |
423af76e | 87 | wxGridTableBasePtr = wx.grid.GridTableBasePtr |
d14a1e28 | 88 | wxPyGridTableBase = wx.grid.PyGridTableBase |
423af76e | 89 | wxPyGridTableBasePtr = wx.grid.PyGridTableBasePtr |
d14a1e28 | 90 | wxGridStringTable = wx.grid.GridStringTable |
423af76e | 91 | wxGridStringTablePtr = wx.grid.GridStringTablePtr |
d14a1e28 RD |
92 | wxGRIDTABLE_REQUEST_VIEW_GET_VALUES = wx.grid.GRIDTABLE_REQUEST_VIEW_GET_VALUES |
93 | wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES = wx.grid.GRIDTABLE_REQUEST_VIEW_SEND_VALUES | |
94 | wxGRIDTABLE_NOTIFY_ROWS_INSERTED = wx.grid.GRIDTABLE_NOTIFY_ROWS_INSERTED | |
95 | wxGRIDTABLE_NOTIFY_ROWS_APPENDED = wx.grid.GRIDTABLE_NOTIFY_ROWS_APPENDED | |
96 | wxGRIDTABLE_NOTIFY_ROWS_DELETED = wx.grid.GRIDTABLE_NOTIFY_ROWS_DELETED | |
97 | wxGRIDTABLE_NOTIFY_COLS_INSERTED = wx.grid.GRIDTABLE_NOTIFY_COLS_INSERTED | |
98 | wxGRIDTABLE_NOTIFY_COLS_APPENDED = wx.grid.GRIDTABLE_NOTIFY_COLS_APPENDED | |
99 | wxGRIDTABLE_NOTIFY_COLS_DELETED = wx.grid.GRIDTABLE_NOTIFY_COLS_DELETED | |
100 | wxGridTableMessage = wx.grid.GridTableMessage | |
423af76e | 101 | wxGridTableMessagePtr = wx.grid.GridTableMessagePtr |
d14a1e28 | 102 | wxGridCellCoords = wx.grid.GridCellCoords |
423af76e | 103 | wxGridCellCoordsPtr = wx.grid.GridCellCoordsPtr |
d14a1e28 | 104 | wxGrid = wx.grid.Grid |
423af76e | 105 | wxGridPtr = wx.grid.GridPtr |
ae662096 | 106 | wxPreGrid = wx.grid.PreGrid |
22bfe96c | 107 | wxGrid_GetClassDefaultAttributes = wx.grid.Grid_GetClassDefaultAttributes |
d14a1e28 | 108 | wxGridEvent = wx.grid.GridEvent |
423af76e | 109 | wxGridEventPtr = wx.grid.GridEventPtr |
d14a1e28 | 110 | wxGridSizeEvent = wx.grid.GridSizeEvent |
423af76e | 111 | wxGridSizeEventPtr = wx.grid.GridSizeEventPtr |
d14a1e28 | 112 | wxGridRangeSelectEvent = wx.grid.GridRangeSelectEvent |
423af76e | 113 | wxGridRangeSelectEventPtr = wx.grid.GridRangeSelectEventPtr |
d14a1e28 | 114 | wxGridEditorCreatedEvent = wx.grid.GridEditorCreatedEvent |
423af76e | 115 | wxGridEditorCreatedEventPtr = wx.grid.GridEditorCreatedEventPtr |
d14a1e28 RD |
116 | wxEVT_GRID_CELL_LEFT_CLICK = wx.grid.wxEVT_GRID_CELL_LEFT_CLICK |
117 | wxEVT_GRID_CELL_RIGHT_CLICK = wx.grid.wxEVT_GRID_CELL_RIGHT_CLICK | |
118 | wxEVT_GRID_CELL_LEFT_DCLICK = wx.grid.wxEVT_GRID_CELL_LEFT_DCLICK | |
119 | wxEVT_GRID_CELL_RIGHT_DCLICK = wx.grid.wxEVT_GRID_CELL_RIGHT_DCLICK | |
120 | wxEVT_GRID_LABEL_LEFT_CLICK = wx.grid.wxEVT_GRID_LABEL_LEFT_CLICK | |
121 | wxEVT_GRID_LABEL_RIGHT_CLICK = wx.grid.wxEVT_GRID_LABEL_RIGHT_CLICK | |
122 | wxEVT_GRID_LABEL_LEFT_DCLICK = wx.grid.wxEVT_GRID_LABEL_LEFT_DCLICK | |
123 | wxEVT_GRID_LABEL_RIGHT_DCLICK = wx.grid.wxEVT_GRID_LABEL_RIGHT_DCLICK | |
124 | wxEVT_GRID_ROW_SIZE = wx.grid.wxEVT_GRID_ROW_SIZE | |
125 | wxEVT_GRID_COL_SIZE = wx.grid.wxEVT_GRID_COL_SIZE | |
126 | wxEVT_GRID_RANGE_SELECT = wx.grid.wxEVT_GRID_RANGE_SELECT | |
127 | wxEVT_GRID_CELL_CHANGE = wx.grid.wxEVT_GRID_CELL_CHANGE | |
128 | wxEVT_GRID_SELECT_CELL = wx.grid.wxEVT_GRID_SELECT_CELL | |
129 | wxEVT_GRID_EDITOR_SHOWN = wx.grid.wxEVT_GRID_EDITOR_SHOWN | |
130 | wxEVT_GRID_EDITOR_HIDDEN = wx.grid.wxEVT_GRID_EDITOR_HIDDEN | |
131 | wxEVT_GRID_EDITOR_CREATED = wx.grid.wxEVT_GRID_EDITOR_CREATED | |
132 | ||
133 | ||
134 | d = globals() | |
135 | for k, v in wx.grid.__dict__.iteritems(): | |
136 | if k.startswith('EVT'): | |
137 | d[k] = v | |
138 | del d, k, v | |
139 | ||
140 | ||
141 |