]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/windows.py
New wxHtml stuff, including a TagHandler for placing wxPython widgets
[wxWidgets.git] / utils / wxPython / src / msw / windows.py
1 # This file was created automatically by SWIG.
2 import windowsc
3
4 from misc import *
5
6 from gdi import *
7 import wx
8
9 def wxDLG_PNT(win, point_or_x, y=None):
10 if y is None:
11 return win.ConvertDialogPointToPixels(point_or_x)
12 else:
13 return win.ConvertDialogPointToPixels(wxPoint(point_or_x, y))
14
15 def wxDLG_SZE(win, size_width, height=None):
16 if height is None:
17 return win.ConvertDialogSizeToPixels(size_width)
18 else:
19 return win.ConvertDialogSizeToPixels(wxSize(size_width, height))
20
21 class wxEvtHandlerPtr :
22 def __init__(self,this):
23 self.this = this
24 self.thisown = 0
25 def ProcessEvent(self, *_args, **_kwargs):
26 val = apply(windowsc.wxEvtHandler_ProcessEvent,(self,) + _args, _kwargs)
27 return val
28 def Connect(self, *_args, **_kwargs):
29 val = apply(windowsc.wxEvtHandler_Connect,(self,) + _args, _kwargs)
30 return val
31 def __repr__(self):
32 return "<C wxEvtHandler instance at %s>" % (self.this,)
33 class wxEvtHandler(wxEvtHandlerPtr):
34 def __init__(self,this):
35 self.this = this
36
37
38
39
40 class wxWindowPtr(wxEvtHandlerPtr):
41 def __init__(self,this):
42 self.this = this
43 self.thisown = 0
44 def CaptureMouse(self, *_args, **_kwargs):
45 val = apply(windowsc.wxWindow_CaptureMouse,(self,) + _args, _kwargs)
46 return val
47 def Center(self, *_args, **_kwargs):
48 val = apply(windowsc.wxWindow_Center,(self,) + _args, _kwargs)
49 return val
50 def Centre(self, *_args, **_kwargs):
51 val = apply(windowsc.wxWindow_Centre,(self,) + _args, _kwargs)
52 return val
53 def CentreOnParent(self, *_args, **_kwargs):
54 val = apply(windowsc.wxWindow_CentreOnParent,(self,) + _args, _kwargs)
55 return val
56 def CenterOnParent(self, *_args, **_kwargs):
57 val = apply(windowsc.wxWindow_CenterOnParent,(self,) + _args, _kwargs)
58 return val
59 def ClientToScreenXY(self, *_args, **_kwargs):
60 val = apply(windowsc.wxWindow_ClientToScreenXY,(self,) + _args, _kwargs)
61 return val
62 def ClientToScreen(self, *_args, **_kwargs):
63 val = apply(windowsc.wxWindow_ClientToScreen,(self,) + _args, _kwargs)
64 if val: val = wxPointPtr(val) ; val.thisown = 1
65 return val
66 def Close(self, *_args, **_kwargs):
67 val = apply(windowsc.wxWindow_Close,(self,) + _args, _kwargs)
68 return val
69 def Destroy(self, *_args, **_kwargs):
70 val = apply(windowsc.wxWindow_Destroy,(self,) + _args, _kwargs)
71 return val
72 def DestroyChildren(self, *_args, **_kwargs):
73 val = apply(windowsc.wxWindow_DestroyChildren,(self,) + _args, _kwargs)
74 return val
75 def DragAcceptFiles(self, *_args, **_kwargs):
76 val = apply(windowsc.wxWindow_DragAcceptFiles,(self,) + _args, _kwargs)
77 return val
78 def Enable(self, *_args, **_kwargs):
79 val = apply(windowsc.wxWindow_Enable,(self,) + _args, _kwargs)
80 return val
81 def FindWindowById(self, *_args, **_kwargs):
82 val = apply(windowsc.wxWindow_FindWindowById,(self,) + _args, _kwargs)
83 if val: val = wxWindowPtr(val)
84 return val
85 def FindWindowByName(self, *_args, **_kwargs):
86 val = apply(windowsc.wxWindow_FindWindowByName,(self,) + _args, _kwargs)
87 if val: val = wxWindowPtr(val)
88 return val
89 def Fit(self, *_args, **_kwargs):
90 val = apply(windowsc.wxWindow_Fit,(self,) + _args, _kwargs)
91 return val
92 def GetBackgroundColour(self, *_args, **_kwargs):
93 val = apply(windowsc.wxWindow_GetBackgroundColour,(self,) + _args, _kwargs)
94 if val: val = wxColourPtr(val) ; val.thisown = 1
95 return val
96 def GetChildren(self, *_args, **_kwargs):
97 val = apply(windowsc.wxWindow_GetChildren,(self,) + _args, _kwargs)
98 return val
99 def GetCharHeight(self, *_args, **_kwargs):
100 val = apply(windowsc.wxWindow_GetCharHeight,(self,) + _args, _kwargs)
101 return val
102 def GetCharWidth(self, *_args, **_kwargs):
103 val = apply(windowsc.wxWindow_GetCharWidth,(self,) + _args, _kwargs)
104 return val
105 def GetClientSizeTuple(self, *_args, **_kwargs):
106 val = apply(windowsc.wxWindow_GetClientSizeTuple,(self,) + _args, _kwargs)
107 return val
108 def GetClientSize(self, *_args, **_kwargs):
109 val = apply(windowsc.wxWindow_GetClientSize,(self,) + _args, _kwargs)
110 if val: val = wxSizePtr(val) ; val.thisown = 1
111 return val
112 def GetConstraints(self, *_args, **_kwargs):
113 val = apply(windowsc.wxWindow_GetConstraints,(self,) + _args, _kwargs)
114 if val: val = wxLayoutConstraintsPtr(val)
115 return val
116 def GetEventHandler(self, *_args, **_kwargs):
117 val = apply(windowsc.wxWindow_GetEventHandler,(self,) + _args, _kwargs)
118 if val: val = wxEvtHandlerPtr(val)
119 return val
120 def GetFont(self, *_args, **_kwargs):
121 val = apply(windowsc.wxWindow_GetFont,(self,) + _args, _kwargs)
122 if val: val = wxFontPtr(val)
123 return val
124 def GetForegroundColour(self, *_args, **_kwargs):
125 val = apply(windowsc.wxWindow_GetForegroundColour,(self,) + _args, _kwargs)
126 if val: val = wxColourPtr(val) ; val.thisown = 1
127 return val
128 def GetGrandParent(self, *_args, **_kwargs):
129 val = apply(windowsc.wxWindow_GetGrandParent,(self,) + _args, _kwargs)
130 if val: val = wxWindowPtr(val)
131 return val
132 def GetId(self, *_args, **_kwargs):
133 val = apply(windowsc.wxWindow_GetId,(self,) + _args, _kwargs)
134 return val
135 def GetLabel(self, *_args, **_kwargs):
136 val = apply(windowsc.wxWindow_GetLabel,(self,) + _args, _kwargs)
137 return val
138 def SetLabel(self, *_args, **_kwargs):
139 val = apply(windowsc.wxWindow_SetLabel,(self,) + _args, _kwargs)
140 return val
141 def GetName(self, *_args, **_kwargs):
142 val = apply(windowsc.wxWindow_GetName,(self,) + _args, _kwargs)
143 return val
144 def GetParent(self, *_args, **_kwargs):
145 val = apply(windowsc.wxWindow_GetParent,(self,) + _args, _kwargs)
146 if val: val = wxWindowPtr(val)
147 return val
148 def GetPositionTuple(self, *_args, **_kwargs):
149 val = apply(windowsc.wxWindow_GetPositionTuple,(self,) + _args, _kwargs)
150 return val
151 def GetPosition(self, *_args, **_kwargs):
152 val = apply(windowsc.wxWindow_GetPosition,(self,) + _args, _kwargs)
153 if val: val = wxPointPtr(val) ; val.thisown = 1
154 return val
155 def GetRect(self, *_args, **_kwargs):
156 val = apply(windowsc.wxWindow_GetRect,(self,) + _args, _kwargs)
157 if val: val = wxRectPtr(val) ; val.thisown = 1
158 return val
159 def GetScrollThumb(self, *_args, **_kwargs):
160 val = apply(windowsc.wxWindow_GetScrollThumb,(self,) + _args, _kwargs)
161 return val
162 def GetScrollPos(self, *_args, **_kwargs):
163 val = apply(windowsc.wxWindow_GetScrollPos,(self,) + _args, _kwargs)
164 return val
165 def GetScrollRange(self, *_args, **_kwargs):
166 val = apply(windowsc.wxWindow_GetScrollRange,(self,) + _args, _kwargs)
167 return val
168 def GetSizeTuple(self, *_args, **_kwargs):
169 val = apply(windowsc.wxWindow_GetSizeTuple,(self,) + _args, _kwargs)
170 return val
171 def GetSize(self, *_args, **_kwargs):
172 val = apply(windowsc.wxWindow_GetSize,(self,) + _args, _kwargs)
173 if val: val = wxSizePtr(val) ; val.thisown = 1
174 return val
175 def GetTextExtent(self, *_args, **_kwargs):
176 val = apply(windowsc.wxWindow_GetTextExtent,(self,) + _args, _kwargs)
177 return val
178 def GetFullTextExtent(self, *_args, **_kwargs):
179 val = apply(windowsc.wxWindow_GetFullTextExtent,(self,) + _args, _kwargs)
180 return val
181 def GetTitle(self, *_args, **_kwargs):
182 val = apply(windowsc.wxWindow_GetTitle,(self,) + _args, _kwargs)
183 return val
184 def GetUpdateRegion(self, *_args, **_kwargs):
185 val = apply(windowsc.wxWindow_GetUpdateRegion,(self,) + _args, _kwargs)
186 if val: val = wxRegionPtr(val) ; val.thisown = 1
187 return val
188 def GetWindowStyleFlag(self, *_args, **_kwargs):
189 val = apply(windowsc.wxWindow_GetWindowStyleFlag,(self,) + _args, _kwargs)
190 return val
191 def Hide(self, *_args, **_kwargs):
192 val = apply(windowsc.wxWindow_Hide,(self,) + _args, _kwargs)
193 return val
194 def InitDialog(self, *_args, **_kwargs):
195 val = apply(windowsc.wxWindow_InitDialog,(self,) + _args, _kwargs)
196 return val
197 def IsEnabled(self, *_args, **_kwargs):
198 val = apply(windowsc.wxWindow_IsEnabled,(self,) + _args, _kwargs)
199 return val
200 def IsRetained(self, *_args, **_kwargs):
201 val = apply(windowsc.wxWindow_IsRetained,(self,) + _args, _kwargs)
202 return val
203 def IsShown(self, *_args, **_kwargs):
204 val = apply(windowsc.wxWindow_IsShown,(self,) + _args, _kwargs)
205 return val
206 def IsTopLevel(self, *_args, **_kwargs):
207 val = apply(windowsc.wxWindow_IsTopLevel,(self,) + _args, _kwargs)
208 return val
209 def Layout(self, *_args, **_kwargs):
210 val = apply(windowsc.wxWindow_Layout,(self,) + _args, _kwargs)
211 return val
212 def LoadFromResource(self, *_args, **_kwargs):
213 val = apply(windowsc.wxWindow_LoadFromResource,(self,) + _args, _kwargs)
214 return val
215 def Lower(self, *_args, **_kwargs):
216 val = apply(windowsc.wxWindow_Lower,(self,) + _args, _kwargs)
217 return val
218 def MakeModal(self, *_args, **_kwargs):
219 val = apply(windowsc.wxWindow_MakeModal,(self,) + _args, _kwargs)
220 return val
221 def MoveXY(self, *_args, **_kwargs):
222 val = apply(windowsc.wxWindow_MoveXY,(self,) + _args, _kwargs)
223 return val
224 def Move(self, *_args, **_kwargs):
225 val = apply(windowsc.wxWindow_Move,(self,) + _args, _kwargs)
226 return val
227 def PopEventHandler(self, *_args, **_kwargs):
228 val = apply(windowsc.wxWindow_PopEventHandler,(self,) + _args, _kwargs)
229 if val: val = wxEvtHandlerPtr(val)
230 return val
231 def PushEventHandler(self, *_args, **_kwargs):
232 val = apply(windowsc.wxWindow_PushEventHandler,(self,) + _args, _kwargs)
233 return val
234 def PopupMenuXY(self, *_args, **_kwargs):
235 val = apply(windowsc.wxWindow_PopupMenuXY,(self,) + _args, _kwargs)
236 return val
237 def PopupMenu(self, *_args, **_kwargs):
238 val = apply(windowsc.wxWindow_PopupMenu,(self,) + _args, _kwargs)
239 return val
240 def Raise(self, *_args, **_kwargs):
241 val = apply(windowsc.wxWindow_Raise,(self,) + _args, _kwargs)
242 return val
243 def Refresh(self, *_args, **_kwargs):
244 val = apply(windowsc.wxWindow_Refresh,(self,) + _args, _kwargs)
245 return val
246 def ReleaseMouse(self, *_args, **_kwargs):
247 val = apply(windowsc.wxWindow_ReleaseMouse,(self,) + _args, _kwargs)
248 return val
249 def Reparent(self, *_args, **_kwargs):
250 val = apply(windowsc.wxWindow_Reparent,(self,) + _args, _kwargs)
251 return val
252 def ScreenToClientXY(self, *_args, **_kwargs):
253 val = apply(windowsc.wxWindow_ScreenToClientXY,(self,) + _args, _kwargs)
254 return val
255 def ScreenToClient(self, *_args, **_kwargs):
256 val = apply(windowsc.wxWindow_ScreenToClient,(self,) + _args, _kwargs)
257 if val: val = wxPointPtr(val) ; val.thisown = 1
258 return val
259 def ScrollWindow(self, *_args, **_kwargs):
260 val = apply(windowsc.wxWindow_ScrollWindow,(self,) + _args, _kwargs)
261 return val
262 def SetAcceleratorTable(self, *_args, **_kwargs):
263 val = apply(windowsc.wxWindow_SetAcceleratorTable,(self,) + _args, _kwargs)
264 return val
265 def SetAutoLayout(self, *_args, **_kwargs):
266 val = apply(windowsc.wxWindow_SetAutoLayout,(self,) + _args, _kwargs)
267 return val
268 def SetBackgroundColour(self, *_args, **_kwargs):
269 val = apply(windowsc.wxWindow_SetBackgroundColour,(self,) + _args, _kwargs)
270 return val
271 def SetConstraints(self, *_args, **_kwargs):
272 val = apply(windowsc.wxWindow_SetConstraints,(self,) + _args, _kwargs)
273 return val
274 def SetFocus(self, *_args, **_kwargs):
275 val = apply(windowsc.wxWindow_SetFocus,(self,) + _args, _kwargs)
276 return val
277 def SetFont(self, *_args, **_kwargs):
278 val = apply(windowsc.wxWindow_SetFont,(self,) + _args, _kwargs)
279 return val
280 def SetForegroundColour(self, *_args, **_kwargs):
281 val = apply(windowsc.wxWindow_SetForegroundColour,(self,) + _args, _kwargs)
282 return val
283 def SetId(self, *_args, **_kwargs):
284 val = apply(windowsc.wxWindow_SetId,(self,) + _args, _kwargs)
285 return val
286 def SetName(self, *_args, **_kwargs):
287 val = apply(windowsc.wxWindow_SetName,(self,) + _args, _kwargs)
288 return val
289 def SetScrollbar(self, *_args, **_kwargs):
290 val = apply(windowsc.wxWindow_SetScrollbar,(self,) + _args, _kwargs)
291 return val
292 def SetScrollPos(self, *_args, **_kwargs):
293 val = apply(windowsc.wxWindow_SetScrollPos,(self,) + _args, _kwargs)
294 return val
295 def SetDimensions(self, *_args, **_kwargs):
296 val = apply(windowsc.wxWindow_SetDimensions,(self,) + _args, _kwargs)
297 return val
298 def SetSize(self, *_args, **_kwargs):
299 val = apply(windowsc.wxWindow_SetSize,(self,) + _args, _kwargs)
300 return val
301 def SetPosition(self, *_args, **_kwargs):
302 val = apply(windowsc.wxWindow_SetPosition,(self,) + _args, _kwargs)
303 return val
304 def SetSizeHints(self, *_args, **_kwargs):
305 val = apply(windowsc.wxWindow_SetSizeHints,(self,) + _args, _kwargs)
306 return val
307 def SetClientSizeWH(self, *_args, **_kwargs):
308 val = apply(windowsc.wxWindow_SetClientSizeWH,(self,) + _args, _kwargs)
309 return val
310 def SetClientSize(self, *_args, **_kwargs):
311 val = apply(windowsc.wxWindow_SetClientSize,(self,) + _args, _kwargs)
312 return val
313 def SetCursor(self, *_args, **_kwargs):
314 val = apply(windowsc.wxWindow_SetCursor,(self,) + _args, _kwargs)
315 return val
316 def SetEventHandler(self, *_args, **_kwargs):
317 val = apply(windowsc.wxWindow_SetEventHandler,(self,) + _args, _kwargs)
318 return val
319 def SetTitle(self, *_args, **_kwargs):
320 val = apply(windowsc.wxWindow_SetTitle,(self,) + _args, _kwargs)
321 return val
322 def Show(self, *_args, **_kwargs):
323 val = apply(windowsc.wxWindow_Show,(self,) + _args, _kwargs)
324 return val
325 def TransferDataFromWindow(self, *_args, **_kwargs):
326 val = apply(windowsc.wxWindow_TransferDataFromWindow,(self,) + _args, _kwargs)
327 return val
328 def TransferDataToWindow(self, *_args, **_kwargs):
329 val = apply(windowsc.wxWindow_TransferDataToWindow,(self,) + _args, _kwargs)
330 return val
331 def Validate(self, *_args, **_kwargs):
332 val = apply(windowsc.wxWindow_Validate,(self,) + _args, _kwargs)
333 return val
334 def WarpPointer(self, *_args, **_kwargs):
335 val = apply(windowsc.wxWindow_WarpPointer,(self,) + _args, _kwargs)
336 return val
337 def ConvertDialogPointToPixels(self, *_args, **_kwargs):
338 val = apply(windowsc.wxWindow_ConvertDialogPointToPixels,(self,) + _args, _kwargs)
339 if val: val = wxPointPtr(val) ; val.thisown = 1
340 return val
341 def ConvertDialogSizeToPixels(self, *_args, **_kwargs):
342 val = apply(windowsc.wxWindow_ConvertDialogSizeToPixels,(self,) + _args, _kwargs)
343 if val: val = wxSizePtr(val) ; val.thisown = 1
344 return val
345 def DLG_PNT(self, *_args, **_kwargs):
346 val = apply(windowsc.wxWindow_DLG_PNT,(self,) + _args, _kwargs)
347 if val: val = wxPointPtr(val) ; val.thisown = 1
348 return val
349 def DLG_SZE(self, *_args, **_kwargs):
350 val = apply(windowsc.wxWindow_DLG_SZE,(self,) + _args, _kwargs)
351 if val: val = wxSizePtr(val) ; val.thisown = 1
352 return val
353 def ConvertPixelPointToDialog(self, *_args, **_kwargs):
354 val = apply(windowsc.wxWindow_ConvertPixelPointToDialog,(self,) + _args, _kwargs)
355 if val: val = wxPointPtr(val) ; val.thisown = 1
356 return val
357 def ConvertPixelSizeToDialog(self, *_args, **_kwargs):
358 val = apply(windowsc.wxWindow_ConvertPixelSizeToDialog,(self,) + _args, _kwargs)
359 if val: val = wxSizePtr(val) ; val.thisown = 1
360 return val
361 def SetToolTipString(self, *_args, **_kwargs):
362 val = apply(windowsc.wxWindow_SetToolTipString,(self,) + _args, _kwargs)
363 return val
364 def SetToolTip(self, *_args, **_kwargs):
365 val = apply(windowsc.wxWindow_SetToolTip,(self,) + _args, _kwargs)
366 return val
367 def GetToolTip(self, *_args, **_kwargs):
368 val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs)
369 if val: val = wxToolTipPtr(val)
370 return val
371 def __repr__(self):
372 return "<C wxWindow instance at %s>" % (self.this,)
373 class wxWindow(wxWindowPtr):
374 def __init__(self,*_args,**_kwargs):
375 self.this = apply(windowsc.new_wxWindow,_args,_kwargs)
376 self.thisown = 1
377 wx._StdWindowCallbacks(self)
378
379
380
381
382 class wxPanelPtr(wxWindowPtr):
383 def __init__(self,this):
384 self.this = this
385 self.thisown = 0
386 def InitDialog(self, *_args, **_kwargs):
387 val = apply(windowsc.wxPanel_InitDialog,(self,) + _args, _kwargs)
388 return val
389 def GetDefaultItem(self, *_args, **_kwargs):
390 val = apply(windowsc.wxPanel_GetDefaultItem,(self,) + _args, _kwargs)
391 if val: val = wxButtonPtr(val)
392 return val
393 def SetDefaultItem(self, *_args, **_kwargs):
394 val = apply(windowsc.wxPanel_SetDefaultItem,(self,) + _args, _kwargs)
395 return val
396 def __repr__(self):
397 return "<C wxPanel instance at %s>" % (self.this,)
398
399 def GetDefaultItem(self):
400 import controls
401 val = windowsc.wxPanel_GetDefaultItem(self.this)
402 val = controls.wxButtonPtr(val)
403 return val
404
405 class wxPanel(wxPanelPtr):
406 def __init__(self,*_args,**_kwargs):
407 self.this = apply(windowsc.new_wxPanel,_args,_kwargs)
408 self.thisown = 1
409 wx._StdWindowCallbacks(self)
410
411
412
413
414 class wxDialogPtr(wxPanelPtr):
415 def __init__(self,this):
416 self.this = this
417 self.thisown = 0
418 def Centre(self, *_args, **_kwargs):
419 val = apply(windowsc.wxDialog_Centre,(self,) + _args, _kwargs)
420 return val
421 def EndModal(self, *_args, **_kwargs):
422 val = apply(windowsc.wxDialog_EndModal,(self,) + _args, _kwargs)
423 return val
424 def GetTitle(self, *_args, **_kwargs):
425 val = apply(windowsc.wxDialog_GetTitle,(self,) + _args, _kwargs)
426 return val
427 def Iconize(self, *_args, **_kwargs):
428 val = apply(windowsc.wxDialog_Iconize,(self,) + _args, _kwargs)
429 return val
430 def IsIconized(self, *_args, **_kwargs):
431 val = apply(windowsc.wxDialog_IsIconized,(self,) + _args, _kwargs)
432 return val
433 def SetModal(self, *_args, **_kwargs):
434 val = apply(windowsc.wxDialog_SetModal,(self,) + _args, _kwargs)
435 return val
436 def IsModal(self, *_args, **_kwargs):
437 val = apply(windowsc.wxDialog_IsModal,(self,) + _args, _kwargs)
438 return val
439 def SetTitle(self, *_args, **_kwargs):
440 val = apply(windowsc.wxDialog_SetTitle,(self,) + _args, _kwargs)
441 return val
442 def Show(self, *_args, **_kwargs):
443 val = apply(windowsc.wxDialog_Show,(self,) + _args, _kwargs)
444 return val
445 def ShowModal(self, *_args, **_kwargs):
446 val = apply(windowsc.wxDialog_ShowModal,(self,) + _args, _kwargs)
447 return val
448 def GetReturnCode(self, *_args, **_kwargs):
449 val = apply(windowsc.wxDialog_GetReturnCode,(self,) + _args, _kwargs)
450 return val
451 def SetReturnCode(self, *_args, **_kwargs):
452 val = apply(windowsc.wxDialog_SetReturnCode,(self,) + _args, _kwargs)
453 return val
454 def __repr__(self):
455 return "<C wxDialog instance at %s>" % (self.this,)
456 class wxDialog(wxDialogPtr):
457 def __init__(self,*_args,**_kwargs):
458 self.this = apply(windowsc.new_wxDialog,_args,_kwargs)
459 self.thisown = 1
460 wx._StdDialogCallbacks(self)
461
462
463
464
465 class wxScrolledWindowPtr(wxPanelPtr):
466 def __init__(self,this):
467 self.this = this
468 self.thisown = 0
469 def EnableScrolling(self, *_args, **_kwargs):
470 val = apply(windowsc.wxScrolledWindow_EnableScrolling,(self,) + _args, _kwargs)
471 return val
472 def GetScrollPixelsPerUnit(self, *_args, **_kwargs):
473 val = apply(windowsc.wxScrolledWindow_GetScrollPixelsPerUnit,(self,) + _args, _kwargs)
474 return val
475 def GetVirtualSize(self, *_args, **_kwargs):
476 val = apply(windowsc.wxScrolledWindow_GetVirtualSize,(self,) + _args, _kwargs)
477 return val
478 def IsRetained(self, *_args, **_kwargs):
479 val = apply(windowsc.wxScrolledWindow_IsRetained,(self,) + _args, _kwargs)
480 return val
481 def PrepareDC(self, *_args, **_kwargs):
482 val = apply(windowsc.wxScrolledWindow_PrepareDC,(self,) + _args, _kwargs)
483 return val
484 def Scroll(self, *_args, **_kwargs):
485 val = apply(windowsc.wxScrolledWindow_Scroll,(self,) + _args, _kwargs)
486 return val
487 def SetScrollbars(self, *_args, **_kwargs):
488 val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self,) + _args, _kwargs)
489 return val
490 def ViewStart(self, *_args, **_kwargs):
491 val = apply(windowsc.wxScrolledWindow_ViewStart,(self,) + _args, _kwargs)
492 return val
493 def __repr__(self):
494 return "<C wxScrolledWindow instance at %s>" % (self.this,)
495 class wxScrolledWindow(wxScrolledWindowPtr):
496 def __init__(self,*_args,**_kwargs):
497 self.this = apply(windowsc.new_wxScrolledWindow,_args,_kwargs)
498 self.thisown = 1
499 wx._StdWindowCallbacks(self)
500 wx._StdOnScrollCallbacks(self)
501
502
503
504
505 class wxMenuPtr(wxEvtHandlerPtr):
506 def __init__(self,this):
507 self.this = this
508 self.thisown = 0
509 def Append(self, *_args, **_kwargs):
510 val = apply(windowsc.wxMenu_Append,(self,) + _args, _kwargs)
511 return val
512 def AppendMenu(self, *_args, **_kwargs):
513 val = apply(windowsc.wxMenu_AppendMenu,(self,) + _args, _kwargs)
514 return val
515 def AppendItem(self, *_args, **_kwargs):
516 val = apply(windowsc.wxMenu_AppendItem,(self,) + _args, _kwargs)
517 return val
518 def AppendSeparator(self, *_args, **_kwargs):
519 val = apply(windowsc.wxMenu_AppendSeparator,(self,) + _args, _kwargs)
520 return val
521 def Break(self, *_args, **_kwargs):
522 val = apply(windowsc.wxMenu_Break,(self,) + _args, _kwargs)
523 return val
524 def Check(self, *_args, **_kwargs):
525 val = apply(windowsc.wxMenu_Check,(self,) + _args, _kwargs)
526 return val
527 def Enable(self, *_args, **_kwargs):
528 val = apply(windowsc.wxMenu_Enable,(self,) + _args, _kwargs)
529 return val
530 def FindItem(self, *_args, **_kwargs):
531 val = apply(windowsc.wxMenu_FindItem,(self,) + _args, _kwargs)
532 return val
533 def GetTitle(self, *_args, **_kwargs):
534 val = apply(windowsc.wxMenu_GetTitle,(self,) + _args, _kwargs)
535 return val
536 def SetTitle(self, *_args, **_kwargs):
537 val = apply(windowsc.wxMenu_SetTitle,(self,) + _args, _kwargs)
538 return val
539 def FindItemForId(self, *_args, **_kwargs):
540 val = apply(windowsc.wxMenu_FindItemForId,(self,) + _args, _kwargs)
541 if val: val = wxMenuItemPtr(val)
542 return val
543 def GetHelpString(self, *_args, **_kwargs):
544 val = apply(windowsc.wxMenu_GetHelpString,(self,) + _args, _kwargs)
545 return val
546 def GetLabel(self, *_args, **_kwargs):
547 val = apply(windowsc.wxMenu_GetLabel,(self,) + _args, _kwargs)
548 return val
549 def SetHelpString(self, *_args, **_kwargs):
550 val = apply(windowsc.wxMenu_SetHelpString,(self,) + _args, _kwargs)
551 return val
552 def IsChecked(self, *_args, **_kwargs):
553 val = apply(windowsc.wxMenu_IsChecked,(self,) + _args, _kwargs)
554 return val
555 def IsEnabled(self, *_args, **_kwargs):
556 val = apply(windowsc.wxMenu_IsEnabled,(self,) + _args, _kwargs)
557 return val
558 def SetLabel(self, *_args, **_kwargs):
559 val = apply(windowsc.wxMenu_SetLabel,(self,) + _args, _kwargs)
560 return val
561 def UpdateUI(self, *_args, **_kwargs):
562 val = apply(windowsc.wxMenu_UpdateUI,(self,) + _args, _kwargs)
563 return val
564 def Destroy(self, *_args, **_kwargs):
565 val = apply(windowsc.wxMenu_Destroy,(self,) + _args, _kwargs)
566 return val
567 def __repr__(self):
568 return "<C wxMenu instance at %s>" % (self.this,)
569 class wxMenu(wxMenuPtr):
570 def __init__(self,*_args,**_kwargs):
571 self.this = apply(windowsc.new_wxMenu,_args,_kwargs)
572 self.thisown = 1
573
574
575
576
577 class wxMenuBarPtr(wxEvtHandlerPtr):
578 def __init__(self,this):
579 self.this = this
580 self.thisown = 0
581 def Append(self, *_args, **_kwargs):
582 val = apply(windowsc.wxMenuBar_Append,(self,) + _args, _kwargs)
583 return val
584 def Check(self, *_args, **_kwargs):
585 val = apply(windowsc.wxMenuBar_Check,(self,) + _args, _kwargs)
586 return val
587 def Checked(self, *_args, **_kwargs):
588 val = apply(windowsc.wxMenuBar_Checked,(self,) + _args, _kwargs)
589 return val
590 def Enable(self, *_args, **_kwargs):
591 val = apply(windowsc.wxMenuBar_Enable,(self,) + _args, _kwargs)
592 return val
593 def Enabled(self, *_args, **_kwargs):
594 val = apply(windowsc.wxMenuBar_Enabled,(self,) + _args, _kwargs)
595 return val
596 def FindMenuItem(self, *_args, **_kwargs):
597 val = apply(windowsc.wxMenuBar_FindMenuItem,(self,) + _args, _kwargs)
598 return val
599 def FindItemForId(self, *_args, **_kwargs):
600 val = apply(windowsc.wxMenuBar_FindItemForId,(self,) + _args, _kwargs)
601 if val: val = wxMenuItemPtr(val)
602 return val
603 def EnableTop(self, *_args, **_kwargs):
604 val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs)
605 return val
606 def GetHelpString(self, *_args, **_kwargs):
607 val = apply(windowsc.wxMenuBar_GetHelpString,(self,) + _args, _kwargs)
608 return val
609 def GetLabel(self, *_args, **_kwargs):
610 val = apply(windowsc.wxMenuBar_GetLabel,(self,) + _args, _kwargs)
611 return val
612 def SetHelpString(self, *_args, **_kwargs):
613 val = apply(windowsc.wxMenuBar_SetHelpString,(self,) + _args, _kwargs)
614 return val
615 def SetLabel(self, *_args, **_kwargs):
616 val = apply(windowsc.wxMenuBar_SetLabel,(self,) + _args, _kwargs)
617 return val
618 def GetLabelTop(self, *_args, **_kwargs):
619 val = apply(windowsc.wxMenuBar_GetLabelTop,(self,) + _args, _kwargs)
620 return val
621 def SetLabelTop(self, *_args, **_kwargs):
622 val = apply(windowsc.wxMenuBar_SetLabelTop,(self,) + _args, _kwargs)
623 return val
624 def GetMenuCount(self, *_args, **_kwargs):
625 val = apply(windowsc.wxMenuBar_GetMenuCount,(self,) + _args, _kwargs)
626 return val
627 def GetMenu(self, *_args, **_kwargs):
628 val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs)
629 if val: val = wxMenuPtr(val)
630 return val
631 def __repr__(self):
632 return "<C wxMenuBar instance at %s>" % (self.this,)
633 class wxMenuBar(wxMenuBarPtr):
634 def __init__(self,*_args,**_kwargs):
635 self.this = apply(windowsc.new_wxMenuBar,_args,_kwargs)
636 self.thisown = 1
637
638
639
640
641 class wxMenuItemPtr :
642 def __init__(self,this):
643 self.this = this
644 self.thisown = 0
645 def IsSeparator(self, *_args, **_kwargs):
646 val = apply(windowsc.wxMenuItem_IsSeparator,(self,) + _args, _kwargs)
647 return val
648 def IsEnabled(self, *_args, **_kwargs):
649 val = apply(windowsc.wxMenuItem_IsEnabled,(self,) + _args, _kwargs)
650 return val
651 def IsChecked(self, *_args, **_kwargs):
652 val = apply(windowsc.wxMenuItem_IsChecked,(self,) + _args, _kwargs)
653 return val
654 def IsCheckable(self, *_args, **_kwargs):
655 val = apply(windowsc.wxMenuItem_IsCheckable,(self,) + _args, _kwargs)
656 return val
657 def GetId(self, *_args, **_kwargs):
658 val = apply(windowsc.wxMenuItem_GetId,(self,) + _args, _kwargs)
659 return val
660 def GetSubMenu(self, *_args, **_kwargs):
661 val = apply(windowsc.wxMenuItem_GetSubMenu,(self,) + _args, _kwargs)
662 if val: val = wxMenuPtr(val)
663 return val
664 def SetName(self, *_args, **_kwargs):
665 val = apply(windowsc.wxMenuItem_SetName,(self,) + _args, _kwargs)
666 return val
667 def GetName(self, *_args, **_kwargs):
668 val = apply(windowsc.wxMenuItem_GetName,(self,) + _args, _kwargs)
669 return val
670 def GetHelp(self, *_args, **_kwargs):
671 val = apply(windowsc.wxMenuItem_GetHelp,(self,) + _args, _kwargs)
672 return val
673 def SetHelp(self, *_args, **_kwargs):
674 val = apply(windowsc.wxMenuItem_SetHelp,(self,) + _args, _kwargs)
675 return val
676 def Enable(self, *_args, **_kwargs):
677 val = apply(windowsc.wxMenuItem_Enable,(self,) + _args, _kwargs)
678 return val
679 def Check(self, *_args, **_kwargs):
680 val = apply(windowsc.wxMenuItem_Check,(self,) + _args, _kwargs)
681 return val
682 def GetBackgroundColour(self, *_args, **_kwargs):
683 val = apply(windowsc.wxMenuItem_GetBackgroundColour,(self,) + _args, _kwargs)
684 if val: val = wxColourPtr(val)
685 return val
686 def GetBitmap(self, *_args, **_kwargs):
687 val = apply(windowsc.wxMenuItem_GetBitmap,(self,) + _args, _kwargs)
688 if val: val = wxBitmapPtr(val) ; val.thisown = 1
689 return val
690 def GetFont(self, *_args, **_kwargs):
691 val = apply(windowsc.wxMenuItem_GetFont,(self,) + _args, _kwargs)
692 if val: val = wxFontPtr(val)
693 return val
694 def GetMarginWidth(self, *_args, **_kwargs):
695 val = apply(windowsc.wxMenuItem_GetMarginWidth,(self,) + _args, _kwargs)
696 return val
697 def GetTextColour(self, *_args, **_kwargs):
698 val = apply(windowsc.wxMenuItem_GetTextColour,(self,) + _args, _kwargs)
699 if val: val = wxColourPtr(val)
700 return val
701 def SetBackgroundColour(self, *_args, **_kwargs):
702 val = apply(windowsc.wxMenuItem_SetBackgroundColour,(self,) + _args, _kwargs)
703 return val
704 def SetBitmaps(self, *_args, **_kwargs):
705 val = apply(windowsc.wxMenuItem_SetBitmaps,(self,) + _args, _kwargs)
706 return val
707 def SetFont(self, *_args, **_kwargs):
708 val = apply(windowsc.wxMenuItem_SetFont,(self,) + _args, _kwargs)
709 return val
710 def SetMarginWidth(self, *_args, **_kwargs):
711 val = apply(windowsc.wxMenuItem_SetMarginWidth,(self,) + _args, _kwargs)
712 return val
713 def SetTextColour(self, *_args, **_kwargs):
714 val = apply(windowsc.wxMenuItem_SetTextColour,(self,) + _args, _kwargs)
715 return val
716 def DeleteSubMenu(self, *_args, **_kwargs):
717 val = apply(windowsc.wxMenuItem_DeleteSubMenu,(self,) + _args, _kwargs)
718 return val
719 def __repr__(self):
720 return "<C wxMenuItem instance at %s>" % (self.this,)
721 class wxMenuItem(wxMenuItemPtr):
722 def __init__(self,*_args,**_kwargs):
723 self.this = apply(windowsc.new_wxMenuItem,_args,_kwargs)
724 self.thisown = 1
725
726
727
728
729
730
731 #-------------- FUNCTION WRAPPERS ------------------
732
733 def wxWindow_FindFocus(*_args, **_kwargs):
734 val = apply(windowsc.wxWindow_FindFocus,_args,_kwargs)
735 if val: val = wxWindowPtr(val)
736 return val
737
738 def wxWindow_FromHWND(*_args, **_kwargs):
739 val = apply(windowsc.wxWindow_FromHWND,_args,_kwargs)
740 if val: val = wxWindowPtr(val)
741 return val
742
743
744
745 #-------------- VARIABLE WRAPPERS ------------------
746