1 # This file was created automatically by SWIG.
10 from controls
import *
15 def __init__(self
,this
):
18 def GetTextValue(self
):
19 val
= windows2c
.wxGridCell_GetTextValue(self
.this
)
21 def SetTextValue(self
,arg0
):
22 val
= windows2c
.wxGridCell_SetTextValue(self
.this
,arg0
)
25 val
= windows2c
.wxGridCell_GetFont(self
.this
)
28 def SetFont(self
,arg0
):
29 val
= windows2c
.wxGridCell_SetFont(self
.this
,arg0
.this
)
31 def GetTextColour(self
):
32 val
= windows2c
.wxGridCell_GetTextColour(self
.this
)
33 val
= wxColourPtr(val
)
35 def SetTextColour(self
,arg0
):
36 val
= windows2c
.wxGridCell_SetTextColour(self
.this
,arg0
.this
)
38 def GetBackgroundColour(self
):
39 val
= windows2c
.wxGridCell_GetBackgroundColour(self
.this
)
40 val
= wxColourPtr(val
)
42 def SetBackgroundColour(self
,arg0
):
43 val
= windows2c
.wxGridCell_SetBackgroundColour(self
.this
,arg0
.this
)
45 def GetBackgroundBrush(self
):
46 val
= windows2c
.wxGridCell_GetBackgroundBrush(self
.this
)
49 def GetAlignment(self
):
50 val
= windows2c
.wxGridCell_GetAlignment(self
.this
)
52 def SetAlignment(self
,arg0
):
53 val
= windows2c
.wxGridCell_SetAlignment(self
.this
,arg0
)
55 def GetCellBitmap(self
):
56 val
= windows2c
.wxGridCell_GetCellBitmap(self
.this
)
57 val
= wxBitmapPtr(val
)
59 def SetCellBitmap(self
,arg0
):
60 val
= windows2c
.wxGridCell_SetCellBitmap(self
.this
,arg0
.this
)
63 return "<C wxGridCell instance>"
64 class wxGridCell(wxGridCellPtr
):
65 def __init__(self
,this
):
71 class wxGridPtr(wxPanelPtr
):
72 def __init__(self
,this
):
75 def AdjustScrollbars(self
):
76 val
= windows2c
.wxGrid_AdjustScrollbars(self
.this
)
78 def AppendCols(self
,*args
):
79 val
= apply(windows2c
.wxGrid_AppendCols
,(self
.this
,)+args
)
81 def AppendRows(self
,*args
):
82 val
= apply(windows2c
.wxGrid_AppendRows
,(self
.this
,)+args
)
85 val
= windows2c
.wxGrid_BeginBatch(self
.this
)
87 def CellHitTest(self
,arg0
,arg1
):
88 val
= windows2c
.wxGrid_CellHitTest(self
.this
,arg0
,arg1
)
90 def CreateGrid(self
,arg0
,arg1
,*args
):
91 val
= apply(windows2c
.wxGrid_CreateGrid
,(self
.this
,arg0
,arg1
,)+args
)
93 def CurrentCellVisible(self
):
94 val
= windows2c
.wxGrid_CurrentCellVisible(self
.this
)
96 def DeleteCols(self
,*args
):
97 val
= apply(windows2c
.wxGrid_DeleteCols
,(self
.this
,)+args
)
99 def DeleteRows(self
,*args
):
100 val
= apply(windows2c
.wxGrid_DeleteRows
,(self
.this
,)+args
)
103 val
= windows2c
.wxGrid_EndBatch(self
.this
)
105 def GetBatchCount(self
):
106 val
= windows2c
.wxGrid_GetBatchCount(self
.this
)
108 def GetCell(self
,arg0
,arg1
):
109 val
= windows2c
.wxGrid_GetCell(self
.this
,arg0
,arg1
)
110 val
= wxGridCellPtr(val
)
112 def GetCellAlignment(self
,arg0
,arg1
):
113 val
= windows2c
.wxGrid_GetCellAlignment(self
.this
,arg0
,arg1
)
115 def GetDefCellAlignment(self
):
116 val
= windows2c
.wxGrid_GetDefCellAlignment(self
.this
)
118 def GetCellBackgroundColour(self
,arg0
,arg1
):
119 val
= windows2c
.wxGrid_GetCellBackgroundColour(self
.this
,arg0
,arg1
)
120 val
= wxColourPtr(val
)
122 def GetDefCellBackgroundColour(self
):
123 val
= windows2c
.wxGrid_GetDefCellBackgroundColour(self
.this
)
124 val
= wxColourPtr(val
)
126 def GetCellTextColour(self
,arg0
,arg1
):
127 val
= windows2c
.wxGrid_GetCellTextColour(self
.this
,arg0
,arg1
)
128 val
= wxColourPtr(val
)
130 def GetDefCellTextColour(self
):
131 val
= windows2c
.wxGrid_GetDefCellTextColour(self
.this
)
132 val
= wxColourPtr(val
)
134 def GetCellTextFont(self
,arg0
,arg1
):
135 val
= windows2c
.wxGrid_GetCellTextFont(self
.this
,arg0
,arg1
)
138 def GetDefCellTextFont(self
):
139 val
= windows2c
.wxGrid_GetDefCellTextFont(self
.this
)
142 def GetCellValue(self
,arg0
,arg1
):
143 val
= windows2c
.wxGrid_GetCellValue(self
.this
,arg0
,arg1
)
146 val
= windows2c
.wxGrid_GetCols(self
.this
)
148 def GetColumnWidth(self
,arg0
):
149 val
= windows2c
.wxGrid_GetColumnWidth(self
.this
,arg0
)
151 def GetCurrentRect(self
):
152 val
= windows2c
.wxGrid_GetCurrentRect(self
.this
)
155 def GetCursorColumn(self
):
156 val
= windows2c
.wxGrid_GetCursorColumn(self
.this
)
158 def GetCursorRow(self
):
159 val
= windows2c
.wxGrid_GetCursorRow(self
.this
)
161 def GetEditable(self
):
162 val
= windows2c
.wxGrid_GetEditable(self
.this
)
164 def GetHorizScrollBar(self
):
165 val
= windows2c
.wxGrid_GetHorizScrollBar(self
.this
)
166 val
= wxScrollBarPtr(val
)
168 def GetLabelAlignment(self
,arg0
):
169 val
= windows2c
.wxGrid_GetLabelAlignment(self
.this
,arg0
)
171 def GetLabelBackgroundColour(self
):
172 val
= windows2c
.wxGrid_GetLabelBackgroundColour(self
.this
)
173 val
= wxColourPtr(val
)
175 def GetLabelSize(self
,arg0
):
176 val
= windows2c
.wxGrid_GetLabelSize(self
.this
,arg0
)
178 def GetLabelTextColour(self
):
179 val
= windows2c
.wxGrid_GetLabelTextColour(self
.this
)
180 val
= wxColourPtr(val
)
182 def GetLabelTextFont(self
):
183 val
= windows2c
.wxGrid_GetLabelTextFont(self
.this
)
186 def GetLabelValue(self
,arg0
,arg1
):
187 val
= windows2c
.wxGrid_GetLabelValue(self
.this
,arg0
,arg1
)
189 def GetRowHeight(self
,arg0
):
190 val
= windows2c
.wxGrid_GetRowHeight(self
.this
,arg0
)
193 val
= windows2c
.wxGrid_GetRows(self
.this
)
195 def GetScrollPosX(self
):
196 val
= windows2c
.wxGrid_GetScrollPosX(self
.this
)
198 def GetScrollPosY(self
):
199 val
= windows2c
.wxGrid_GetScrollPosY(self
.this
)
201 def GetTextItem(self
):
202 val
= windows2c
.wxGrid_GetTextItem(self
.this
)
203 val
= wxTextCtrlPtr(val
)
205 def GetVertScrollBar(self
):
206 val
= windows2c
.wxGrid_GetVertScrollBar(self
.this
)
207 val
= wxScrollBarPtr(val
)
209 def InsertCols(self
,*args
):
210 val
= apply(windows2c
.wxGrid_InsertCols
,(self
.this
,)+args
)
212 def InsertRows(self
,*args
):
213 val
= apply(windows2c
.wxGrid_InsertRows
,(self
.this
,)+args
)
215 def SetCellAlignment(self
,arg0
,arg1
,arg2
):
216 val
= windows2c
.wxGrid_SetCellAlignment(self
.this
,arg0
,arg1
,arg2
)
218 def SetDefCellAlignment(self
,arg0
):
219 val
= windows2c
.wxGrid_SetDefCellAlignment(self
.this
,arg0
)
221 def SetCellBackgroundColour(self
,arg0
,arg1
,arg2
):
222 val
= windows2c
.wxGrid_SetCellBackgroundColour(self
.this
,arg0
.this
,arg1
,arg2
)
224 def SetDefCellBackgroundColour(self
,arg0
):
225 val
= windows2c
.wxGrid_SetDefCellBackgroundColour(self
.this
,arg0
.this
)
227 def SetCellTextColour(self
,arg0
,arg1
,arg2
):
228 val
= windows2c
.wxGrid_SetCellTextColour(self
.this
,arg0
.this
,arg1
,arg2
)
230 def SetDefCellTextColour(self
,arg0
):
231 val
= windows2c
.wxGrid_SetDefCellTextColour(self
.this
,arg0
.this
)
233 def SetCellTextFont(self
,arg0
,arg1
,arg2
):
234 val
= windows2c
.wxGrid_SetCellTextFont(self
.this
,arg0
.this
,arg1
,arg2
)
236 def SetDefCellTextFont(self
,arg0
):
237 val
= windows2c
.wxGrid_SetDefCellTextFont(self
.this
,arg0
.this
)
239 def SetCellValue(self
,arg0
,arg1
,arg2
):
240 val
= windows2c
.wxGrid_SetCellValue(self
.this
,arg0
,arg1
,arg2
)
242 def SetColumnWidth(self
,arg0
,arg1
):
243 val
= windows2c
.wxGrid_SetColumnWidth(self
.this
,arg0
,arg1
)
245 def SetDividerPen(self
,arg0
):
246 val
= windows2c
.wxGrid_SetDividerPen(self
.this
,arg0
.this
)
248 def SetEditable(self
,arg0
):
249 val
= windows2c
.wxGrid_SetEditable(self
.this
,arg0
)
251 def SetGridCursor(self
,arg0
,arg1
):
252 val
= windows2c
.wxGrid_SetGridCursor(self
.this
,arg0
,arg1
)
254 def SetLabelAlignment(self
,arg0
,arg1
):
255 val
= windows2c
.wxGrid_SetLabelAlignment(self
.this
,arg0
,arg1
)
257 def SetLabelBackgroundColour(self
,arg0
):
258 val
= windows2c
.wxGrid_SetLabelBackgroundColour(self
.this
,arg0
.this
)
260 def SetLabelSize(self
,arg0
,arg1
):
261 val
= windows2c
.wxGrid_SetLabelSize(self
.this
,arg0
,arg1
)
263 def SetLabelTextColour(self
,arg0
):
264 val
= windows2c
.wxGrid_SetLabelTextColour(self
.this
,arg0
.this
)
266 def SetLabelTextFont(self
,arg0
):
267 val
= windows2c
.wxGrid_SetLabelTextFont(self
.this
,arg0
.this
)
269 def SetLabelValue(self
,arg0
,arg1
,arg2
):
270 val
= windows2c
.wxGrid_SetLabelValue(self
.this
,arg0
,arg1
,arg2
)
272 def SetRowHeight(self
,arg0
,arg1
):
273 val
= windows2c
.wxGrid_SetRowHeight(self
.this
,arg0
,arg1
)
275 def UpdateDimensions(self
):
276 val
= windows2c
.wxGrid_UpdateDimensions(self
.this
)
279 return "<C wxGrid instance>"
280 class wxGrid(wxGridPtr
):
281 def __init__(self
,arg0
,arg1
,*args
) :
282 argl
= map(None,args
)
283 try: argl
[0] = argl
[0].this
285 try: argl
[1] = argl
[1].this
288 self
.this
= apply(windows2c
.new_wxGrid
,(arg0
.this
,arg1
,)+args
)
290 wxp
._StdWindowCallbacks
(self
)
295 class wxNotebookEventPtr(wxCommandEventPtr
):
296 def __init__(self
,this
):
299 def GetSelection(self
):
300 val
= windows2c
.wxNotebookEvent_GetSelection(self
.this
)
302 def GetOldSelection(self
):
303 val
= windows2c
.wxNotebookEvent_GetOldSelection(self
.this
)
306 return "<C wxNotebookEvent instance>"
307 class wxNotebookEvent(wxNotebookEventPtr
):
308 def __init__(self
,this
):
314 class wxNotebookPtr(wxControlPtr
):
315 def __init__(self
,this
):
318 def GetPageCount(self
):
319 val
= windows2c
.wxNotebook_GetPageCount(self
.this
)
321 def SetSelection(self
,arg0
):
322 val
= windows2c
.wxNotebook_SetSelection(self
.this
,arg0
)
324 def AdvanceSelection(self
,*args
):
325 val
= apply(windows2c
.wxNotebook_AdvanceSelection
,(self
.this
,)+args
)
327 def GetSelection(self
):
328 val
= windows2c
.wxNotebook_GetSelection(self
.this
)
330 def SetPageText(self
,arg0
,arg1
):
331 val
= windows2c
.wxNotebook_SetPageText(self
.this
,arg0
,arg1
)
333 def GetPageText(self
,arg0
):
334 val
= windows2c
.wxNotebook_GetPageText(self
.this
,arg0
)
336 def SetImageList(self
,arg0
):
337 val
= windows2c
.wxNotebook_SetImageList(self
.this
,arg0
)
339 def GetImageList(self
):
340 val
= windows2c
.wxNotebook_GetImageList(self
.this
)
342 def GetPageImage(self
,arg0
):
343 val
= windows2c
.wxNotebook_GetPageImage(self
.this
,arg0
)
345 def SetPageImage(self
,arg0
,arg1
):
346 val
= windows2c
.wxNotebook_SetPageImage(self
.this
,arg0
,arg1
)
348 def GetRowCount(self
):
349 val
= windows2c
.wxNotebook_GetRowCount(self
.this
)
351 def DeletePage(self
,arg0
):
352 val
= windows2c
.wxNotebook_DeletePage(self
.this
,arg0
)
354 def DeleteAllPages(self
):
355 val
= windows2c
.wxNotebook_DeleteAllPages(self
.this
)
357 def AddPage(self
,arg0
,arg1
,*args
):
358 val
= apply(windows2c
.wxNotebook_AddPage
,(self
.this
,arg0
.this
,arg1
,)+args
)
360 def GetPage(self
,arg0
):
361 val
= windows2c
.wxNotebook_GetPage(self
.this
,arg0
)
364 return "<C wxNotebook instance>"
365 class wxNotebook(wxNotebookPtr
):
366 def __init__(self
,arg0
,arg1
,*args
) :
367 argl
= map(None,args
)
368 try: argl
[0] = argl
[0].this
370 try: argl
[1] = argl
[1].this
373 self
.this
= apply(windows2c
.new_wxNotebook
,(arg0
.this
,arg1
,)+args
)
375 wxp
._StdWindowCallbacks
(self
)
380 class wxSplitterWindowPtr(wxWindowPtr
):
381 def __init__(self
,this
):
384 def GetMinimumPaneSize(self
):
385 val
= windows2c
.wxSplitterWindow_GetMinimumPaneSize(self
.this
)
387 def GetSashPosition(self
):
388 val
= windows2c
.wxSplitterWindow_GetSashPosition(self
.this
)
390 def GetSplitMode(self
):
391 val
= windows2c
.wxSplitterWindow_GetSplitMode(self
.this
)
393 def GetWindow1(self
):
394 val
= windows2c
.wxSplitterWindow_GetWindow1(self
.this
)
395 val
= wxWindowPtr(val
)
397 def GetWindow2(self
):
398 val
= windows2c
.wxSplitterWindow_GetWindow2(self
.this
)
399 val
= wxWindowPtr(val
)
401 def Initialize(self
,arg0
):
402 val
= windows2c
.wxSplitterWindow_Initialize(self
.this
,arg0
.this
)
405 val
= windows2c
.wxSplitterWindow_IsSplit(self
.this
)
407 def SetSashPosition(self
,arg0
,*args
):
408 val
= apply(windows2c
.wxSplitterWindow_SetSashPosition
,(self
.this
,arg0
,)+args
)
410 def SetMinimumPaneSize(self
,arg0
):
411 val
= windows2c
.wxSplitterWindow_SetMinimumPaneSize(self
.this
,arg0
)
413 def SetSplitMode(self
,arg0
):
414 val
= windows2c
.wxSplitterWindow_SetSplitMode(self
.this
,arg0
)
416 def SplitHorizontally(self
,arg0
,arg1
,*args
):
417 val
= apply(windows2c
.wxSplitterWindow_SplitHorizontally
,(self
.this
,arg0
.this
,arg1
.this
,)+args
)
419 def SplitVertically(self
,arg0
,arg1
,*args
):
420 val
= apply(windows2c
.wxSplitterWindow_SplitVertically
,(self
.this
,arg0
.this
,arg1
.this
,)+args
)
422 def Unsplit(self
,*args
):
423 argl
= map(None,args
)
424 try: argl
[0] = argl
[0].this
427 val
= apply(windows2c
.wxSplitterWindow_Unsplit
,(self
.this
,)+args
)
430 return "<C wxSplitterWindow instance>"
431 class wxSplitterWindow(wxSplitterWindowPtr
):
432 def __init__(self
,arg0
,arg1
,*args
) :
433 argl
= map(None,args
)
434 try: argl
[0] = argl
[0].this
436 try: argl
[1] = argl
[1].this
439 self
.this
= apply(windows2c
.new_wxSplitterWindow
,(arg0
.this
,arg1
,)+args
)
441 wxp
._StdWindowCallbacks
(self
)
448 #-------------- FUNCTION WRAPPERS ------------------
452 #-------------- VARIABLE WRAPPERS ------------------
454 wxGRID_TEXT_CTRL
= windows2c
.wxGRID_TEXT_CTRL
455 wxGRID_HSCROLL
= windows2c
.wxGRID_HSCROLL
456 wxGRID_VSCROLL
= windows2c
.wxGRID_VSCROLL