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