]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/windows2.py
Version 0.4.1 for wxGTK
[wxWidgets.git] / utils / wxPython / src / gtk / windows2.py
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 *
13 import wxp
14 class wxGridCellPtr :
15 def __init__(self,this):
16 self.this = this
17 self.thisown = 0
18 def GetTextValue(self):
19 val = windows2c.wxGridCell_GetTextValue(self.this)
20 return val
21 def SetTextValue(self,arg0):
22 val = windows2c.wxGridCell_SetTextValue(self.this,arg0)
23 return val
24 def GetFont(self):
25 val = windows2c.wxGridCell_GetFont(self.this)
26 val = wxFontPtr(val)
27 return val
28 def SetFont(self,arg0):
29 val = windows2c.wxGridCell_SetFont(self.this,arg0.this)
30 return val
31 def GetTextColour(self):
32 val = windows2c.wxGridCell_GetTextColour(self.this)
33 val = wxColourPtr(val)
34 return val
35 def SetTextColour(self,arg0):
36 val = windows2c.wxGridCell_SetTextColour(self.this,arg0.this)
37 return val
38 def GetBackgroundColour(self):
39 val = windows2c.wxGridCell_GetBackgroundColour(self.this)
40 val = wxColourPtr(val)
41 return val
42 def SetBackgroundColour(self,arg0):
43 val = windows2c.wxGridCell_SetBackgroundColour(self.this,arg0.this)
44 return val
45 def GetBackgroundBrush(self):
46 val = windows2c.wxGridCell_GetBackgroundBrush(self.this)
47 val = wxBrushPtr(val)
48 return val
49 def GetAlignment(self):
50 val = windows2c.wxGridCell_GetAlignment(self.this)
51 return val
52 def SetAlignment(self,arg0):
53 val = windows2c.wxGridCell_SetAlignment(self.this,arg0)
54 return val
55 def GetCellBitmap(self):
56 val = windows2c.wxGridCell_GetCellBitmap(self.this)
57 val = wxBitmapPtr(val)
58 return val
59 def SetCellBitmap(self,arg0):
60 val = windows2c.wxGridCell_SetCellBitmap(self.this,arg0.this)
61 return val
62 def __repr__(self):
63 return "<C wxGridCell instance>"
64 class wxGridCell(wxGridCellPtr):
65 def __init__(self,this):
66 self.this = this
67
68
69
70
71 class wxGridPtr(wxPanelPtr):
72 def __init__(self,this):
73 self.this = this
74 self.thisown = 0
75 def AdjustScrollbars(self):
76 val = windows2c.wxGrid_AdjustScrollbars(self.this)
77 return val
78 def AppendCols(self,*args):
79 val = apply(windows2c.wxGrid_AppendCols,(self.this,)+args)
80 return val
81 def AppendRows(self,*args):
82 val = apply(windows2c.wxGrid_AppendRows,(self.this,)+args)
83 return val
84 def BeginBatch(self):
85 val = windows2c.wxGrid_BeginBatch(self.this)
86 return val
87 def CellHitTest(self,arg0,arg1):
88 val = windows2c.wxGrid_CellHitTest(self.this,arg0,arg1)
89 return val
90 def CreateGrid(self,arg0,arg1,*args):
91 val = apply(windows2c.wxGrid_CreateGrid,(self.this,arg0,arg1,)+args)
92 return val
93 def CurrentCellVisible(self):
94 val = windows2c.wxGrid_CurrentCellVisible(self.this)
95 return val
96 def DeleteCols(self,*args):
97 val = apply(windows2c.wxGrid_DeleteCols,(self.this,)+args)
98 return val
99 def DeleteRows(self,*args):
100 val = apply(windows2c.wxGrid_DeleteRows,(self.this,)+args)
101 return val
102 def EndBatch(self):
103 val = windows2c.wxGrid_EndBatch(self.this)
104 return val
105 def GetBatchCount(self):
106 val = windows2c.wxGrid_GetBatchCount(self.this)
107 return val
108 def GetCell(self,arg0,arg1):
109 val = windows2c.wxGrid_GetCell(self.this,arg0,arg1)
110 val = wxGridCellPtr(val)
111 return val
112 def GetCellAlignment(self,arg0,arg1):
113 val = windows2c.wxGrid_GetCellAlignment(self.this,arg0,arg1)
114 return val
115 def GetDefCellAlignment(self):
116 val = windows2c.wxGrid_GetDefCellAlignment(self.this)
117 return val
118 def GetCellBackgroundColour(self,arg0,arg1):
119 val = windows2c.wxGrid_GetCellBackgroundColour(self.this,arg0,arg1)
120 val = wxColourPtr(val)
121 return val
122 def GetDefCellBackgroundColour(self):
123 val = windows2c.wxGrid_GetDefCellBackgroundColour(self.this)
124 val = wxColourPtr(val)
125 return val
126 def GetCellTextColour(self,arg0,arg1):
127 val = windows2c.wxGrid_GetCellTextColour(self.this,arg0,arg1)
128 val = wxColourPtr(val)
129 return val
130 def GetDefCellTextColour(self):
131 val = windows2c.wxGrid_GetDefCellTextColour(self.this)
132 val = wxColourPtr(val)
133 return val
134 def GetCellTextFont(self,arg0,arg1):
135 val = windows2c.wxGrid_GetCellTextFont(self.this,arg0,arg1)
136 val = wxFontPtr(val)
137 return val
138 def GetDefCellTextFont(self):
139 val = windows2c.wxGrid_GetDefCellTextFont(self.this)
140 val = wxFontPtr(val)
141 return val
142 def GetCellValue(self,arg0,arg1):
143 val = windows2c.wxGrid_GetCellValue(self.this,arg0,arg1)
144 return val
145 def GetCols(self):
146 val = windows2c.wxGrid_GetCols(self.this)
147 return val
148 def GetColumnWidth(self,arg0):
149 val = windows2c.wxGrid_GetColumnWidth(self.this,arg0)
150 return val
151 def GetCurrentRect(self):
152 val = windows2c.wxGrid_GetCurrentRect(self.this)
153 val = wxRectPtr(val)
154 return val
155 def GetCursorColumn(self):
156 val = windows2c.wxGrid_GetCursorColumn(self.this)
157 return val
158 def GetCursorRow(self):
159 val = windows2c.wxGrid_GetCursorRow(self.this)
160 return val
161 def GetEditable(self):
162 val = windows2c.wxGrid_GetEditable(self.this)
163 return val
164 def GetHorizScrollBar(self):
165 val = windows2c.wxGrid_GetHorizScrollBar(self.this)
166 val = wxScrollBarPtr(val)
167 return val
168 def GetLabelAlignment(self,arg0):
169 val = windows2c.wxGrid_GetLabelAlignment(self.this,arg0)
170 return val
171 def GetLabelBackgroundColour(self):
172 val = windows2c.wxGrid_GetLabelBackgroundColour(self.this)
173 val = wxColourPtr(val)
174 return val
175 def GetLabelSize(self,arg0):
176 val = windows2c.wxGrid_GetLabelSize(self.this,arg0)
177 return val
178 def GetLabelTextColour(self):
179 val = windows2c.wxGrid_GetLabelTextColour(self.this)
180 val = wxColourPtr(val)
181 return val
182 def GetLabelTextFont(self):
183 val = windows2c.wxGrid_GetLabelTextFont(self.this)
184 val = wxFontPtr(val)
185 return val
186 def GetLabelValue(self,arg0,arg1):
187 val = windows2c.wxGrid_GetLabelValue(self.this,arg0,arg1)
188 return val
189 def GetRowHeight(self,arg0):
190 val = windows2c.wxGrid_GetRowHeight(self.this,arg0)
191 return val
192 def GetRows(self):
193 val = windows2c.wxGrid_GetRows(self.this)
194 return val
195 def GetScrollPosX(self):
196 val = windows2c.wxGrid_GetScrollPosX(self.this)
197 return val
198 def GetScrollPosY(self):
199 val = windows2c.wxGrid_GetScrollPosY(self.this)
200 return val
201 def GetTextItem(self):
202 val = windows2c.wxGrid_GetTextItem(self.this)
203 val = wxTextCtrlPtr(val)
204 return val
205 def GetVertScrollBar(self):
206 val = windows2c.wxGrid_GetVertScrollBar(self.this)
207 val = wxScrollBarPtr(val)
208 return val
209 def InsertCols(self,*args):
210 val = apply(windows2c.wxGrid_InsertCols,(self.this,)+args)
211 return val
212 def InsertRows(self,*args):
213 val = apply(windows2c.wxGrid_InsertRows,(self.this,)+args)
214 return val
215 def SetCellAlignment(self,arg0,arg1,arg2):
216 val = windows2c.wxGrid_SetCellAlignment(self.this,arg0,arg1,arg2)
217 return val
218 def SetDefCellAlignment(self,arg0):
219 val = windows2c.wxGrid_SetDefCellAlignment(self.this,arg0)
220 return val
221 def SetCellBackgroundColour(self,arg0,arg1,arg2):
222 val = windows2c.wxGrid_SetCellBackgroundColour(self.this,arg0.this,arg1,arg2)
223 return val
224 def SetDefCellBackgroundColour(self,arg0):
225 val = windows2c.wxGrid_SetDefCellBackgroundColour(self.this,arg0.this)
226 return val
227 def SetCellTextColour(self,arg0,arg1,arg2):
228 val = windows2c.wxGrid_SetCellTextColour(self.this,arg0.this,arg1,arg2)
229 return val
230 def SetDefCellTextColour(self,arg0):
231 val = windows2c.wxGrid_SetDefCellTextColour(self.this,arg0.this)
232 return val
233 def SetCellTextFont(self,arg0,arg1,arg2):
234 val = windows2c.wxGrid_SetCellTextFont(self.this,arg0.this,arg1,arg2)
235 return val
236 def SetDefCellTextFont(self,arg0):
237 val = windows2c.wxGrid_SetDefCellTextFont(self.this,arg0.this)
238 return val
239 def SetCellValue(self,arg0,arg1,arg2):
240 val = windows2c.wxGrid_SetCellValue(self.this,arg0,arg1,arg2)
241 return val
242 def SetColumnWidth(self,arg0,arg1):
243 val = windows2c.wxGrid_SetColumnWidth(self.this,arg0,arg1)
244 return val
245 def SetDividerPen(self,arg0):
246 val = windows2c.wxGrid_SetDividerPen(self.this,arg0.this)
247 return val
248 def SetEditable(self,arg0):
249 val = windows2c.wxGrid_SetEditable(self.this,arg0)
250 return val
251 def SetGridCursor(self,arg0,arg1):
252 val = windows2c.wxGrid_SetGridCursor(self.this,arg0,arg1)
253 return val
254 def SetLabelAlignment(self,arg0,arg1):
255 val = windows2c.wxGrid_SetLabelAlignment(self.this,arg0,arg1)
256 return val
257 def SetLabelBackgroundColour(self,arg0):
258 val = windows2c.wxGrid_SetLabelBackgroundColour(self.this,arg0.this)
259 return val
260 def SetLabelSize(self,arg0,arg1):
261 val = windows2c.wxGrid_SetLabelSize(self.this,arg0,arg1)
262 return val
263 def SetLabelTextColour(self,arg0):
264 val = windows2c.wxGrid_SetLabelTextColour(self.this,arg0.this)
265 return val
266 def SetLabelTextFont(self,arg0):
267 val = windows2c.wxGrid_SetLabelTextFont(self.this,arg0.this)
268 return val
269 def SetLabelValue(self,arg0,arg1,arg2):
270 val = windows2c.wxGrid_SetLabelValue(self.this,arg0,arg1,arg2)
271 return val
272 def SetRowHeight(self,arg0,arg1):
273 val = windows2c.wxGrid_SetRowHeight(self.this,arg0,arg1)
274 return val
275 def UpdateDimensions(self):
276 val = windows2c.wxGrid_UpdateDimensions(self.this)
277 return val
278 def __repr__(self):
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
284 except: pass
285 try: argl[1] = argl[1].this
286 except: pass
287 args = tuple(argl)
288 self.this = apply(windows2c.new_wxGrid,(arg0.this,arg1,)+args)
289 self.thisown = 1
290 wxp._StdWindowCallbacks(self)
291
292
293
294
295 class wxNotebookEventPtr(wxCommandEventPtr):
296 def __init__(self,this):
297 self.this = this
298 self.thisown = 0
299 def GetSelection(self):
300 val = windows2c.wxNotebookEvent_GetSelection(self.this)
301 return val
302 def GetOldSelection(self):
303 val = windows2c.wxNotebookEvent_GetOldSelection(self.this)
304 return val
305 def __repr__(self):
306 return "<C wxNotebookEvent instance>"
307 class wxNotebookEvent(wxNotebookEventPtr):
308 def __init__(self,this):
309 self.this = this
310
311
312
313
314 class wxNotebookPtr(wxControlPtr):
315 def __init__(self,this):
316 self.this = this
317 self.thisown = 0
318 def GetPageCount(self):
319 val = windows2c.wxNotebook_GetPageCount(self.this)
320 return val
321 def SetSelection(self,arg0):
322 val = windows2c.wxNotebook_SetSelection(self.this,arg0)
323 return val
324 def AdvanceSelection(self,*args):
325 val = apply(windows2c.wxNotebook_AdvanceSelection,(self.this,)+args)
326 return val
327 def GetSelection(self):
328 val = windows2c.wxNotebook_GetSelection(self.this)
329 return val
330 def SetPageText(self,arg0,arg1):
331 val = windows2c.wxNotebook_SetPageText(self.this,arg0,arg1)
332 return val
333 def GetPageText(self,arg0):
334 val = windows2c.wxNotebook_GetPageText(self.this,arg0)
335 return val
336 def SetImageList(self,arg0):
337 val = windows2c.wxNotebook_SetImageList(self.this,arg0)
338 return val
339 def GetImageList(self):
340 val = windows2c.wxNotebook_GetImageList(self.this)
341 return val
342 def GetPageImage(self,arg0):
343 val = windows2c.wxNotebook_GetPageImage(self.this,arg0)
344 return val
345 def SetPageImage(self,arg0,arg1):
346 val = windows2c.wxNotebook_SetPageImage(self.this,arg0,arg1)
347 return val
348 def GetRowCount(self):
349 val = windows2c.wxNotebook_GetRowCount(self.this)
350 return val
351 def DeletePage(self,arg0):
352 val = windows2c.wxNotebook_DeletePage(self.this,arg0)
353 return val
354 def DeleteAllPages(self):
355 val = windows2c.wxNotebook_DeleteAllPages(self.this)
356 return val
357 def AddPage(self,arg0,arg1,*args):
358 val = apply(windows2c.wxNotebook_AddPage,(self.this,arg0.this,arg1,)+args)
359 return val
360 def GetPage(self,arg0):
361 val = windows2c.wxNotebook_GetPage(self.this,arg0)
362 return val
363 def __repr__(self):
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
369 except: pass
370 try: argl[1] = argl[1].this
371 except: pass
372 args = tuple(argl)
373 self.this = apply(windows2c.new_wxNotebook,(arg0.this,arg1,)+args)
374 self.thisown = 1
375 wxp._StdWindowCallbacks(self)
376
377
378
379
380 class wxSplitterWindowPtr(wxWindowPtr):
381 def __init__(self,this):
382 self.this = this
383 self.thisown = 0
384 def GetMinimumPaneSize(self):
385 val = windows2c.wxSplitterWindow_GetMinimumPaneSize(self.this)
386 return val
387 def GetSashPosition(self):
388 val = windows2c.wxSplitterWindow_GetSashPosition(self.this)
389 return val
390 def GetSplitMode(self):
391 val = windows2c.wxSplitterWindow_GetSplitMode(self.this)
392 return val
393 def GetWindow1(self):
394 val = windows2c.wxSplitterWindow_GetWindow1(self.this)
395 val = wxWindowPtr(val)
396 return val
397 def GetWindow2(self):
398 val = windows2c.wxSplitterWindow_GetWindow2(self.this)
399 val = wxWindowPtr(val)
400 return val
401 def Initialize(self,arg0):
402 val = windows2c.wxSplitterWindow_Initialize(self.this,arg0.this)
403 return val
404 def IsSplit(self):
405 val = windows2c.wxSplitterWindow_IsSplit(self.this)
406 return val
407 def SetSashPosition(self,arg0,*args):
408 val = apply(windows2c.wxSplitterWindow_SetSashPosition,(self.this,arg0,)+args)
409 return val
410 def SetMinimumPaneSize(self,arg0):
411 val = windows2c.wxSplitterWindow_SetMinimumPaneSize(self.this,arg0)
412 return val
413 def SetSplitMode(self,arg0):
414 val = windows2c.wxSplitterWindow_SetSplitMode(self.this,arg0)
415 return val
416 def SplitHorizontally(self,arg0,arg1,*args):
417 val = apply(windows2c.wxSplitterWindow_SplitHorizontally,(self.this,arg0.this,arg1.this,)+args)
418 return val
419 def SplitVertically(self,arg0,arg1,*args):
420 val = apply(windows2c.wxSplitterWindow_SplitVertically,(self.this,arg0.this,arg1.this,)+args)
421 return val
422 def Unsplit(self,*args):
423 argl = map(None,args)
424 try: argl[0] = argl[0].this
425 except: pass
426 args = tuple(argl)
427 val = apply(windows2c.wxSplitterWindow_Unsplit,(self.this,)+args)
428 return val
429 def __repr__(self):
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
435 except: pass
436 try: argl[1] = argl[1].this
437 except: pass
438 args = tuple(argl)
439 self.this = apply(windows2c.new_wxSplitterWindow,(arg0.this,arg1,)+args)
440 self.thisown = 1
441 wxp._StdWindowCallbacks(self)
442
443
444
445
446
447
448 #-------------- FUNCTION WRAPPERS ------------------
449
450
451
452 #-------------- VARIABLE WRAPPERS ------------------
453
454 wxGRID_TEXT_CTRL = windows2c.wxGRID_TEXT_CTRL
455 wxGRID_HSCROLL = windows2c.wxGRID_HSCROLL
456 wxGRID_VSCROLL = windows2c.wxGRID_VSCROLL