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