]>
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 | |
105e45b9 RD |
18 | def __del__(self): |
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 | |
130 | def GetCellTextColour(self,arg0,arg1): | |
131 | val = windows2c.wxGrid_GetCellTextColour(self.this,arg0,arg1) | |
132 | val = wxColourPtr(val) | |
133 | return val | |
134 | def GetDefCellTextColour(self): | |
135 | val = windows2c.wxGrid_GetDefCellTextColour(self.this) | |
136 | val = wxColourPtr(val) | |
137 | return val | |
138 | def GetCellTextFont(self,arg0,arg1): | |
139 | val = windows2c.wxGrid_GetCellTextFont(self.this,arg0,arg1) | |
140 | val = wxFontPtr(val) | |
141 | return val | |
142 | def GetDefCellTextFont(self): | |
143 | val = windows2c.wxGrid_GetDefCellTextFont(self.this) | |
144 | val = wxFontPtr(val) | |
145 | return val | |
146 | def GetCellValue(self,arg0,arg1): | |
147 | val = windows2c.wxGrid_GetCellValue(self.this,arg0,arg1) | |
148 | return val | |
149 | def GetCols(self): | |
150 | val = windows2c.wxGrid_GetCols(self.this) | |
151 | return val | |
152 | def GetColumnWidth(self,arg0): | |
153 | val = windows2c.wxGrid_GetColumnWidth(self.this,arg0) | |
154 | return val | |
155 | def GetCurrentRect(self): | |
156 | val = windows2c.wxGrid_GetCurrentRect(self.this) | |
157 | val = wxRectPtr(val) | |
158 | return val | |
159 | def GetCursorColumn(self): | |
160 | val = windows2c.wxGrid_GetCursorColumn(self.this) | |
161 | return val | |
162 | def GetCursorRow(self): | |
163 | val = windows2c.wxGrid_GetCursorRow(self.this) | |
164 | return val | |
165 | def GetEditable(self): | |
166 | val = windows2c.wxGrid_GetEditable(self.this) | |
167 | return val | |
168 | def GetHorizScrollBar(self): | |
169 | val = windows2c.wxGrid_GetHorizScrollBar(self.this) | |
170 | val = wxScrollBarPtr(val) | |
171 | return val | |
172 | def GetLabelAlignment(self,arg0): | |
173 | val = windows2c.wxGrid_GetLabelAlignment(self.this,arg0) | |
174 | return val | |
175 | def GetLabelBackgroundColour(self): | |
176 | val = windows2c.wxGrid_GetLabelBackgroundColour(self.this) | |
177 | val = wxColourPtr(val) | |
178 | return val | |
179 | def GetLabelSize(self,arg0): | |
180 | val = windows2c.wxGrid_GetLabelSize(self.this,arg0) | |
181 | return val | |
182 | def GetLabelTextColour(self): | |
183 | val = windows2c.wxGrid_GetLabelTextColour(self.this) | |
184 | val = wxColourPtr(val) | |
185 | return val | |
186 | def GetLabelTextFont(self): | |
187 | val = windows2c.wxGrid_GetLabelTextFont(self.this) | |
188 | val = wxFontPtr(val) | |
189 | return val | |
190 | def GetLabelValue(self,arg0,arg1): | |
191 | val = windows2c.wxGrid_GetLabelValue(self.this,arg0,arg1) | |
192 | return val | |
193 | def GetRowHeight(self,arg0): | |
194 | val = windows2c.wxGrid_GetRowHeight(self.this,arg0) | |
195 | return val | |
196 | def GetRows(self): | |
197 | val = windows2c.wxGrid_GetRows(self.this) | |
198 | return val | |
199 | def GetScrollPosX(self): | |
200 | val = windows2c.wxGrid_GetScrollPosX(self.this) | |
201 | return val | |
202 | def GetScrollPosY(self): | |
203 | val = windows2c.wxGrid_GetScrollPosY(self.this) | |
204 | return val | |
205 | def GetTextItem(self): | |
206 | val = windows2c.wxGrid_GetTextItem(self.this) | |
207 | val = wxTextCtrlPtr(val) | |
208 | return val | |
209 | def GetVertScrollBar(self): | |
210 | val = windows2c.wxGrid_GetVertScrollBar(self.this) | |
211 | val = wxScrollBarPtr(val) | |
212 | return val | |
213 | def InsertCols(self,*args): | |
214 | val = apply(windows2c.wxGrid_InsertCols,(self.this,)+args) | |
215 | return val | |
216 | def InsertRows(self,*args): | |
217 | val = apply(windows2c.wxGrid_InsertRows,(self.this,)+args) | |
218 | return val | |
105e45b9 RD |
219 | def OnActivate(self,arg0): |
220 | val = windows2c.wxGrid_OnActivate(self.this,arg0) | |
221 | return val | |
70551f47 RD |
222 | def SetCellAlignment(self,arg0,arg1,arg2): |
223 | val = windows2c.wxGrid_SetCellAlignment(self.this,arg0,arg1,arg2) | |
224 | return val | |
225 | def SetDefCellAlignment(self,arg0): | |
226 | val = windows2c.wxGrid_SetDefCellAlignment(self.this,arg0) | |
227 | return val | |
228 | def SetCellBackgroundColour(self,arg0,arg1,arg2): | |
229 | val = windows2c.wxGrid_SetCellBackgroundColour(self.this,arg0.this,arg1,arg2) | |
230 | return val | |
231 | def SetDefCellBackgroundColour(self,arg0): | |
232 | val = windows2c.wxGrid_SetDefCellBackgroundColour(self.this,arg0.this) | |
233 | return val | |
234 | def SetCellTextColour(self,arg0,arg1,arg2): | |
235 | val = windows2c.wxGrid_SetCellTextColour(self.this,arg0.this,arg1,arg2) | |
236 | return val | |
237 | def SetDefCellTextColour(self,arg0): | |
238 | val = windows2c.wxGrid_SetDefCellTextColour(self.this,arg0.this) | |
239 | return val | |
240 | def SetCellTextFont(self,arg0,arg1,arg2): | |
241 | val = windows2c.wxGrid_SetCellTextFont(self.this,arg0.this,arg1,arg2) | |
242 | return val | |
243 | def SetDefCellTextFont(self,arg0): | |
244 | val = windows2c.wxGrid_SetDefCellTextFont(self.this,arg0.this) | |
245 | return val | |
246 | def SetCellValue(self,arg0,arg1,arg2): | |
247 | val = windows2c.wxGrid_SetCellValue(self.this,arg0,arg1,arg2) | |
248 | return val | |
249 | def SetColumnWidth(self,arg0,arg1): | |
250 | val = windows2c.wxGrid_SetColumnWidth(self.this,arg0,arg1) | |
251 | return val | |
252 | def SetDividerPen(self,arg0): | |
253 | val = windows2c.wxGrid_SetDividerPen(self.this,arg0.this) | |
254 | return val | |
255 | def SetEditable(self,arg0): | |
256 | val = windows2c.wxGrid_SetEditable(self.this,arg0) | |
257 | return val | |
258 | def SetGridCursor(self,arg0,arg1): | |
259 | val = windows2c.wxGrid_SetGridCursor(self.this,arg0,arg1) | |
260 | return val | |
261 | def SetLabelAlignment(self,arg0,arg1): | |
262 | val = windows2c.wxGrid_SetLabelAlignment(self.this,arg0,arg1) | |
263 | return val | |
264 | def SetLabelBackgroundColour(self,arg0): | |
265 | val = windows2c.wxGrid_SetLabelBackgroundColour(self.this,arg0.this) | |
266 | return val | |
267 | def SetLabelSize(self,arg0,arg1): | |
268 | val = windows2c.wxGrid_SetLabelSize(self.this,arg0,arg1) | |
269 | return val | |
270 | def SetLabelTextColour(self,arg0): | |
271 | val = windows2c.wxGrid_SetLabelTextColour(self.this,arg0.this) | |
272 | return val | |
273 | def SetLabelTextFont(self,arg0): | |
274 | val = windows2c.wxGrid_SetLabelTextFont(self.this,arg0.this) | |
275 | return val | |
276 | def SetLabelValue(self,arg0,arg1,arg2): | |
277 | val = windows2c.wxGrid_SetLabelValue(self.this,arg0,arg1,arg2) | |
278 | return val | |
279 | def SetRowHeight(self,arg0,arg1): | |
280 | val = windows2c.wxGrid_SetRowHeight(self.this,arg0,arg1) | |
281 | return val | |
282 | def UpdateDimensions(self): | |
283 | val = windows2c.wxGrid_UpdateDimensions(self.this) | |
284 | return val | |
285 | def __repr__(self): | |
286 | return "<C wxGrid instance>" | |
287 | class wxGrid(wxGridPtr): | |
288 | def __init__(self,arg0,arg1,*args) : | |
289 | argl = map(None,args) | |
290 | try: argl[0] = argl[0].this | |
291 | except: pass | |
292 | try: argl[1] = argl[1].this | |
293 | except: pass | |
294 | args = tuple(argl) | |
295 | self.this = apply(windows2c.new_wxGrid,(arg0.this,arg1,)+args) | |
296 | self.thisown = 1 | |
105e45b9 RD |
297 | wx._StdWindowCallbacks(self) |
298 | wx._checkForCallback(self, 'OnSelectCell', wxEVT_GRID_SELECT_CELL) | |
299 | wx._checkForCallback(self, 'OnCreateCell', wxEVT_GRID_CREATE_CELL) | |
300 | wx._checkForCallback(self, 'OnChangeLabels', wxEVT_GRID_CHANGE_LABELS) | |
301 | wx._checkForCallback(self, 'OnChangeSelectionLabel', wxEVT_GRID_CHANGE_SEL_LABEL) | |
302 | wx._checkForCallback(self, 'OnCellChange', wxEVT_GRID_CELL_CHANGE) | |
303 | wx._checkForCallback(self, 'OnCellLeftClick', wxEVT_GRID_CELL_LCLICK) | |
304 | wx._checkForCallback(self, 'OnCellRightClick', wxEVT_GRID_CELL_RCLICK) | |
305 | wx._checkForCallback(self, 'OnLabelLeftClick', wxEVT_GRID_LABEL_LCLICK) | |
306 | wx._checkForCallback(self, 'OnLabelRightClick', wxEVT_GRID_LABEL_RCLICK) | |
307 | ||
308 | ||
309 | ||
310 | ||
311 | class wxGridEventPtr(wxEventPtr): | |
312 | def __init__(self,this): | |
313 | self.this = this | |
314 | self.thisown = 0 | |
315 | def __setattr__(self,name,value): | |
316 | if name == "m_row" : | |
317 | windows2c.wxGridEvent_m_row_set(self.this,value) | |
318 | return | |
319 | if name == "m_col" : | |
320 | windows2c.wxGridEvent_m_col_set(self.this,value) | |
321 | return | |
322 | if name == "m_x" : | |
323 | windows2c.wxGridEvent_m_x_set(self.this,value) | |
324 | return | |
325 | if name == "m_y" : | |
326 | windows2c.wxGridEvent_m_y_set(self.this,value) | |
327 | return | |
328 | if name == "m_control" : | |
329 | windows2c.wxGridEvent_m_control_set(self.this,value) | |
330 | return | |
331 | if name == "m_shift" : | |
332 | windows2c.wxGridEvent_m_shift_set(self.this,value) | |
333 | return | |
334 | if name == "m_cell" : | |
335 | windows2c.wxGridEvent_m_cell_set(self.this,value.this) | |
336 | return | |
337 | self.__dict__[name] = value | |
338 | def __getattr__(self,name): | |
339 | if name == "m_row" : | |
340 | return windows2c.wxGridEvent_m_row_get(self.this) | |
341 | if name == "m_col" : | |
342 | return windows2c.wxGridEvent_m_col_get(self.this) | |
343 | if name == "m_x" : | |
344 | return windows2c.wxGridEvent_m_x_get(self.this) | |
345 | if name == "m_y" : | |
346 | return windows2c.wxGridEvent_m_y_get(self.this) | |
347 | if name == "m_control" : | |
348 | return windows2c.wxGridEvent_m_control_get(self.this) | |
349 | if name == "m_shift" : | |
350 | return windows2c.wxGridEvent_m_shift_get(self.this) | |
351 | if name == "m_cell" : | |
352 | return wxGridCellPtr(windows2c.wxGridEvent_m_cell_get(self.this)) | |
353 | raise AttributeError,name | |
354 | def __repr__(self): | |
355 | return "<C wxGridEvent instance>" | |
356 | class wxGridEvent(wxGridEventPtr): | |
357 | def __init__(self,this): | |
358 | self.this = this | |
70551f47 RD |
359 | |
360 | ||
361 | ||
362 | ||
363 | class wxNotebookEventPtr(wxCommandEventPtr): | |
364 | def __init__(self,this): | |
365 | self.this = this | |
366 | self.thisown = 0 | |
367 | def GetSelection(self): | |
368 | val = windows2c.wxNotebookEvent_GetSelection(self.this) | |
369 | return val | |
370 | def GetOldSelection(self): | |
371 | val = windows2c.wxNotebookEvent_GetOldSelection(self.this) | |
372 | return val | |
373 | def __repr__(self): | |
374 | return "<C wxNotebookEvent instance>" | |
375 | class wxNotebookEvent(wxNotebookEventPtr): | |
376 | def __init__(self,this): | |
377 | self.this = this | |
378 | ||
379 | ||
380 | ||
381 | ||
382 | class wxNotebookPtr(wxControlPtr): | |
383 | def __init__(self,this): | |
384 | self.this = this | |
385 | self.thisown = 0 | |
386 | def GetPageCount(self): | |
387 | val = windows2c.wxNotebook_GetPageCount(self.this) | |
388 | return val | |
389 | def SetSelection(self,arg0): | |
390 | val = windows2c.wxNotebook_SetSelection(self.this,arg0) | |
391 | return val | |
392 | def AdvanceSelection(self,*args): | |
393 | val = apply(windows2c.wxNotebook_AdvanceSelection,(self.this,)+args) | |
394 | return val | |
395 | def GetSelection(self): | |
396 | val = windows2c.wxNotebook_GetSelection(self.this) | |
397 | return val | |
398 | def SetPageText(self,arg0,arg1): | |
399 | val = windows2c.wxNotebook_SetPageText(self.this,arg0,arg1) | |
400 | return val | |
401 | def GetPageText(self,arg0): | |
402 | val = windows2c.wxNotebook_GetPageText(self.this,arg0) | |
403 | return val | |
404 | def SetImageList(self,arg0): | |
405 | val = windows2c.wxNotebook_SetImageList(self.this,arg0) | |
406 | return val | |
407 | def GetImageList(self): | |
408 | val = windows2c.wxNotebook_GetImageList(self.this) | |
409 | return val | |
410 | def GetPageImage(self,arg0): | |
411 | val = windows2c.wxNotebook_GetPageImage(self.this,arg0) | |
412 | return val | |
413 | def SetPageImage(self,arg0,arg1): | |
414 | val = windows2c.wxNotebook_SetPageImage(self.this,arg0,arg1) | |
415 | return val | |
416 | def GetRowCount(self): | |
417 | val = windows2c.wxNotebook_GetRowCount(self.this) | |
418 | return val | |
419 | def DeletePage(self,arg0): | |
420 | val = windows2c.wxNotebook_DeletePage(self.this,arg0) | |
421 | return val | |
422 | def DeleteAllPages(self): | |
423 | val = windows2c.wxNotebook_DeleteAllPages(self.this) | |
424 | return val | |
425 | def AddPage(self,arg0,arg1,*args): | |
426 | val = apply(windows2c.wxNotebook_AddPage,(self.this,arg0.this,arg1,)+args) | |
427 | return val | |
428 | def GetPage(self,arg0): | |
429 | val = windows2c.wxNotebook_GetPage(self.this,arg0) | |
430 | return val | |
431 | def __repr__(self): | |
432 | return "<C wxNotebook instance>" | |
433 | class wxNotebook(wxNotebookPtr): | |
434 | def __init__(self,arg0,arg1,*args) : | |
435 | argl = map(None,args) | |
436 | try: argl[0] = argl[0].this | |
437 | except: pass | |
438 | try: argl[1] = argl[1].this | |
439 | except: pass | |
440 | args = tuple(argl) | |
441 | self.this = apply(windows2c.new_wxNotebook,(arg0.this,arg1,)+args) | |
442 | self.thisown = 1 | |
105e45b9 | 443 | wx._StdWindowCallbacks(self) |
b26e2dc4 RD |
444 | |
445 | ||
446 | ||
447 | ||
448 | class wxSplitterWindowPtr(wxWindowPtr): | |
449 | def __init__(self,this): | |
450 | self.this = this | |
451 | self.thisown = 0 | |
105e45b9 RD |
452 | def GetBorderSize(self): |
453 | val = windows2c.wxSplitterWindow_GetBorderSize(self.this) | |
454 | return val | |
b26e2dc4 RD |
455 | def GetMinimumPaneSize(self): |
456 | val = windows2c.wxSplitterWindow_GetMinimumPaneSize(self.this) | |
457 | return val | |
458 | def GetSashPosition(self): | |
459 | val = windows2c.wxSplitterWindow_GetSashPosition(self.this) | |
460 | return val | |
105e45b9 RD |
461 | def GetSashSize(self): |
462 | val = windows2c.wxSplitterWindow_GetSashSize(self.this) | |
463 | return val | |
b26e2dc4 RD |
464 | def GetSplitMode(self): |
465 | val = windows2c.wxSplitterWindow_GetSplitMode(self.this) | |
466 | return val | |
467 | def GetWindow1(self): | |
468 | val = windows2c.wxSplitterWindow_GetWindow1(self.this) | |
469 | val = wxWindowPtr(val) | |
470 | return val | |
471 | def GetWindow2(self): | |
472 | val = windows2c.wxSplitterWindow_GetWindow2(self.this) | |
473 | val = wxWindowPtr(val) | |
474 | return val | |
475 | def Initialize(self,arg0): | |
476 | val = windows2c.wxSplitterWindow_Initialize(self.this,arg0.this) | |
477 | return val | |
478 | def IsSplit(self): | |
479 | val = windows2c.wxSplitterWindow_IsSplit(self.this) | |
480 | return val | |
105e45b9 RD |
481 | def SetBorderSize(self,arg0): |
482 | val = windows2c.wxSplitterWindow_SetBorderSize(self.this,arg0) | |
483 | return val | |
b26e2dc4 RD |
484 | def SetSashPosition(self,arg0,*args): |
485 | val = apply(windows2c.wxSplitterWindow_SetSashPosition,(self.this,arg0,)+args) | |
486 | return val | |
105e45b9 RD |
487 | def SetSashSize(self,arg0): |
488 | val = windows2c.wxSplitterWindow_SetSashSize(self.this,arg0) | |
489 | return val | |
b26e2dc4 RD |
490 | def SetMinimumPaneSize(self,arg0): |
491 | val = windows2c.wxSplitterWindow_SetMinimumPaneSize(self.this,arg0) | |
492 | return val | |
493 | def SetSplitMode(self,arg0): | |
494 | val = windows2c.wxSplitterWindow_SetSplitMode(self.this,arg0) | |
495 | return val | |
496 | def SplitHorizontally(self,arg0,arg1,*args): | |
497 | val = apply(windows2c.wxSplitterWindow_SplitHorizontally,(self.this,arg0.this,arg1.this,)+args) | |
498 | return val | |
499 | def SplitVertically(self,arg0,arg1,*args): | |
500 | val = apply(windows2c.wxSplitterWindow_SplitVertically,(self.this,arg0.this,arg1.this,)+args) | |
501 | return val | |
502 | def Unsplit(self,*args): | |
503 | argl = map(None,args) | |
504 | try: argl[0] = argl[0].this | |
505 | except: pass | |
506 | args = tuple(argl) | |
507 | val = apply(windows2c.wxSplitterWindow_Unsplit,(self.this,)+args) | |
508 | return val | |
509 | def __repr__(self): | |
510 | return "<C wxSplitterWindow instance>" | |
511 | class wxSplitterWindow(wxSplitterWindowPtr): | |
512 | def __init__(self,arg0,arg1,*args) : | |
513 | argl = map(None,args) | |
514 | try: argl[0] = argl[0].this | |
515 | except: pass | |
516 | try: argl[1] = argl[1].this | |
517 | except: pass | |
518 | args = tuple(argl) | |
519 | self.this = apply(windows2c.new_wxSplitterWindow,(arg0.this,arg1,)+args) | |
520 | self.thisown = 1 | |
105e45b9 | 521 | wx._StdWindowCallbacks(self) |
70551f47 RD |
522 | |
523 | ||
524 | ||
525 | ||
526 | ||
527 | ||
528 | #-------------- FUNCTION WRAPPERS ------------------ | |
529 | ||
530 | ||
531 | ||
532 | #-------------- VARIABLE WRAPPERS ------------------ | |
533 | ||
534 | wxGRID_TEXT_CTRL = windows2c.wxGRID_TEXT_CTRL | |
535 | wxGRID_HSCROLL = windows2c.wxGRID_HSCROLL | |
536 | wxGRID_VSCROLL = windows2c.wxGRID_VSCROLL | |
105e45b9 RD |
537 | wxEVT_GRID_SELECT_CELL = windows2c.wxEVT_GRID_SELECT_CELL |
538 | wxEVT_GRID_CREATE_CELL = windows2c.wxEVT_GRID_CREATE_CELL | |
539 | wxEVT_GRID_CHANGE_LABELS = windows2c.wxEVT_GRID_CHANGE_LABELS | |
540 | wxEVT_GRID_CHANGE_SEL_LABEL = windows2c.wxEVT_GRID_CHANGE_SEL_LABEL | |
541 | wxEVT_GRID_CELL_CHANGE = windows2c.wxEVT_GRID_CELL_CHANGE | |
542 | wxEVT_GRID_CELL_LCLICK = windows2c.wxEVT_GRID_CELL_LCLICK | |
543 | wxEVT_GRID_CELL_RCLICK = windows2c.wxEVT_GRID_CELL_RCLICK | |
544 | wxEVT_GRID_LABEL_LCLICK = windows2c.wxEVT_GRID_LABEL_LCLICK | |
545 | wxEVT_GRID_LABEL_RCLICK = windows2c.wxEVT_GRID_LABEL_RCLICK |