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