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