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