]>
Commit | Line | Data |
---|---|---|
8ab979d7 RD |
1 | # This file was created automatically by SWIG. |
2 | import windows2c | |
3 | ||
4 | from misc import * | |
5 | ||
6 | from gdi import * | |
7 | ||
8 | from windows import * | |
9 | ||
b1462dfa RD |
10 | from clip_dnd import * |
11 | ||
8ab979d7 RD |
12 | from controls import * |
13 | ||
14 | from events import * | |
b8b8dda7 | 15 | import wx |
8ab979d7 RD |
16 | class wxGridCellPtr : |
17 | def __init__(self,this): | |
18 | self.this = this | |
19 | self.thisown = 0 | |
1d99702e | 20 | def __del__(self,windows2c=windows2c): |
b639c3c5 | 21 | if self.thisown == 1 : |
1d99702e RD |
22 | windows2c.delete_wxGridCell(self) |
23 | def GetTextValue(self, *_args, **_kwargs): | |
24 | val = apply(windows2c.wxGridCell_GetTextValue,(self,) + _args, _kwargs) | |
8ab979d7 | 25 | return val |
1d99702e RD |
26 | def SetTextValue(self, *_args, **_kwargs): |
27 | val = apply(windows2c.wxGridCell_SetTextValue,(self,) + _args, _kwargs) | |
8ab979d7 | 28 | return val |
1d99702e RD |
29 | def GetFont(self, *_args, **_kwargs): |
30 | val = apply(windows2c.wxGridCell_GetFont,(self,) + _args, _kwargs) | |
31 | if val: val = wxFontPtr(val) | |
8ab979d7 | 32 | return val |
1d99702e RD |
33 | def SetFont(self, *_args, **_kwargs): |
34 | val = apply(windows2c.wxGridCell_SetFont,(self,) + _args, _kwargs) | |
8ab979d7 | 35 | return val |
1d99702e RD |
36 | def GetTextColour(self, *_args, **_kwargs): |
37 | val = apply(windows2c.wxGridCell_GetTextColour,(self,) + _args, _kwargs) | |
38 | if val: val = wxColourPtr(val) | |
8ab979d7 | 39 | return val |
1d99702e RD |
40 | def SetTextColour(self, *_args, **_kwargs): |
41 | val = apply(windows2c.wxGridCell_SetTextColour,(self,) + _args, _kwargs) | |
8ab979d7 | 42 | return val |
1d99702e RD |
43 | def GetBackgroundColour(self, *_args, **_kwargs): |
44 | val = apply(windows2c.wxGridCell_GetBackgroundColour,(self,) + _args, _kwargs) | |
45 | if val: val = wxColourPtr(val) | |
8ab979d7 | 46 | return val |
1d99702e RD |
47 | def SetBackgroundColour(self, *_args, **_kwargs): |
48 | val = apply(windows2c.wxGridCell_SetBackgroundColour,(self,) + _args, _kwargs) | |
8ab979d7 | 49 | return val |
1d99702e RD |
50 | def GetBackgroundBrush(self, *_args, **_kwargs): |
51 | val = apply(windows2c.wxGridCell_GetBackgroundBrush,(self,) + _args, _kwargs) | |
52 | if val: val = wxBrushPtr(val) | |
8ab979d7 | 53 | return val |
1d99702e RD |
54 | def GetAlignment(self, *_args, **_kwargs): |
55 | val = apply(windows2c.wxGridCell_GetAlignment,(self,) + _args, _kwargs) | |
8ab979d7 | 56 | return val |
1d99702e RD |
57 | def SetAlignment(self, *_args, **_kwargs): |
58 | val = apply(windows2c.wxGridCell_SetAlignment,(self,) + _args, _kwargs) | |
8ab979d7 | 59 | return val |
1d99702e RD |
60 | def GetCellBitmap(self, *_args, **_kwargs): |
61 | val = apply(windows2c.wxGridCell_GetCellBitmap,(self,) + _args, _kwargs) | |
62 | if val: val = wxBitmapPtr(val) | |
8ab979d7 | 63 | return val |
1d99702e RD |
64 | def SetCellBitmap(self, *_args, **_kwargs): |
65 | val = apply(windows2c.wxGridCell_SetCellBitmap,(self,) + _args, _kwargs) | |
8ab979d7 RD |
66 | return val |
67 | def __repr__(self): | |
1d99702e | 68 | return "<C wxGridCell instance at %s>" % (self.this,) |
8ab979d7 | 69 | class wxGridCell(wxGridCellPtr): |
1d99702e RD |
70 | def __init__(self,*_args,**_kwargs): |
71 | self.this = apply(windows2c.new_wxGridCell,_args,_kwargs) | |
b639c3c5 | 72 | self.thisown = 1 |
8ab979d7 RD |
73 | |
74 | ||
75 | ||
76 | ||
77 | class wxGridPtr(wxPanelPtr): | |
78 | def __init__(self,this): | |
79 | self.this = this | |
80 | self.thisown = 0 | |
1d99702e RD |
81 | def AdjustScrollbars(self, *_args, **_kwargs): |
82 | val = apply(windows2c.wxGrid_AdjustScrollbars,(self,) + _args, _kwargs) | |
8ab979d7 | 83 | return val |
1d99702e RD |
84 | def AppendCols(self, *_args, **_kwargs): |
85 | val = apply(windows2c.wxGrid_AppendCols,(self,) + _args, _kwargs) | |
8ab979d7 | 86 | return val |
1d99702e RD |
87 | def AppendRows(self, *_args, **_kwargs): |
88 | val = apply(windows2c.wxGrid_AppendRows,(self,) + _args, _kwargs) | |
8ab979d7 | 89 | return val |
1d99702e RD |
90 | def BeginBatch(self, *_args, **_kwargs): |
91 | val = apply(windows2c.wxGrid_BeginBatch,(self,) + _args, _kwargs) | |
8ab979d7 | 92 | return val |
1d99702e RD |
93 | def CellHitTest(self, *_args, **_kwargs): |
94 | val = apply(windows2c.wxGrid_CellHitTest,(self,) + _args, _kwargs) | |
8ab979d7 | 95 | return val |
1d99702e RD |
96 | def CreateGrid(self, *_args, **_kwargs): |
97 | val = apply(windows2c.wxGrid_CreateGrid,(self,) + _args, _kwargs) | |
8ab979d7 | 98 | return val |
1d99702e RD |
99 | def CurrentCellVisible(self, *_args, **_kwargs): |
100 | val = apply(windows2c.wxGrid_CurrentCellVisible,(self,) + _args, _kwargs) | |
8ab979d7 | 101 | return val |
1d99702e RD |
102 | def DeleteCols(self, *_args, **_kwargs): |
103 | val = apply(windows2c.wxGrid_DeleteCols,(self,) + _args, _kwargs) | |
8ab979d7 | 104 | return val |
1d99702e RD |
105 | def DeleteRows(self, *_args, **_kwargs): |
106 | val = apply(windows2c.wxGrid_DeleteRows,(self,) + _args, _kwargs) | |
8ab979d7 | 107 | return val |
1d99702e RD |
108 | def EndBatch(self, *_args, **_kwargs): |
109 | val = apply(windows2c.wxGrid_EndBatch,(self,) + _args, _kwargs) | |
8ab979d7 | 110 | return val |
1d99702e RD |
111 | def GetBatchCount(self, *_args, **_kwargs): |
112 | val = apply(windows2c.wxGrid_GetBatchCount,(self,) + _args, _kwargs) | |
8ab979d7 | 113 | return val |
1d99702e RD |
114 | def GetCell(self, *_args, **_kwargs): |
115 | val = apply(windows2c.wxGrid_GetCell,(self,) + _args, _kwargs) | |
116 | if val: val = wxGridCellPtr(val) | |
8ab979d7 | 117 | return val |
1d99702e RD |
118 | def GetCellAlignment(self, *_args, **_kwargs): |
119 | val = apply(windows2c.wxGrid_GetCellAlignment,(self,) + _args, _kwargs) | |
8ab979d7 | 120 | return val |
1d99702e RD |
121 | def GetDefCellAlignment(self, *_args, **_kwargs): |
122 | val = apply(windows2c.wxGrid_GetDefCellAlignment,(self,) + _args, _kwargs) | |
8ab979d7 | 123 | return val |
1d99702e RD |
124 | def GetCellBackgroundColour(self, *_args, **_kwargs): |
125 | val = apply(windows2c.wxGrid_GetCellBackgroundColour,(self,) + _args, _kwargs) | |
126 | if val: val = wxColourPtr(val) | |
8ab979d7 | 127 | return val |
1d99702e RD |
128 | def GetDefCellBackgroundColour(self, *_args, **_kwargs): |
129 | val = apply(windows2c.wxGrid_GetDefCellBackgroundColour,(self,) + _args, _kwargs) | |
130 | if val: val = wxColourPtr(val) | |
8ab979d7 | 131 | return val |
1d99702e RD |
132 | def GetCells(self, *_args, **_kwargs): |
133 | val = apply(windows2c.wxGrid_GetCells,(self,) + _args, _kwargs) | |
8bf5d46e | 134 | return val |
1d99702e RD |
135 | def GetCellTextColour(self, *_args, **_kwargs): |
136 | val = apply(windows2c.wxGrid_GetCellTextColour,(self,) + _args, _kwargs) | |
137 | if val: val = wxColourPtr(val) | |
8ab979d7 | 138 | return val |
1d99702e RD |
139 | def GetDefCellTextColour(self, *_args, **_kwargs): |
140 | val = apply(windows2c.wxGrid_GetDefCellTextColour,(self,) + _args, _kwargs) | |
141 | if val: val = wxColourPtr(val) | |
8ab979d7 | 142 | return val |
1d99702e RD |
143 | def GetCellTextFont(self, *_args, **_kwargs): |
144 | val = apply(windows2c.wxGrid_GetCellTextFont,(self,) + _args, _kwargs) | |
145 | if val: val = wxFontPtr(val) | |
8ab979d7 | 146 | return val |
1d99702e RD |
147 | def GetDefCellTextFont(self, *_args, **_kwargs): |
148 | val = apply(windows2c.wxGrid_GetDefCellTextFont,(self,) + _args, _kwargs) | |
149 | if val: val = wxFontPtr(val) | |
8ab979d7 | 150 | return val |
1d99702e RD |
151 | def GetCellValue(self, *_args, **_kwargs): |
152 | val = apply(windows2c.wxGrid_GetCellValue,(self,) + _args, _kwargs) | |
8ab979d7 | 153 | return val |
1d99702e RD |
154 | def GetCols(self, *_args, **_kwargs): |
155 | val = apply(windows2c.wxGrid_GetCols,(self,) + _args, _kwargs) | |
8ab979d7 | 156 | return val |
1d99702e RD |
157 | def GetColumnWidth(self, *_args, **_kwargs): |
158 | val = apply(windows2c.wxGrid_GetColumnWidth,(self,) + _args, _kwargs) | |
8ab979d7 | 159 | return val |
1d99702e RD |
160 | def GetCurrentRect(self, *_args, **_kwargs): |
161 | val = apply(windows2c.wxGrid_GetCurrentRect,(self,) + _args, _kwargs) | |
162 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
8ab979d7 | 163 | return val |
1d99702e RD |
164 | def GetCursorColumn(self, *_args, **_kwargs): |
165 | val = apply(windows2c.wxGrid_GetCursorColumn,(self,) + _args, _kwargs) | |
8ab979d7 | 166 | return val |
1d99702e RD |
167 | def GetCursorRow(self, *_args, **_kwargs): |
168 | val = apply(windows2c.wxGrid_GetCursorRow,(self,) + _args, _kwargs) | |
8ab979d7 | 169 | return val |
1d99702e RD |
170 | def GetEditable(self, *_args, **_kwargs): |
171 | val = apply(windows2c.wxGrid_GetEditable,(self,) + _args, _kwargs) | |
8ab979d7 | 172 | return val |
1d99702e RD |
173 | def GetHorizScrollBar(self, *_args, **_kwargs): |
174 | val = apply(windows2c.wxGrid_GetHorizScrollBar,(self,) + _args, _kwargs) | |
175 | if val: val = wxScrollBarPtr(val) | |
8ab979d7 | 176 | return val |
1d99702e RD |
177 | def GetLabelAlignment(self, *_args, **_kwargs): |
178 | val = apply(windows2c.wxGrid_GetLabelAlignment,(self,) + _args, _kwargs) | |
8ab979d7 | 179 | return val |
1d99702e RD |
180 | def GetLabelBackgroundColour(self, *_args, **_kwargs): |
181 | val = apply(windows2c.wxGrid_GetLabelBackgroundColour,(self,) + _args, _kwargs) | |
182 | if val: val = wxColourPtr(val) | |
8ab979d7 | 183 | return val |
1d99702e RD |
184 | def GetLabelSize(self, *_args, **_kwargs): |
185 | val = apply(windows2c.wxGrid_GetLabelSize,(self,) + _args, _kwargs) | |
8ab979d7 | 186 | return val |
1d99702e RD |
187 | def GetLabelTextColour(self, *_args, **_kwargs): |
188 | val = apply(windows2c.wxGrid_GetLabelTextColour,(self,) + _args, _kwargs) | |
189 | if val: val = wxColourPtr(val) | |
8ab979d7 | 190 | return val |
1d99702e RD |
191 | def GetLabelTextFont(self, *_args, **_kwargs): |
192 | val = apply(windows2c.wxGrid_GetLabelTextFont,(self,) + _args, _kwargs) | |
193 | if val: val = wxFontPtr(val) | |
8ab979d7 | 194 | return val |
1d99702e RD |
195 | def GetLabelValue(self, *_args, **_kwargs): |
196 | val = apply(windows2c.wxGrid_GetLabelValue,(self,) + _args, _kwargs) | |
8ab979d7 | 197 | return val |
1d99702e RD |
198 | def GetRowHeight(self, *_args, **_kwargs): |
199 | val = apply(windows2c.wxGrid_GetRowHeight,(self,) + _args, _kwargs) | |
8ab979d7 | 200 | return val |
1d99702e RD |
201 | def GetRows(self, *_args, **_kwargs): |
202 | val = apply(windows2c.wxGrid_GetRows,(self,) + _args, _kwargs) | |
8ab979d7 | 203 | return val |
1d99702e RD |
204 | def GetScrollPosX(self, *_args, **_kwargs): |
205 | val = apply(windows2c.wxGrid_GetScrollPosX,(self,) + _args, _kwargs) | |
8ab979d7 | 206 | return val |
1d99702e RD |
207 | def GetScrollPosY(self, *_args, **_kwargs): |
208 | val = apply(windows2c.wxGrid_GetScrollPosY,(self,) + _args, _kwargs) | |
8ab979d7 | 209 | return val |
1d99702e RD |
210 | def GetTextItem(self, *_args, **_kwargs): |
211 | val = apply(windows2c.wxGrid_GetTextItem,(self,) + _args, _kwargs) | |
212 | if val: val = wxTextCtrlPtr(val) | |
8ab979d7 | 213 | return val |
1d99702e RD |
214 | def GetVertScrollBar(self, *_args, **_kwargs): |
215 | val = apply(windows2c.wxGrid_GetVertScrollBar,(self,) + _args, _kwargs) | |
216 | if val: val = wxScrollBarPtr(val) | |
8ab979d7 | 217 | return val |
1d99702e RD |
218 | def InsertCols(self, *_args, **_kwargs): |
219 | val = apply(windows2c.wxGrid_InsertCols,(self,) + _args, _kwargs) | |
8ab979d7 | 220 | return val |
1d99702e RD |
221 | def InsertRows(self, *_args, **_kwargs): |
222 | val = apply(windows2c.wxGrid_InsertRows,(self,) + _args, _kwargs) | |
8ab979d7 | 223 | return val |
1d99702e RD |
224 | def OnActivate(self, *_args, **_kwargs): |
225 | val = apply(windows2c.wxGrid_OnActivate,(self,) + _args, _kwargs) | |
b639c3c5 | 226 | return val |
1d99702e RD |
227 | def SetCellAlignment(self, *_args, **_kwargs): |
228 | val = apply(windows2c.wxGrid_SetCellAlignment,(self,) + _args, _kwargs) | |
8ab979d7 | 229 | return val |
1d99702e RD |
230 | def SetDefCellAlignment(self, *_args, **_kwargs): |
231 | val = apply(windows2c.wxGrid_SetDefCellAlignment,(self,) + _args, _kwargs) | |
8ab979d7 | 232 | return val |
1d99702e RD |
233 | def SetCellBackgroundColour(self, *_args, **_kwargs): |
234 | val = apply(windows2c.wxGrid_SetCellBackgroundColour,(self,) + _args, _kwargs) | |
8ab979d7 | 235 | return val |
1d99702e RD |
236 | def SetDefCellBackgroundColour(self, *_args, **_kwargs): |
237 | val = apply(windows2c.wxGrid_SetDefCellBackgroundColour,(self,) + _args, _kwargs) | |
8ab979d7 | 238 | return val |
1d99702e RD |
239 | def SetCellTextColour(self, *_args, **_kwargs): |
240 | val = apply(windows2c.wxGrid_SetCellTextColour,(self,) + _args, _kwargs) | |
8ab979d7 | 241 | return val |
1d99702e RD |
242 | def SetDefCellTextColour(self, *_args, **_kwargs): |
243 | val = apply(windows2c.wxGrid_SetDefCellTextColour,(self,) + _args, _kwargs) | |
8ab979d7 | 244 | return val |
1d99702e RD |
245 | def SetCellTextFont(self, *_args, **_kwargs): |
246 | val = apply(windows2c.wxGrid_SetCellTextFont,(self,) + _args, _kwargs) | |
8ab979d7 | 247 | return val |
1d99702e RD |
248 | def SetDefCellTextFont(self, *_args, **_kwargs): |
249 | val = apply(windows2c.wxGrid_SetDefCellTextFont,(self,) + _args, _kwargs) | |
8ab979d7 | 250 | return val |
1d99702e RD |
251 | def SetCellValue(self, *_args, **_kwargs): |
252 | val = apply(windows2c.wxGrid_SetCellValue,(self,) + _args, _kwargs) | |
8ab979d7 | 253 | return val |
1d99702e RD |
254 | def SetColumnWidth(self, *_args, **_kwargs): |
255 | val = apply(windows2c.wxGrid_SetColumnWidth,(self,) + _args, _kwargs) | |
8ab979d7 | 256 | return val |
1d99702e RD |
257 | def SetDividerPen(self, *_args, **_kwargs): |
258 | val = apply(windows2c.wxGrid_SetDividerPen,(self,) + _args, _kwargs) | |
8ab979d7 | 259 | return val |
1d99702e RD |
260 | def SetEditable(self, *_args, **_kwargs): |
261 | val = apply(windows2c.wxGrid_SetEditable,(self,) + _args, _kwargs) | |
8ab979d7 | 262 | return val |
1d99702e RD |
263 | def SetGridCursor(self, *_args, **_kwargs): |
264 | val = apply(windows2c.wxGrid_SetGridCursor,(self,) + _args, _kwargs) | |
8ab979d7 | 265 | return val |
1d99702e RD |
266 | def SetLabelAlignment(self, *_args, **_kwargs): |
267 | val = apply(windows2c.wxGrid_SetLabelAlignment,(self,) + _args, _kwargs) | |
8ab979d7 | 268 | return val |
1d99702e RD |
269 | def SetLabelBackgroundColour(self, *_args, **_kwargs): |
270 | val = apply(windows2c.wxGrid_SetLabelBackgroundColour,(self,) + _args, _kwargs) | |
8ab979d7 | 271 | return val |
1d99702e RD |
272 | def SetLabelSize(self, *_args, **_kwargs): |
273 | val = apply(windows2c.wxGrid_SetLabelSize,(self,) + _args, _kwargs) | |
8ab979d7 | 274 | return val |
1d99702e RD |
275 | def SetLabelTextColour(self, *_args, **_kwargs): |
276 | val = apply(windows2c.wxGrid_SetLabelTextColour,(self,) + _args, _kwargs) | |
8ab979d7 | 277 | return val |
1d99702e RD |
278 | def SetLabelTextFont(self, *_args, **_kwargs): |
279 | val = apply(windows2c.wxGrid_SetLabelTextFont,(self,) + _args, _kwargs) | |
8ab979d7 | 280 | return val |
1d99702e RD |
281 | def SetLabelValue(self, *_args, **_kwargs): |
282 | val = apply(windows2c.wxGrid_SetLabelValue,(self,) + _args, _kwargs) | |
8ab979d7 | 283 | return val |
1d99702e RD |
284 | def SetRowHeight(self, *_args, **_kwargs): |
285 | val = apply(windows2c.wxGrid_SetRowHeight,(self,) + _args, _kwargs) | |
8ab979d7 | 286 | return val |
1d99702e RD |
287 | def UpdateDimensions(self, *_args, **_kwargs): |
288 | val = apply(windows2c.wxGrid_UpdateDimensions,(self,) + _args, _kwargs) | |
8ab979d7 | 289 | return val |
1d99702e RD |
290 | def GetEditInPlace(self, *_args, **_kwargs): |
291 | val = apply(windows2c.wxGrid_GetEditInPlace,(self,) + _args, _kwargs) | |
8bf5d46e | 292 | return val |
1d99702e RD |
293 | def SetEditInPlace(self, *_args, **_kwargs): |
294 | val = apply(windows2c.wxGrid_SetEditInPlace,(self,) + _args, _kwargs) | |
8bf5d46e | 295 | return val |
8ab979d7 | 296 | def __repr__(self): |
1d99702e | 297 | return "<C wxGrid instance at %s>" % (self.this,) |
8ab979d7 | 298 | class wxGrid(wxGridPtr): |
1d99702e RD |
299 | def __init__(self,*_args,**_kwargs): |
300 | self.this = apply(windows2c.new_wxGrid,_args,_kwargs) | |
8ab979d7 | 301 | self.thisown = 1 |
b8b8dda7 RD |
302 | wx._StdWindowCallbacks(self) |
303 | wx._checkForCallback(self, 'OnSelectCell', wxEVT_GRID_SELECT_CELL) | |
304 | wx._checkForCallback(self, 'OnCreateCell', wxEVT_GRID_CREATE_CELL) | |
305 | wx._checkForCallback(self, 'OnChangeLabels', wxEVT_GRID_CHANGE_LABELS) | |
306 | wx._checkForCallback(self, 'OnChangeSelectionLabel', wxEVT_GRID_CHANGE_SEL_LABEL) | |
307 | wx._checkForCallback(self, 'OnCellChange', wxEVT_GRID_CELL_CHANGE) | |
308 | wx._checkForCallback(self, 'OnCellLeftClick', wxEVT_GRID_CELL_LCLICK) | |
309 | wx._checkForCallback(self, 'OnCellRightClick', wxEVT_GRID_CELL_RCLICK) | |
310 | wx._checkForCallback(self, 'OnLabelLeftClick', wxEVT_GRID_LABEL_LCLICK) | |
311 | wx._checkForCallback(self, 'OnLabelRightClick', wxEVT_GRID_LABEL_RCLICK) | |
b639c3c5 RD |
312 | |
313 | ||
314 | ||
315 | ||
316 | class wxGridEventPtr(wxEventPtr): | |
317 | def __init__(self,this): | |
318 | self.this = this | |
319 | self.thisown = 0 | |
1d99702e RD |
320 | def GetRow(self, *_args, **_kwargs): |
321 | val = apply(windows2c.wxGridEvent_GetRow,(self,) + _args, _kwargs) | |
1dc2f865 | 322 | return val |
1d99702e RD |
323 | def GetCol(self, *_args, **_kwargs): |
324 | val = apply(windows2c.wxGridEvent_GetCol,(self,) + _args, _kwargs) | |
1dc2f865 | 325 | return val |
1d99702e RD |
326 | def GetPosition(self, *_args, **_kwargs): |
327 | val = apply(windows2c.wxGridEvent_GetPosition,(self,) + _args, _kwargs) | |
328 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
1dc2f865 | 329 | return val |
1d99702e RD |
330 | def ControlDown(self, *_args, **_kwargs): |
331 | val = apply(windows2c.wxGridEvent_ControlDown,(self,) + _args, _kwargs) | |
1dc2f865 | 332 | return val |
1d99702e RD |
333 | def ShiftDown(self, *_args, **_kwargs): |
334 | val = apply(windows2c.wxGridEvent_ShiftDown,(self,) + _args, _kwargs) | |
1dc2f865 | 335 | return val |
1d99702e RD |
336 | def GetCell(self, *_args, **_kwargs): |
337 | val = apply(windows2c.wxGridEvent_GetCell,(self,) + _args, _kwargs) | |
338 | if val: val = wxGridCellPtr(val) | |
1dc2f865 | 339 | return val |
b639c3c5 RD |
340 | def __setattr__(self,name,value): |
341 | if name == "m_row" : | |
1d99702e | 342 | windows2c.wxGridEvent_m_row_set(self,value) |
b639c3c5 RD |
343 | return |
344 | if name == "m_col" : | |
1d99702e | 345 | windows2c.wxGridEvent_m_col_set(self,value) |
b639c3c5 RD |
346 | return |
347 | if name == "m_x" : | |
1d99702e | 348 | windows2c.wxGridEvent_m_x_set(self,value) |
b639c3c5 RD |
349 | return |
350 | if name == "m_y" : | |
1d99702e | 351 | windows2c.wxGridEvent_m_y_set(self,value) |
b639c3c5 RD |
352 | return |
353 | if name == "m_control" : | |
1d99702e | 354 | windows2c.wxGridEvent_m_control_set(self,value) |
b639c3c5 RD |
355 | return |
356 | if name == "m_shift" : | |
1d99702e | 357 | windows2c.wxGridEvent_m_shift_set(self,value) |
b639c3c5 RD |
358 | return |
359 | if name == "m_cell" : | |
1d99702e | 360 | windows2c.wxGridEvent_m_cell_set(self,value.this) |
b639c3c5 RD |
361 | return |
362 | self.__dict__[name] = value | |
363 | def __getattr__(self,name): | |
364 | if name == "m_row" : | |
1d99702e | 365 | return windows2c.wxGridEvent_m_row_get(self) |
b639c3c5 | 366 | if name == "m_col" : |
1d99702e | 367 | return windows2c.wxGridEvent_m_col_get(self) |
b639c3c5 | 368 | if name == "m_x" : |
1d99702e | 369 | return windows2c.wxGridEvent_m_x_get(self) |
b639c3c5 | 370 | if name == "m_y" : |
1d99702e | 371 | return windows2c.wxGridEvent_m_y_get(self) |
b639c3c5 | 372 | if name == "m_control" : |
1d99702e | 373 | return windows2c.wxGridEvent_m_control_get(self) |
b639c3c5 | 374 | if name == "m_shift" : |
1d99702e | 375 | return windows2c.wxGridEvent_m_shift_get(self) |
b639c3c5 | 376 | if name == "m_cell" : |
1d99702e | 377 | return wxGridCellPtr(windows2c.wxGridEvent_m_cell_get(self)) |
b639c3c5 RD |
378 | raise AttributeError,name |
379 | def __repr__(self): | |
1d99702e | 380 | return "<C wxGridEvent instance at %s>" % (self.this,) |
b639c3c5 RD |
381 | class wxGridEvent(wxGridEventPtr): |
382 | def __init__(self,this): | |
383 | self.this = this | |
8ab979d7 RD |
384 | |
385 | ||
386 | ||
387 | ||
bb0054cd | 388 | class wxNotebookEventPtr(wxNotifyEventPtr): |
8ab979d7 RD |
389 | def __init__(self,this): |
390 | self.this = this | |
391 | self.thisown = 0 | |
1d99702e RD |
392 | def GetSelection(self, *_args, **_kwargs): |
393 | val = apply(windows2c.wxNotebookEvent_GetSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 394 | return val |
1d99702e RD |
395 | def GetOldSelection(self, *_args, **_kwargs): |
396 | val = apply(windows2c.wxNotebookEvent_GetOldSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 397 | return val |
1d99702e RD |
398 | def SetOldSelection(self, *_args, **_kwargs): |
399 | val = apply(windows2c.wxNotebookEvent_SetOldSelection,(self,) + _args, _kwargs) | |
bb0054cd | 400 | return val |
1d99702e RD |
401 | def SetSelection(self, *_args, **_kwargs): |
402 | val = apply(windows2c.wxNotebookEvent_SetSelection,(self,) + _args, _kwargs) | |
bb0054cd | 403 | return val |
8ab979d7 | 404 | def __repr__(self): |
1d99702e | 405 | return "<C wxNotebookEvent instance at %s>" % (self.this,) |
8ab979d7 RD |
406 | class wxNotebookEvent(wxNotebookEventPtr): |
407 | def __init__(self,this): | |
408 | self.this = this | |
409 | ||
410 | ||
411 | ||
412 | ||
413 | class wxNotebookPtr(wxControlPtr): | |
414 | def __init__(self,this): | |
415 | self.this = this | |
416 | self.thisown = 0 | |
1d99702e RD |
417 | def GetPageCount(self, *_args, **_kwargs): |
418 | val = apply(windows2c.wxNotebook_GetPageCount,(self,) + _args, _kwargs) | |
8ab979d7 | 419 | return val |
1d99702e RD |
420 | def SetSelection(self, *_args, **_kwargs): |
421 | val = apply(windows2c.wxNotebook_SetSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 422 | return val |
1d99702e RD |
423 | def AdvanceSelection(self, *_args, **_kwargs): |
424 | val = apply(windows2c.wxNotebook_AdvanceSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 425 | return val |
1d99702e RD |
426 | def GetSelection(self, *_args, **_kwargs): |
427 | val = apply(windows2c.wxNotebook_GetSelection,(self,) + _args, _kwargs) | |
8ab979d7 | 428 | return val |
1d99702e RD |
429 | def SetPageText(self, *_args, **_kwargs): |
430 | val = apply(windows2c.wxNotebook_SetPageText,(self,) + _args, _kwargs) | |
8ab979d7 | 431 | return val |
1d99702e RD |
432 | def GetPageText(self, *_args, **_kwargs): |
433 | val = apply(windows2c.wxNotebook_GetPageText,(self,) + _args, _kwargs) | |
8ab979d7 | 434 | return val |
1d99702e RD |
435 | def SetImageList(self, *_args, **_kwargs): |
436 | val = apply(windows2c.wxNotebook_SetImageList,(self,) + _args, _kwargs) | |
8ab979d7 | 437 | return val |
1d99702e RD |
438 | def GetImageList(self, *_args, **_kwargs): |
439 | val = apply(windows2c.wxNotebook_GetImageList,(self,) + _args, _kwargs) | |
440 | if val: val = wxImageListPtr(val) | |
8ab979d7 | 441 | return val |
1d99702e RD |
442 | def GetPageImage(self, *_args, **_kwargs): |
443 | val = apply(windows2c.wxNotebook_GetPageImage,(self,) + _args, _kwargs) | |
8ab979d7 | 444 | return val |
1d99702e RD |
445 | def SetPageImage(self, *_args, **_kwargs): |
446 | val = apply(windows2c.wxNotebook_SetPageImage,(self,) + _args, _kwargs) | |
8ab979d7 | 447 | return val |
1d99702e RD |
448 | def GetRowCount(self, *_args, **_kwargs): |
449 | val = apply(windows2c.wxNotebook_GetRowCount,(self,) + _args, _kwargs) | |
8ab979d7 | 450 | return val |
1d99702e RD |
451 | def DeletePage(self, *_args, **_kwargs): |
452 | val = apply(windows2c.wxNotebook_DeletePage,(self,) + _args, _kwargs) | |
8ab979d7 | 453 | return val |
1d99702e RD |
454 | def RemovePage(self, *_args, **_kwargs): |
455 | val = apply(windows2c.wxNotebook_RemovePage,(self,) + _args, _kwargs) | |
cf694132 | 456 | return val |
1d99702e RD |
457 | def DeleteAllPages(self, *_args, **_kwargs): |
458 | val = apply(windows2c.wxNotebook_DeleteAllPages,(self,) + _args, _kwargs) | |
8ab979d7 | 459 | return val |
1d99702e RD |
460 | def AddPage(self, *_args, **_kwargs): |
461 | val = apply(windows2c.wxNotebook_AddPage,(self,) + _args, _kwargs) | |
8ab979d7 | 462 | return val |
1d99702e RD |
463 | def InsertPage(self, *_args, **_kwargs): |
464 | val = apply(windows2c.wxNotebook_InsertPage,(self,) + _args, _kwargs) | |
8ab979d7 | 465 | return val |
1d99702e RD |
466 | def GetPage(self, *_args, **_kwargs): |
467 | val = apply(windows2c.wxNotebook_GetPage,(self,) + _args, _kwargs) | |
468 | if val: val = wxWindowPtr(val) | |
8ab979d7 | 469 | return val |
1d99702e RD |
470 | def ResizeChildren(self, *_args, **_kwargs): |
471 | val = apply(windows2c.wxNotebook_ResizeChildren,(self,) + _args, _kwargs) | |
cf694132 | 472 | return val |
8ab979d7 | 473 | def __repr__(self): |
1d99702e | 474 | return "<C wxNotebook instance at %s>" % (self.this,) |
8ab979d7 | 475 | class wxNotebook(wxNotebookPtr): |
1d99702e RD |
476 | def __init__(self,*_args,**_kwargs): |
477 | self.this = apply(windows2c.new_wxNotebook,_args,_kwargs) | |
8ab979d7 | 478 | self.thisown = 1 |
b8b8dda7 | 479 | wx._StdWindowCallbacks(self) |
9c039d08 RD |
480 | |
481 | ||
482 | ||
483 | ||
bb0054cd RD |
484 | class wxSplitterEventPtr(wxCommandEventPtr): |
485 | def __init__(self,this): | |
486 | self.this = this | |
487 | self.thisown = 0 | |
1d99702e RD |
488 | def GetSashPosition(self, *_args, **_kwargs): |
489 | val = apply(windows2c.wxSplitterEvent_GetSashPosition,(self,) + _args, _kwargs) | |
bb0054cd | 490 | return val |
1d99702e RD |
491 | def GetX(self, *_args, **_kwargs): |
492 | val = apply(windows2c.wxSplitterEvent_GetX,(self,) + _args, _kwargs) | |
bb0054cd | 493 | return val |
1d99702e RD |
494 | def GetY(self, *_args, **_kwargs): |
495 | val = apply(windows2c.wxSplitterEvent_GetY,(self,) + _args, _kwargs) | |
bb0054cd | 496 | return val |
1d99702e RD |
497 | def GetWindowBeingRemoved(self, *_args, **_kwargs): |
498 | val = apply(windows2c.wxSplitterEvent_GetWindowBeingRemoved,(self,) + _args, _kwargs) | |
499 | if val: val = wxWindowPtr(val) | |
bb0054cd | 500 | return val |
1d99702e RD |
501 | def SetSashPosition(self, *_args, **_kwargs): |
502 | val = apply(windows2c.wxSplitterEvent_SetSashPosition,(self,) + _args, _kwargs) | |
bb0054cd RD |
503 | return val |
504 | def __repr__(self): | |
1d99702e | 505 | return "<C wxSplitterEvent instance at %s>" % (self.this,) |
bb0054cd RD |
506 | class wxSplitterEvent(wxSplitterEventPtr): |
507 | def __init__(self,this): | |
508 | self.this = this | |
509 | ||
510 | ||
511 | ||
512 | ||
9c039d08 RD |
513 | class wxSplitterWindowPtr(wxWindowPtr): |
514 | def __init__(self,this): | |
515 | self.this = this | |
516 | self.thisown = 0 | |
1d99702e RD |
517 | def GetBorderSize(self, *_args, **_kwargs): |
518 | val = apply(windows2c.wxSplitterWindow_GetBorderSize,(self,) + _args, _kwargs) | |
b639c3c5 | 519 | return val |
1d99702e RD |
520 | def GetMinimumPaneSize(self, *_args, **_kwargs): |
521 | val = apply(windows2c.wxSplitterWindow_GetMinimumPaneSize,(self,) + _args, _kwargs) | |
9c039d08 | 522 | return val |
1d99702e RD |
523 | def GetSashPosition(self, *_args, **_kwargs): |
524 | val = apply(windows2c.wxSplitterWindow_GetSashPosition,(self,) + _args, _kwargs) | |
9c039d08 | 525 | return val |
1d99702e RD |
526 | def GetSashSize(self, *_args, **_kwargs): |
527 | val = apply(windows2c.wxSplitterWindow_GetSashSize,(self,) + _args, _kwargs) | |
b639c3c5 | 528 | return val |
1d99702e RD |
529 | def GetSplitMode(self, *_args, **_kwargs): |
530 | val = apply(windows2c.wxSplitterWindow_GetSplitMode,(self,) + _args, _kwargs) | |
9c039d08 | 531 | return val |
1d99702e RD |
532 | def GetWindow1(self, *_args, **_kwargs): |
533 | val = apply(windows2c.wxSplitterWindow_GetWindow1,(self,) + _args, _kwargs) | |
534 | if val: val = wxWindowPtr(val) | |
9c039d08 | 535 | return val |
1d99702e RD |
536 | def GetWindow2(self, *_args, **_kwargs): |
537 | val = apply(windows2c.wxSplitterWindow_GetWindow2,(self,) + _args, _kwargs) | |
538 | if val: val = wxWindowPtr(val) | |
9c039d08 | 539 | return val |
1d99702e RD |
540 | def Initialize(self, *_args, **_kwargs): |
541 | val = apply(windows2c.wxSplitterWindow_Initialize,(self,) + _args, _kwargs) | |
9c039d08 | 542 | return val |
1d99702e RD |
543 | def IsSplit(self, *_args, **_kwargs): |
544 | val = apply(windows2c.wxSplitterWindow_IsSplit,(self,) + _args, _kwargs) | |
9c039d08 | 545 | return val |
9d8bd15f RD |
546 | def ReplaceWindow(self, *_args, **_kwargs): |
547 | val = apply(windows2c.wxSplitterWindow_ReplaceWindow,(self,) + _args, _kwargs) | |
548 | return val | |
1d99702e RD |
549 | def SetBorderSize(self, *_args, **_kwargs): |
550 | val = apply(windows2c.wxSplitterWindow_SetBorderSize,(self,) + _args, _kwargs) | |
b639c3c5 | 551 | return val |
1d99702e RD |
552 | def SetSashPosition(self, *_args, **_kwargs): |
553 | val = apply(windows2c.wxSplitterWindow_SetSashPosition,(self,) + _args, _kwargs) | |
9c039d08 | 554 | return val |
1d99702e RD |
555 | def SetSashSize(self, *_args, **_kwargs): |
556 | val = apply(windows2c.wxSplitterWindow_SetSashSize,(self,) + _args, _kwargs) | |
b639c3c5 | 557 | return val |
1d99702e RD |
558 | def SetMinimumPaneSize(self, *_args, **_kwargs): |
559 | val = apply(windows2c.wxSplitterWindow_SetMinimumPaneSize,(self,) + _args, _kwargs) | |
9c039d08 | 560 | return val |
1d99702e RD |
561 | def SetSplitMode(self, *_args, **_kwargs): |
562 | val = apply(windows2c.wxSplitterWindow_SetSplitMode,(self,) + _args, _kwargs) | |
9c039d08 | 563 | return val |
1d99702e RD |
564 | def SplitHorizontally(self, *_args, **_kwargs): |
565 | val = apply(windows2c.wxSplitterWindow_SplitHorizontally,(self,) + _args, _kwargs) | |
9c039d08 | 566 | return val |
1d99702e RD |
567 | def SplitVertically(self, *_args, **_kwargs): |
568 | val = apply(windows2c.wxSplitterWindow_SplitVertically,(self,) + _args, _kwargs) | |
9c039d08 | 569 | return val |
1d99702e RD |
570 | def Unsplit(self, *_args, **_kwargs): |
571 | val = apply(windows2c.wxSplitterWindow_Unsplit,(self,) + _args, _kwargs) | |
9c039d08 RD |
572 | return val |
573 | def __repr__(self): | |
1d99702e | 574 | return "<C wxSplitterWindow instance at %s>" % (self.this,) |
9c039d08 | 575 | class wxSplitterWindow(wxSplitterWindowPtr): |
1d99702e RD |
576 | def __init__(self,*_args,**_kwargs): |
577 | self.this = apply(windows2c.new_wxSplitterWindow,_args,_kwargs) | |
9c039d08 | 578 | self.thisown = 1 |
b8b8dda7 | 579 | wx._StdWindowCallbacks(self) |
8ab979d7 RD |
580 | |
581 | ||
582 | ||
583 | ||
b639c3c5 RD |
584 | class wxTaskBarIconPtr(wxEvtHandlerPtr): |
585 | def __init__(self,this): | |
586 | self.this = this | |
587 | self.thisown = 0 | |
1d99702e | 588 | def __del__(self,windows2c=windows2c): |
b639c3c5 | 589 | if self.thisown == 1 : |
1d99702e RD |
590 | windows2c.delete_wxTaskBarIcon(self) |
591 | def SetIcon(self, *_args, **_kwargs): | |
592 | val = apply(windows2c.wxTaskBarIcon_SetIcon,(self,) + _args, _kwargs) | |
b639c3c5 | 593 | return val |
1d99702e RD |
594 | def RemoveIcon(self, *_args, **_kwargs): |
595 | val = apply(windows2c.wxTaskBarIcon_RemoveIcon,(self,) + _args, _kwargs) | |
b639c3c5 | 596 | return val |
1d99702e RD |
597 | def PopupMenu(self, *_args, **_kwargs): |
598 | val = apply(windows2c.wxTaskBarIcon_PopupMenu,(self,) + _args, _kwargs) | |
be4d9c1f | 599 | return val |
b639c3c5 | 600 | def __repr__(self): |
1d99702e | 601 | return "<C wxTaskBarIcon instance at %s>" % (self.this,) |
b639c3c5 | 602 | class wxTaskBarIcon(wxTaskBarIconPtr): |
1d99702e RD |
603 | def __init__(self,*_args,**_kwargs): |
604 | self.this = apply(windows2c.new_wxTaskBarIcon,_args,_kwargs) | |
b639c3c5 | 605 | self.thisown = 1 |
b8b8dda7 RD |
606 | wx._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE) |
607 | wx._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN) | |
608 | wx._checkForCallback(self, 'OnLButtonUp', wxEVT_TASKBAR_LEFT_UP) | |
609 | wx._checkForCallback(self, 'OnRButtonDown', wxEVT_TASKBAR_RIGHT_DOWN) | |
610 | wx._checkForCallback(self, 'OnRButtonUp', wxEVT_TASKBAR_RIGHT_UP) | |
611 | wx._checkForCallback(self, 'OnLButtonDClick',wxEVT_TASKBAR_LEFT_DCLICK) | |
612 | wx._checkForCallback(self, 'OnRButtonDClick',wxEVT_TASKBAR_RIGHT_DCLICK) | |
b639c3c5 RD |
613 | |
614 | ||
615 | ||
616 | ||
8ab979d7 RD |
617 | |
618 | ||
619 | #-------------- FUNCTION WRAPPERS ------------------ | |
620 | ||
621 | ||
622 | ||
623 | #-------------- VARIABLE WRAPPERS ------------------ | |
624 | ||
625 | wxGRID_TEXT_CTRL = windows2c.wxGRID_TEXT_CTRL | |
626 | wxGRID_HSCROLL = windows2c.wxGRID_HSCROLL | |
627 | wxGRID_VSCROLL = windows2c.wxGRID_VSCROLL | |
b639c3c5 RD |
628 | wxEVT_GRID_SELECT_CELL = windows2c.wxEVT_GRID_SELECT_CELL |
629 | wxEVT_GRID_CREATE_CELL = windows2c.wxEVT_GRID_CREATE_CELL | |
630 | wxEVT_GRID_CHANGE_LABELS = windows2c.wxEVT_GRID_CHANGE_LABELS | |
631 | wxEVT_GRID_CHANGE_SEL_LABEL = windows2c.wxEVT_GRID_CHANGE_SEL_LABEL | |
632 | wxEVT_GRID_CELL_CHANGE = windows2c.wxEVT_GRID_CELL_CHANGE | |
633 | wxEVT_GRID_CELL_LCLICK = windows2c.wxEVT_GRID_CELL_LCLICK | |
634 | wxEVT_GRID_CELL_RCLICK = windows2c.wxEVT_GRID_CELL_RCLICK | |
635 | wxEVT_GRID_LABEL_LCLICK = windows2c.wxEVT_GRID_LABEL_LCLICK | |
636 | wxEVT_GRID_LABEL_RCLICK = windows2c.wxEVT_GRID_LABEL_RCLICK | |
637 | wxEVT_TASKBAR_MOVE = windows2c.wxEVT_TASKBAR_MOVE | |
638 | wxEVT_TASKBAR_LEFT_DOWN = windows2c.wxEVT_TASKBAR_LEFT_DOWN | |
639 | wxEVT_TASKBAR_LEFT_UP = windows2c.wxEVT_TASKBAR_LEFT_UP | |
640 | wxEVT_TASKBAR_RIGHT_DOWN = windows2c.wxEVT_TASKBAR_RIGHT_DOWN | |
641 | wxEVT_TASKBAR_RIGHT_UP = windows2c.wxEVT_TASKBAR_RIGHT_UP | |
642 | wxEVT_TASKBAR_LEFT_DCLICK = windows2c.wxEVT_TASKBAR_LEFT_DCLICK | |
643 | wxEVT_TASKBAR_RIGHT_DCLICK = windows2c.wxEVT_TASKBAR_RIGHT_DCLICK |