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