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