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