]>
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 | |
b639c3c5 RD |
18 | def __del__(self): |
19 | if self.thisown == 1 : | |
20 | windows2c.delete_wxGridCell(self.this) | |
8ab979d7 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): | |
b639c3c5 RD |
68 | def __init__(self) : |
69 | self.this = windows2c.new_wxGridCell() | |
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 | |
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 | |
b639c3c5 RD |
219 | def OnActivate(self,arg0): |
220 | val = windows2c.wxGrid_OnActivate(self.this,arg0) | |
221 | return val | |
8ab979d7 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 | |
b8b8dda7 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) | |
b639c3c5 RD |
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 | |
8ab979d7 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): | |
af309447 | 405 | val = windows2c.wxNotebook_SetImageList(self.this,arg0.this) |
8ab979d7 RD |
406 | return val |
407 | def GetImageList(self): | |
408 | val = windows2c.wxNotebook_GetImageList(self.this) | |
af309447 | 409 | val = wxImageListPtr(val) |
8ab979d7 RD |
410 | return val |
411 | def GetPageImage(self,arg0): | |
412 | val = windows2c.wxNotebook_GetPageImage(self.this,arg0) | |
413 | return val | |
414 | def SetPageImage(self,arg0,arg1): | |
415 | val = windows2c.wxNotebook_SetPageImage(self.this,arg0,arg1) | |
416 | return val | |
417 | def GetRowCount(self): | |
418 | val = windows2c.wxNotebook_GetRowCount(self.this) | |
419 | return val | |
420 | def DeletePage(self,arg0): | |
421 | val = windows2c.wxNotebook_DeletePage(self.this,arg0) | |
422 | return val | |
423 | def DeleteAllPages(self): | |
424 | val = windows2c.wxNotebook_DeleteAllPages(self.this) | |
425 | return val | |
426 | def AddPage(self,arg0,arg1,*args): | |
427 | val = apply(windows2c.wxNotebook_AddPage,(self.this,arg0.this,arg1,)+args) | |
428 | return val | |
429 | def InsertPage(self,arg0,arg1,arg2,*args): | |
430 | val = apply(windows2c.wxNotebook_InsertPage,(self.this,arg0,arg1.this,arg2,)+args) | |
431 | return val | |
432 | def GetPage(self,arg0): | |
433 | val = windows2c.wxNotebook_GetPage(self.this,arg0) | |
434 | return val | |
435 | def __repr__(self): | |
436 | return "<C wxNotebook instance>" | |
437 | class wxNotebook(wxNotebookPtr): | |
438 | def __init__(self,arg0,arg1,*args) : | |
439 | argl = map(None,args) | |
440 | try: argl[0] = argl[0].this | |
441 | except: pass | |
442 | try: argl[1] = argl[1].this | |
443 | except: pass | |
444 | args = tuple(argl) | |
445 | self.this = apply(windows2c.new_wxNotebook,(arg0.this,arg1,)+args) | |
446 | self.thisown = 1 | |
b8b8dda7 | 447 | wx._StdWindowCallbacks(self) |
9c039d08 RD |
448 | |
449 | ||
450 | ||
451 | ||
452 | class wxSplitterWindowPtr(wxWindowPtr): | |
453 | def __init__(self,this): | |
454 | self.this = this | |
455 | self.thisown = 0 | |
b639c3c5 RD |
456 | def GetBorderSize(self): |
457 | val = windows2c.wxSplitterWindow_GetBorderSize(self.this) | |
458 | return val | |
9c039d08 RD |
459 | def GetMinimumPaneSize(self): |
460 | val = windows2c.wxSplitterWindow_GetMinimumPaneSize(self.this) | |
461 | return val | |
462 | def GetSashPosition(self): | |
463 | val = windows2c.wxSplitterWindow_GetSashPosition(self.this) | |
464 | return val | |
b639c3c5 RD |
465 | def GetSashSize(self): |
466 | val = windows2c.wxSplitterWindow_GetSashSize(self.this) | |
467 | return val | |
9c039d08 RD |
468 | def GetSplitMode(self): |
469 | val = windows2c.wxSplitterWindow_GetSplitMode(self.this) | |
470 | return val | |
471 | def GetWindow1(self): | |
472 | val = windows2c.wxSplitterWindow_GetWindow1(self.this) | |
473 | val = wxWindowPtr(val) | |
474 | return val | |
475 | def GetWindow2(self): | |
476 | val = windows2c.wxSplitterWindow_GetWindow2(self.this) | |
477 | val = wxWindowPtr(val) | |
478 | return val | |
479 | def Initialize(self,arg0): | |
480 | val = windows2c.wxSplitterWindow_Initialize(self.this,arg0.this) | |
481 | return val | |
482 | def IsSplit(self): | |
483 | val = windows2c.wxSplitterWindow_IsSplit(self.this) | |
484 | return val | |
b639c3c5 RD |
485 | def SetBorderSize(self,arg0): |
486 | val = windows2c.wxSplitterWindow_SetBorderSize(self.this,arg0) | |
487 | return val | |
9c039d08 RD |
488 | def SetSashPosition(self,arg0,*args): |
489 | val = apply(windows2c.wxSplitterWindow_SetSashPosition,(self.this,arg0,)+args) | |
490 | return val | |
b639c3c5 RD |
491 | def SetSashSize(self,arg0): |
492 | val = windows2c.wxSplitterWindow_SetSashSize(self.this,arg0) | |
493 | return val | |
9c039d08 RD |
494 | def SetMinimumPaneSize(self,arg0): |
495 | val = windows2c.wxSplitterWindow_SetMinimumPaneSize(self.this,arg0) | |
496 | return val | |
497 | def SetSplitMode(self,arg0): | |
498 | val = windows2c.wxSplitterWindow_SetSplitMode(self.this,arg0) | |
499 | return val | |
500 | def SplitHorizontally(self,arg0,arg1,*args): | |
501 | val = apply(windows2c.wxSplitterWindow_SplitHorizontally,(self.this,arg0.this,arg1.this,)+args) | |
502 | return val | |
503 | def SplitVertically(self,arg0,arg1,*args): | |
504 | val = apply(windows2c.wxSplitterWindow_SplitVertically,(self.this,arg0.this,arg1.this,)+args) | |
505 | return val | |
506 | def Unsplit(self,*args): | |
507 | argl = map(None,args) | |
508 | try: argl[0] = argl[0].this | |
509 | except: pass | |
510 | args = tuple(argl) | |
511 | val = apply(windows2c.wxSplitterWindow_Unsplit,(self.this,)+args) | |
512 | return val | |
513 | def __repr__(self): | |
514 | return "<C wxSplitterWindow instance>" | |
515 | class wxSplitterWindow(wxSplitterWindowPtr): | |
516 | def __init__(self,arg0,arg1,*args) : | |
517 | argl = map(None,args) | |
518 | try: argl[0] = argl[0].this | |
519 | except: pass | |
520 | try: argl[1] = argl[1].this | |
521 | except: pass | |
522 | args = tuple(argl) | |
523 | self.this = apply(windows2c.new_wxSplitterWindow,(arg0.this,arg1,)+args) | |
524 | self.thisown = 1 | |
b8b8dda7 | 525 | wx._StdWindowCallbacks(self) |
8ab979d7 RD |
526 | |
527 | ||
528 | ||
529 | ||
b639c3c5 RD |
530 | class wxTaskBarIconPtr(wxEvtHandlerPtr): |
531 | def __init__(self,this): | |
532 | self.this = this | |
533 | self.thisown = 0 | |
534 | def __del__(self): | |
535 | if self.thisown == 1 : | |
536 | windows2c.delete_wxTaskBarIcon(self.this) | |
537 | def SetIcon(self,arg0,*args): | |
538 | val = apply(windows2c.wxTaskBarIcon_SetIcon,(self.this,arg0.this,)+args) | |
539 | return val | |
540 | def RemoveIcon(self): | |
541 | val = windows2c.wxTaskBarIcon_RemoveIcon(self.this) | |
542 | return val | |
be4d9c1f RD |
543 | def PopupMenu(self,arg0): |
544 | val = windows2c.wxTaskBarIcon_PopupMenu(self.this,arg0.this) | |
545 | return val | |
b639c3c5 RD |
546 | def __repr__(self): |
547 | return "<C wxTaskBarIcon instance>" | |
548 | class wxTaskBarIcon(wxTaskBarIconPtr): | |
549 | def __init__(self) : | |
550 | self.this = windows2c.new_wxTaskBarIcon() | |
551 | self.thisown = 1 | |
b8b8dda7 RD |
552 | wx._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE) |
553 | wx._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN) | |
554 | wx._checkForCallback(self, 'OnLButtonUp', wxEVT_TASKBAR_LEFT_UP) | |
555 | wx._checkForCallback(self, 'OnRButtonDown', wxEVT_TASKBAR_RIGHT_DOWN) | |
556 | wx._checkForCallback(self, 'OnRButtonUp', wxEVT_TASKBAR_RIGHT_UP) | |
557 | wx._checkForCallback(self, 'OnLButtonDClick',wxEVT_TASKBAR_LEFT_DCLICK) | |
558 | wx._checkForCallback(self, 'OnRButtonDClick',wxEVT_TASKBAR_RIGHT_DCLICK) | |
b639c3c5 RD |
559 | |
560 | ||
561 | ||
562 | ||
8ab979d7 RD |
563 | |
564 | ||
565 | #-------------- FUNCTION WRAPPERS ------------------ | |
566 | ||
567 | ||
568 | ||
569 | #-------------- VARIABLE WRAPPERS ------------------ | |
570 | ||
571 | wxGRID_TEXT_CTRL = windows2c.wxGRID_TEXT_CTRL | |
572 | wxGRID_HSCROLL = windows2c.wxGRID_HSCROLL | |
573 | wxGRID_VSCROLL = windows2c.wxGRID_VSCROLL | |
b639c3c5 RD |
574 | wxEVT_GRID_SELECT_CELL = windows2c.wxEVT_GRID_SELECT_CELL |
575 | wxEVT_GRID_CREATE_CELL = windows2c.wxEVT_GRID_CREATE_CELL | |
576 | wxEVT_GRID_CHANGE_LABELS = windows2c.wxEVT_GRID_CHANGE_LABELS | |
577 | wxEVT_GRID_CHANGE_SEL_LABEL = windows2c.wxEVT_GRID_CHANGE_SEL_LABEL | |
578 | wxEVT_GRID_CELL_CHANGE = windows2c.wxEVT_GRID_CELL_CHANGE | |
579 | wxEVT_GRID_CELL_LCLICK = windows2c.wxEVT_GRID_CELL_LCLICK | |
580 | wxEVT_GRID_CELL_RCLICK = windows2c.wxEVT_GRID_CELL_RCLICK | |
581 | wxEVT_GRID_LABEL_LCLICK = windows2c.wxEVT_GRID_LABEL_LCLICK | |
582 | wxEVT_GRID_LABEL_RCLICK = windows2c.wxEVT_GRID_LABEL_RCLICK | |
583 | wxEVT_TASKBAR_MOVE = windows2c.wxEVT_TASKBAR_MOVE | |
584 | wxEVT_TASKBAR_LEFT_DOWN = windows2c.wxEVT_TASKBAR_LEFT_DOWN | |
585 | wxEVT_TASKBAR_LEFT_UP = windows2c.wxEVT_TASKBAR_LEFT_UP | |
586 | wxEVT_TASKBAR_RIGHT_DOWN = windows2c.wxEVT_TASKBAR_RIGHT_DOWN | |
587 | wxEVT_TASKBAR_RIGHT_UP = windows2c.wxEVT_TASKBAR_RIGHT_UP | |
588 | wxEVT_TASKBAR_LEFT_DCLICK = windows2c.wxEVT_TASKBAR_LEFT_DCLICK | |
589 | wxEVT_TASKBAR_RIGHT_DCLICK = windows2c.wxEVT_TASKBAR_RIGHT_DCLICK |