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