1 # This file was created automatically by SWIG.
10 from controls
import *
15 def __init__(self
,this
):
18 def __del__(self
, windows2c
=windows2c
):
19 if self
.thisown
== 1 :
20 windows2c
.delete_wxGridCell(self
.this
)
21 def GetTextValue(self
):
22 val
= windows2c
.wxGridCell_GetTextValue(self
.this
)
24 def SetTextValue(self
,arg0
):
25 val
= windows2c
.wxGridCell_SetTextValue(self
.this
,arg0
)
28 val
= windows2c
.wxGridCell_GetFont(self
.this
)
31 def SetFont(self
,arg0
):
32 val
= windows2c
.wxGridCell_SetFont(self
.this
,arg0
.this
)
34 def GetTextColour(self
):
35 val
= windows2c
.wxGridCell_GetTextColour(self
.this
)
36 val
= wxColourPtr(val
)
38 def SetTextColour(self
,arg0
):
39 val
= windows2c
.wxGridCell_SetTextColour(self
.this
,arg0
.this
)
41 def GetBackgroundColour(self
):
42 val
= windows2c
.wxGridCell_GetBackgroundColour(self
.this
)
43 val
= wxColourPtr(val
)
45 def SetBackgroundColour(self
,arg0
):
46 val
= windows2c
.wxGridCell_SetBackgroundColour(self
.this
,arg0
.this
)
48 def GetBackgroundBrush(self
):
49 val
= windows2c
.wxGridCell_GetBackgroundBrush(self
.this
)
52 def GetAlignment(self
):
53 val
= windows2c
.wxGridCell_GetAlignment(self
.this
)
55 def SetAlignment(self
,arg0
):
56 val
= windows2c
.wxGridCell_SetAlignment(self
.this
,arg0
)
58 def GetCellBitmap(self
):
59 val
= windows2c
.wxGridCell_GetCellBitmap(self
.this
)
60 val
= wxBitmapPtr(val
)
62 def SetCellBitmap(self
,arg0
):
63 val
= windows2c
.wxGridCell_SetCellBitmap(self
.this
,arg0
.this
)
66 return "<C wxGridCell instance>"
67 class wxGridCell(wxGridCellPtr
):
69 self
.this
= windows2c
.new_wxGridCell()
75 class wxGridPtr(wxPanelPtr
):
76 def __init__(self
,this
):
79 def AdjustScrollbars(self
):
80 val
= windows2c
.wxGrid_AdjustScrollbars(self
.this
)
82 def AppendCols(self
,*args
):
83 val
= apply(windows2c
.wxGrid_AppendCols
,(self
.this
,)+args
)
85 def AppendRows(self
,*args
):
86 val
= apply(windows2c
.wxGrid_AppendRows
,(self
.this
,)+args
)
89 val
= windows2c
.wxGrid_BeginBatch(self
.this
)
91 def CellHitTest(self
,arg0
,arg1
):
92 val
= windows2c
.wxGrid_CellHitTest(self
.this
,arg0
,arg1
)
94 def CreateGrid(self
,arg0
,arg1
,*args
):
95 val
= apply(windows2c
.wxGrid_CreateGrid
,(self
.this
,arg0
,arg1
,)+args
)
97 def CurrentCellVisible(self
):
98 val
= windows2c
.wxGrid_CurrentCellVisible(self
.this
)
100 def DeleteCols(self
,*args
):
101 val
= apply(windows2c
.wxGrid_DeleteCols
,(self
.this
,)+args
)
103 def DeleteRows(self
,*args
):
104 val
= apply(windows2c
.wxGrid_DeleteRows
,(self
.this
,)+args
)
107 val
= windows2c
.wxGrid_EndBatch(self
.this
)
109 def GetBatchCount(self
):
110 val
= windows2c
.wxGrid_GetBatchCount(self
.this
)
112 def GetCell(self
,arg0
,arg1
):
113 val
= windows2c
.wxGrid_GetCell(self
.this
,arg0
,arg1
)
114 val
= wxGridCellPtr(val
)
116 def GetCellAlignment(self
,arg0
,arg1
):
117 val
= windows2c
.wxGrid_GetCellAlignment(self
.this
,arg0
,arg1
)
119 def GetDefCellAlignment(self
):
120 val
= windows2c
.wxGrid_GetDefCellAlignment(self
.this
)
122 def GetCellBackgroundColour(self
,arg0
,arg1
):
123 val
= windows2c
.wxGrid_GetCellBackgroundColour(self
.this
,arg0
,arg1
)
124 val
= wxColourPtr(val
)
126 def GetDefCellBackgroundColour(self
):
127 val
= windows2c
.wxGrid_GetDefCellBackgroundColour(self
.this
)
128 val
= wxColourPtr(val
)
131 val
= windows2c
.wxGrid_GetCells(self
.this
)
133 def GetCellTextColour(self
,arg0
,arg1
):
134 val
= windows2c
.wxGrid_GetCellTextColour(self
.this
,arg0
,arg1
)
135 val
= wxColourPtr(val
)
137 def GetDefCellTextColour(self
):
138 val
= windows2c
.wxGrid_GetDefCellTextColour(self
.this
)
139 val
= wxColourPtr(val
)
141 def GetCellTextFont(self
,arg0
,arg1
):
142 val
= windows2c
.wxGrid_GetCellTextFont(self
.this
,arg0
,arg1
)
145 def GetDefCellTextFont(self
):
146 val
= windows2c
.wxGrid_GetDefCellTextFont(self
.this
)
149 def GetCellValue(self
,arg0
,arg1
):
150 val
= windows2c
.wxGrid_GetCellValue(self
.this
,arg0
,arg1
)
153 val
= windows2c
.wxGrid_GetCols(self
.this
)
155 def GetColumnWidth(self
,arg0
):
156 val
= windows2c
.wxGrid_GetColumnWidth(self
.this
,arg0
)
158 def GetCurrentRect(self
):
159 val
= windows2c
.wxGrid_GetCurrentRect(self
.this
)
163 def GetCursorColumn(self
):
164 val
= windows2c
.wxGrid_GetCursorColumn(self
.this
)
166 def GetCursorRow(self
):
167 val
= windows2c
.wxGrid_GetCursorRow(self
.this
)
169 def GetEditable(self
):
170 val
= windows2c
.wxGrid_GetEditable(self
.this
)
172 def GetHorizScrollBar(self
):
173 val
= windows2c
.wxGrid_GetHorizScrollBar(self
.this
)
174 val
= wxScrollBarPtr(val
)
176 def GetLabelAlignment(self
,arg0
):
177 val
= windows2c
.wxGrid_GetLabelAlignment(self
.this
,arg0
)
179 def GetLabelBackgroundColour(self
):
180 val
= windows2c
.wxGrid_GetLabelBackgroundColour(self
.this
)
181 val
= wxColourPtr(val
)
183 def GetLabelSize(self
,arg0
):
184 val
= windows2c
.wxGrid_GetLabelSize(self
.this
,arg0
)
186 def GetLabelTextColour(self
):
187 val
= windows2c
.wxGrid_GetLabelTextColour(self
.this
)
188 val
= wxColourPtr(val
)
190 def GetLabelTextFont(self
):
191 val
= windows2c
.wxGrid_GetLabelTextFont(self
.this
)
194 def GetLabelValue(self
,arg0
,arg1
):
195 val
= windows2c
.wxGrid_GetLabelValue(self
.this
,arg0
,arg1
)
197 def GetRowHeight(self
,arg0
):
198 val
= windows2c
.wxGrid_GetRowHeight(self
.this
,arg0
)
201 val
= windows2c
.wxGrid_GetRows(self
.this
)
203 def GetScrollPosX(self
):
204 val
= windows2c
.wxGrid_GetScrollPosX(self
.this
)
206 def GetScrollPosY(self
):
207 val
= windows2c
.wxGrid_GetScrollPosY(self
.this
)
209 def GetTextItem(self
):
210 val
= windows2c
.wxGrid_GetTextItem(self
.this
)
211 val
= wxTextCtrlPtr(val
)
213 def GetVertScrollBar(self
):
214 val
= windows2c
.wxGrid_GetVertScrollBar(self
.this
)
215 val
= wxScrollBarPtr(val
)
217 def InsertCols(self
,*args
):
218 val
= apply(windows2c
.wxGrid_InsertCols
,(self
.this
,)+args
)
220 def InsertRows(self
,*args
):
221 val
= apply(windows2c
.wxGrid_InsertRows
,(self
.this
,)+args
)
223 def OnActivate(self
,arg0
):
224 val
= windows2c
.wxGrid_OnActivate(self
.this
,arg0
)
226 def SetCellAlignment(self
,arg0
,arg1
,arg2
):
227 val
= windows2c
.wxGrid_SetCellAlignment(self
.this
,arg0
,arg1
,arg2
)
229 def SetDefCellAlignment(self
,arg0
):
230 val
= windows2c
.wxGrid_SetDefCellAlignment(self
.this
,arg0
)
232 def SetCellBackgroundColour(self
,arg0
,arg1
,arg2
):
233 val
= windows2c
.wxGrid_SetCellBackgroundColour(self
.this
,arg0
.this
,arg1
,arg2
)
235 def SetDefCellBackgroundColour(self
,arg0
):
236 val
= windows2c
.wxGrid_SetDefCellBackgroundColour(self
.this
,arg0
.this
)
238 def SetCellTextColour(self
,arg0
,arg1
,arg2
):
239 val
= windows2c
.wxGrid_SetCellTextColour(self
.this
,arg0
.this
,arg1
,arg2
)
241 def SetDefCellTextColour(self
,arg0
):
242 val
= windows2c
.wxGrid_SetDefCellTextColour(self
.this
,arg0
.this
)
244 def SetCellTextFont(self
,arg0
,arg1
,arg2
):
245 val
= windows2c
.wxGrid_SetCellTextFont(self
.this
,arg0
.this
,arg1
,arg2
)
247 def SetDefCellTextFont(self
,arg0
):
248 val
= windows2c
.wxGrid_SetDefCellTextFont(self
.this
,arg0
.this
)
250 def SetCellValue(self
,arg0
,arg1
,arg2
):
251 val
= windows2c
.wxGrid_SetCellValue(self
.this
,arg0
,arg1
,arg2
)
253 def SetColumnWidth(self
,arg0
,arg1
):
254 val
= windows2c
.wxGrid_SetColumnWidth(self
.this
,arg0
,arg1
)
256 def SetDividerPen(self
,arg0
):
257 val
= windows2c
.wxGrid_SetDividerPen(self
.this
,arg0
.this
)
259 def SetEditable(self
,arg0
):
260 val
= windows2c
.wxGrid_SetEditable(self
.this
,arg0
)
262 def SetGridCursor(self
,arg0
,arg1
):
263 val
= windows2c
.wxGrid_SetGridCursor(self
.this
,arg0
,arg1
)
265 def SetLabelAlignment(self
,arg0
,arg1
):
266 val
= windows2c
.wxGrid_SetLabelAlignment(self
.this
,arg0
,arg1
)
268 def SetLabelBackgroundColour(self
,arg0
):
269 val
= windows2c
.wxGrid_SetLabelBackgroundColour(self
.this
,arg0
.this
)
271 def SetLabelSize(self
,arg0
,arg1
):
272 val
= windows2c
.wxGrid_SetLabelSize(self
.this
,arg0
,arg1
)
274 def SetLabelTextColour(self
,arg0
):
275 val
= windows2c
.wxGrid_SetLabelTextColour(self
.this
,arg0
.this
)
277 def SetLabelTextFont(self
,arg0
):
278 val
= windows2c
.wxGrid_SetLabelTextFont(self
.this
,arg0
.this
)
280 def SetLabelValue(self
,arg0
,arg1
,arg2
):
281 val
= windows2c
.wxGrid_SetLabelValue(self
.this
,arg0
,arg1
,arg2
)
283 def SetRowHeight(self
,arg0
,arg1
):
284 val
= windows2c
.wxGrid_SetRowHeight(self
.this
,arg0
,arg1
)
286 def UpdateDimensions(self
):
287 val
= windows2c
.wxGrid_UpdateDimensions(self
.this
)
289 def GetEditInPlace(self
):
290 val
= windows2c
.wxGrid_GetEditInPlace(self
.this
)
292 def SetEditInPlace(self
,*args
):
293 val
= apply(windows2c
.wxGrid_SetEditInPlace
,(self
.this
,)+args
)
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
302 try: argl
[1] = argl
[1].this
305 self
.this
= apply(windows2c
.new_wxGrid
,(arg0
.this
,arg1
,)+args
)
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
)
321 class wxGridEventPtr(wxEventPtr
):
322 def __init__(self
,this
):
325 def __setattr__(self
,name
,value
):
327 windows2c
.wxGridEvent_m_row_set(self
.this
,value
)
330 windows2c
.wxGridEvent_m_col_set(self
.this
,value
)
333 windows2c
.wxGridEvent_m_x_set(self
.this
,value
)
336 windows2c
.wxGridEvent_m_y_set(self
.this
,value
)
338 if name
== "m_control" :
339 windows2c
.wxGridEvent_m_control_set(self
.this
,value
)
341 if name
== "m_shift" :
342 windows2c
.wxGridEvent_m_shift_set(self
.this
,value
)
344 if name
== "m_cell" :
345 windows2c
.wxGridEvent_m_cell_set(self
.this
,value
.this
)
347 self
.__dict
__[name
] = value
348 def __getattr__(self
,name
):
350 return windows2c
.wxGridEvent_m_row_get(self
.this
)
352 return windows2c
.wxGridEvent_m_col_get(self
.this
)
354 return windows2c
.wxGridEvent_m_x_get(self
.this
)
356 return windows2c
.wxGridEvent_m_y_get(self
.this
)
357 if name
== "m_control" :
358 return windows2c
.wxGridEvent_m_control_get(self
.this
)
359 if name
== "m_shift" :
360 return windows2c
.wxGridEvent_m_shift_get(self
.this
)
361 if name
== "m_cell" :
362 return wxGridCellPtr(windows2c
.wxGridEvent_m_cell_get(self
.this
))
363 raise AttributeError,name
365 return "<C wxGridEvent instance>"
366 class wxGridEvent(wxGridEventPtr
):
367 def __init__(self
,this
):
373 class wxNotebookEventPtr(wxNotifyEventPtr
):
374 def __init__(self
,this
):
377 def GetSelection(self
):
378 val
= windows2c
.wxNotebookEvent_GetSelection(self
.this
)
380 def GetOldSelection(self
):
381 val
= windows2c
.wxNotebookEvent_GetOldSelection(self
.this
)
383 def SetOldSelection(self
,arg0
):
384 val
= windows2c
.wxNotebookEvent_SetOldSelection(self
.this
,arg0
)
386 def SetSelection(self
,arg0
):
387 val
= windows2c
.wxNotebookEvent_SetSelection(self
.this
,arg0
)
390 return "<C wxNotebookEvent instance>"
391 class wxNotebookEvent(wxNotebookEventPtr
):
392 def __init__(self
,this
):
398 class wxNotebookPtr(wxControlPtr
):
399 def __init__(self
,this
):
402 def GetPageCount(self
):
403 val
= windows2c
.wxNotebook_GetPageCount(self
.this
)
405 def SetSelection(self
,arg0
):
406 val
= windows2c
.wxNotebook_SetSelection(self
.this
,arg0
)
408 def AdvanceSelection(self
,*args
):
409 val
= apply(windows2c
.wxNotebook_AdvanceSelection
,(self
.this
,)+args
)
411 def GetSelection(self
):
412 val
= windows2c
.wxNotebook_GetSelection(self
.this
)
414 def SetPageText(self
,arg0
,arg1
):
415 val
= windows2c
.wxNotebook_SetPageText(self
.this
,arg0
,arg1
)
417 def GetPageText(self
,arg0
):
418 val
= windows2c
.wxNotebook_GetPageText(self
.this
,arg0
)
420 def SetImageList(self
,arg0
):
421 val
= windows2c
.wxNotebook_SetImageList(self
.this
,arg0
.this
)
423 def GetImageList(self
):
424 val
= windows2c
.wxNotebook_GetImageList(self
.this
)
425 val
= wxImageListPtr(val
)
427 def GetPageImage(self
,arg0
):
428 val
= windows2c
.wxNotebook_GetPageImage(self
.this
,arg0
)
430 def SetPageImage(self
,arg0
,arg1
):
431 val
= windows2c
.wxNotebook_SetPageImage(self
.this
,arg0
,arg1
)
433 def GetRowCount(self
):
434 val
= windows2c
.wxNotebook_GetRowCount(self
.this
)
436 def DeletePage(self
,arg0
):
437 val
= windows2c
.wxNotebook_DeletePage(self
.this
,arg0
)
439 def RemovePage(self
,arg0
):
440 val
= windows2c
.wxNotebook_RemovePage(self
.this
,arg0
)
442 def DeleteAllPages(self
):
443 val
= windows2c
.wxNotebook_DeleteAllPages(self
.this
)
445 def AddPage(self
,arg0
,arg1
,*args
):
446 val
= apply(windows2c
.wxNotebook_AddPage
,(self
.this
,arg0
.this
,arg1
,)+args
)
448 def GetPage(self
,arg0
):
449 val
= windows2c
.wxNotebook_GetPage(self
.this
,arg0
)
450 val
= wxWindowPtr(val
)
452 def ResizeChildren(self
):
453 val
= windows2c
.wxNotebook_ResizeChildren(self
.this
)
456 return "<C wxNotebook instance>"
457 class wxNotebook(wxNotebookPtr
):
458 def __init__(self
,arg0
,arg1
,*args
) :
459 argl
= map(None,args
)
460 try: argl
[0] = argl
[0].this
462 try: argl
[1] = argl
[1].this
465 self
.this
= apply(windows2c
.new_wxNotebook
,(arg0
.this
,arg1
,)+args
)
467 wx
._StdWindowCallbacks
(self
)
472 class wxSplitterEventPtr(wxCommandEventPtr
):
473 def __init__(self
,this
):
476 def GetSashPosition(self
):
477 val
= windows2c
.wxSplitterEvent_GetSashPosition(self
.this
)
480 val
= windows2c
.wxSplitterEvent_GetX(self
.this
)
483 val
= windows2c
.wxSplitterEvent_GetY(self
.this
)
485 def GetWindowBeingRemoved(self
):
486 val
= windows2c
.wxSplitterEvent_GetWindowBeingRemoved(self
.this
)
487 val
= wxWindowPtr(val
)
489 def SetSashPosition(self
,arg0
):
490 val
= windows2c
.wxSplitterEvent_SetSashPosition(self
.this
,arg0
)
493 return "<C wxSplitterEvent instance>"
494 class wxSplitterEvent(wxSplitterEventPtr
):
495 def __init__(self
,this
):
501 class wxSplitterWindowPtr(wxWindowPtr
):
502 def __init__(self
,this
):
505 def GetBorderSize(self
):
506 val
= windows2c
.wxSplitterWindow_GetBorderSize(self
.this
)
508 def GetMinimumPaneSize(self
):
509 val
= windows2c
.wxSplitterWindow_GetMinimumPaneSize(self
.this
)
511 def GetSashPosition(self
):
512 val
= windows2c
.wxSplitterWindow_GetSashPosition(self
.this
)
514 def GetSashSize(self
):
515 val
= windows2c
.wxSplitterWindow_GetSashSize(self
.this
)
517 def GetSplitMode(self
):
518 val
= windows2c
.wxSplitterWindow_GetSplitMode(self
.this
)
520 def GetWindow1(self
):
521 val
= windows2c
.wxSplitterWindow_GetWindow1(self
.this
)
522 val
= wxWindowPtr(val
)
524 def GetWindow2(self
):
525 val
= windows2c
.wxSplitterWindow_GetWindow2(self
.this
)
526 val
= wxWindowPtr(val
)
528 def Initialize(self
,arg0
):
529 val
= windows2c
.wxSplitterWindow_Initialize(self
.this
,arg0
.this
)
532 val
= windows2c
.wxSplitterWindow_IsSplit(self
.this
)
534 def SetBorderSize(self
,arg0
):
535 val
= windows2c
.wxSplitterWindow_SetBorderSize(self
.this
,arg0
)
537 def SetSashPosition(self
,arg0
,*args
):
538 val
= apply(windows2c
.wxSplitterWindow_SetSashPosition
,(self
.this
,arg0
,)+args
)
540 def SetSashSize(self
,arg0
):
541 val
= windows2c
.wxSplitterWindow_SetSashSize(self
.this
,arg0
)
543 def SetMinimumPaneSize(self
,arg0
):
544 val
= windows2c
.wxSplitterWindow_SetMinimumPaneSize(self
.this
,arg0
)
546 def SetSplitMode(self
,arg0
):
547 val
= windows2c
.wxSplitterWindow_SetSplitMode(self
.this
,arg0
)
549 def SplitHorizontally(self
,arg0
,arg1
,*args
):
550 val
= apply(windows2c
.wxSplitterWindow_SplitHorizontally
,(self
.this
,arg0
.this
,arg1
.this
,)+args
)
552 def SplitVertically(self
,arg0
,arg1
,*args
):
553 val
= apply(windows2c
.wxSplitterWindow_SplitVertically
,(self
.this
,arg0
.this
,arg1
.this
,)+args
)
555 def Unsplit(self
,*args
):
556 argl
= map(None,args
)
557 try: argl
[0] = argl
[0].this
560 val
= apply(windows2c
.wxSplitterWindow_Unsplit
,(self
.this
,)+args
)
563 return "<C wxSplitterWindow instance>"
564 class wxSplitterWindow(wxSplitterWindowPtr
):
565 def __init__(self
,arg0
,arg1
,*args
) :
566 argl
= map(None,args
)
567 try: argl
[0] = argl
[0].this
569 try: argl
[1] = argl
[1].this
572 self
.this
= apply(windows2c
.new_wxSplitterWindow
,(arg0
.this
,arg1
,)+args
)
574 wx
._StdWindowCallbacks
(self
)
581 #-------------- FUNCTION WRAPPERS ------------------
585 #-------------- VARIABLE WRAPPERS ------------------
587 wxGRID_TEXT_CTRL
= windows2c
.wxGRID_TEXT_CTRL
588 wxGRID_HSCROLL
= windows2c
.wxGRID_HSCROLL
589 wxGRID_VSCROLL
= windows2c
.wxGRID_VSCROLL
590 wxEVT_GRID_SELECT_CELL
= windows2c
.wxEVT_GRID_SELECT_CELL
591 wxEVT_GRID_CREATE_CELL
= windows2c
.wxEVT_GRID_CREATE_CELL
592 wxEVT_GRID_CHANGE_LABELS
= windows2c
.wxEVT_GRID_CHANGE_LABELS
593 wxEVT_GRID_CHANGE_SEL_LABEL
= windows2c
.wxEVT_GRID_CHANGE_SEL_LABEL
594 wxEVT_GRID_CELL_CHANGE
= windows2c
.wxEVT_GRID_CELL_CHANGE
595 wxEVT_GRID_CELL_LCLICK
= windows2c
.wxEVT_GRID_CELL_LCLICK
596 wxEVT_GRID_CELL_RCLICK
= windows2c
.wxEVT_GRID_CELL_RCLICK
597 wxEVT_GRID_LABEL_LCLICK
= windows2c
.wxEVT_GRID_LABEL_LCLICK
598 wxEVT_GRID_LABEL_RCLICK
= windows2c
.wxEVT_GRID_LABEL_RCLICK