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