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