]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/misc.py
wxPython 2.1b1 for wxMSW (wxGTK coming soon)
[wxWidgets.git] / utils / wxPython / src / msw / misc.py
1 # This file was created automatically by SWIG.
2 import miscc
3 class wxSizePtr :
4 def __init__(self,this):
5 self.this = this
6 self.thisown = 0
7 def __del__(self):
8 if self.thisown == 1 :
9 miscc.delete_wxSize(self.this)
10 def Set(self,arg0,arg1):
11 val = miscc.wxSize_Set(self.this,arg0,arg1)
12 return val
13 def GetX(self):
14 val = miscc.wxSize_GetX(self.this)
15 return val
16 def GetY(self):
17 val = miscc.wxSize_GetY(self.this)
18 return val
19 def GetWidth(self):
20 val = miscc.wxSize_GetWidth(self.this)
21 return val
22 def GetHeight(self):
23 val = miscc.wxSize_GetHeight(self.this)
24 return val
25 def SetWidth(self,arg0):
26 val = miscc.wxSize_SetWidth(self.this,arg0)
27 return val
28 def SetHeight(self,arg0):
29 val = miscc.wxSize_SetHeight(self.this,arg0)
30 return val
31 def asTuple(self):
32 val = miscc.wxSize_asTuple(self.this)
33 return val
34 def __setattr__(self,name,value):
35 if name == "x" :
36 miscc.wxSize_x_set(self.this,value)
37 return
38 if name == "y" :
39 miscc.wxSize_y_set(self.this,value)
40 return
41 if name == "width" :
42 miscc.wxSize_width_set(self.this,value)
43 return
44 if name == "height" :
45 miscc.wxSize_height_set(self.this,value)
46 return
47 self.__dict__[name] = value
48 def __getattr__(self,name):
49 if name == "x" :
50 return miscc.wxSize_x_get(self.this)
51 if name == "y" :
52 return miscc.wxSize_y_get(self.this)
53 if name == "width" :
54 return miscc.wxSize_width_get(self.this)
55 if name == "height" :
56 return miscc.wxSize_height_get(self.this)
57 raise AttributeError,name
58 def __repr__(self):
59 return "<C wxSize instance>"
60 def __str__(self): return str(self.asTuple())
61 def __repr__(self): return str(self.asTuple())
62 class wxSize(wxSizePtr):
63 def __init__(self,*args) :
64 self.this = apply(miscc.new_wxSize,()+args)
65 self.thisown = 1
66
67
68
69
70 class wxRealPointPtr :
71 def __init__(self,this):
72 self.this = this
73 self.thisown = 0
74 def __del__(self):
75 if self.thisown == 1 :
76 miscc.delete_wxRealPoint(self.this)
77 def __setattr__(self,name,value):
78 if name == "x" :
79 miscc.wxRealPoint_x_set(self.this,value)
80 return
81 if name == "y" :
82 miscc.wxRealPoint_y_set(self.this,value)
83 return
84 self.__dict__[name] = value
85 def __getattr__(self,name):
86 if name == "x" :
87 return miscc.wxRealPoint_x_get(self.this)
88 if name == "y" :
89 return miscc.wxRealPoint_y_get(self.this)
90 raise AttributeError,name
91 def __repr__(self):
92 return "<C wxRealPoint instance>"
93 class wxRealPoint(wxRealPointPtr):
94 def __init__(self,*args) :
95 self.this = apply(miscc.new_wxRealPoint,()+args)
96 self.thisown = 1
97
98
99
100
101 class wxPointPtr :
102 def __init__(self,this):
103 self.this = this
104 self.thisown = 0
105 def __del__(self):
106 if self.thisown == 1 :
107 miscc.delete_wxPoint(self.this)
108 def Set(self,arg0,arg1):
109 val = miscc.wxPoint_Set(self.this,arg0,arg1)
110 return val
111 def asTuple(self):
112 val = miscc.wxPoint_asTuple(self.this)
113 return val
114 def __setattr__(self,name,value):
115 if name == "x" :
116 miscc.wxPoint_x_set(self.this,value)
117 return
118 if name == "y" :
119 miscc.wxPoint_y_set(self.this,value)
120 return
121 self.__dict__[name] = value
122 def __getattr__(self,name):
123 if name == "x" :
124 return miscc.wxPoint_x_get(self.this)
125 if name == "y" :
126 return miscc.wxPoint_y_get(self.this)
127 raise AttributeError,name
128 def __repr__(self):
129 return "<C wxPoint instance>"
130 def __str__(self): return str(self.asTuple())
131 def __repr__(self): return str(self.asTuple())
132 class wxPoint(wxPointPtr):
133 def __init__(self,*args) :
134 self.this = apply(miscc.new_wxPoint,()+args)
135 self.thisown = 1
136
137
138
139
140 class wxRectPtr :
141 def __init__(self,this):
142 self.this = this
143 self.thisown = 0
144 def __del__(self):
145 if self.thisown == 1 :
146 miscc.delete_wxRect(self.this)
147 def GetX(self):
148 val = miscc.wxRect_GetX(self.this)
149 return val
150 def SetX(self,arg0):
151 val = miscc.wxRect_SetX(self.this,arg0)
152 return val
153 def GetY(self):
154 val = miscc.wxRect_GetY(self.this)
155 return val
156 def SetY(self,arg0):
157 val = miscc.wxRect_SetY(self.this,arg0)
158 return val
159 def GetWidth(self):
160 val = miscc.wxRect_GetWidth(self.this)
161 return val
162 def SetWidth(self,arg0):
163 val = miscc.wxRect_SetWidth(self.this,arg0)
164 return val
165 def GetHeight(self):
166 val = miscc.wxRect_GetHeight(self.this)
167 return val
168 def SetHeight(self,arg0):
169 val = miscc.wxRect_SetHeight(self.this,arg0)
170 return val
171 def GetPosition(self):
172 val = miscc.wxRect_GetPosition(self.this)
173 val = wxPointPtr(val)
174 val.thisown = 1
175 return val
176 def GetSize(self):
177 val = miscc.wxRect_GetSize(self.this)
178 val = wxSizePtr(val)
179 val.thisown = 1
180 return val
181 def GetLeft(self):
182 val = miscc.wxRect_GetLeft(self.this)
183 return val
184 def GetTop(self):
185 val = miscc.wxRect_GetTop(self.this)
186 return val
187 def GetBottom(self):
188 val = miscc.wxRect_GetBottom(self.this)
189 return val
190 def GetRight(self):
191 val = miscc.wxRect_GetRight(self.this)
192 return val
193 def asTuple(self):
194 val = miscc.wxRect_asTuple(self.this)
195 return val
196 def __setattr__(self,name,value):
197 if name == "x" :
198 miscc.wxRect_x_set(self.this,value)
199 return
200 if name == "y" :
201 miscc.wxRect_y_set(self.this,value)
202 return
203 if name == "width" :
204 miscc.wxRect_width_set(self.this,value)
205 return
206 if name == "height" :
207 miscc.wxRect_height_set(self.this,value)
208 return
209 self.__dict__[name] = value
210 def __getattr__(self,name):
211 if name == "x" :
212 return miscc.wxRect_x_get(self.this)
213 if name == "y" :
214 return miscc.wxRect_y_get(self.this)
215 if name == "width" :
216 return miscc.wxRect_width_get(self.this)
217 if name == "height" :
218 return miscc.wxRect_height_get(self.this)
219 raise AttributeError,name
220 def __repr__(self):
221 return "<C wxRect instance>"
222 def __str__(self): return str(self.asTuple())
223 def __repr__(self): return str(self.asTuple())
224 class wxRect(wxRectPtr):
225 def __init__(self,*args) :
226 self.this = apply(miscc.new_wxRect,()+args)
227 self.thisown = 1
228
229
230
231
232 class wxPyTimerPtr :
233 def __init__(self,this):
234 self.this = this
235 self.thisown = 0
236 def __del__(self):
237 if self.thisown == 1 :
238 miscc.delete_wxPyTimer(self.this)
239 def Interval(self):
240 val = miscc.wxPyTimer_Interval(self.this)
241 return val
242 def Start(self,*args):
243 val = apply(miscc.wxPyTimer_Start,(self.this,)+args)
244 return val
245 def Stop(self):
246 val = miscc.wxPyTimer_Stop(self.this)
247 return val
248 def __repr__(self):
249 return "<C wxPyTimer instance>"
250 class wxPyTimer(wxPyTimerPtr):
251 def __init__(self,arg0) :
252 self.this = miscc.new_wxPyTimer(arg0)
253 self.thisown = 1
254
255
256
257
258 class wxIndividualLayoutConstraintPtr :
259 def __init__(self,this):
260 self.this = this
261 self.thisown = 0
262 def Above(self,arg0,*args):
263 val = apply(miscc.wxIndividualLayoutConstraint_Above,(self.this,arg0.this,)+args)
264 return val
265 def Absolute(self,arg0):
266 val = miscc.wxIndividualLayoutConstraint_Absolute(self.this,arg0)
267 return val
268 def AsIs(self):
269 val = miscc.wxIndividualLayoutConstraint_AsIs(self.this)
270 return val
271 def Below(self,arg0,*args):
272 val = apply(miscc.wxIndividualLayoutConstraint_Below,(self.this,arg0.this,)+args)
273 return val
274 def Unconstrained(self):
275 val = miscc.wxIndividualLayoutConstraint_Unconstrained(self.this)
276 return val
277 def LeftOf(self,arg0,*args):
278 val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self.this,arg0.this,)+args)
279 return val
280 def PercentOf(self,arg0,arg1,arg2):
281 val = miscc.wxIndividualLayoutConstraint_PercentOf(self.this,arg0.this,arg1,arg2)
282 return val
283 def RightOf(self,arg0,*args):
284 val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self.this,arg0.this,)+args)
285 return val
286 def SameAs(self,arg0,arg1,*args):
287 val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self.this,arg0.this,arg1,)+args)
288 return val
289 def Set(self,arg0,arg1,arg2,*args):
290 val = apply(miscc.wxIndividualLayoutConstraint_Set,(self.this,arg0,arg1.this,arg2,)+args)
291 return val
292 def __repr__(self):
293 return "<C wxIndividualLayoutConstraint instance>"
294 class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
295 def __init__(self,this):
296 self.this = this
297
298
299
300
301 class wxLayoutConstraintsPtr :
302 def __init__(self,this):
303 self.this = this
304 self.thisown = 0
305 def __setattr__(self,name,value):
306 if name == "bottom" :
307 miscc.wxLayoutConstraints_bottom_set(self.this,value.this)
308 return
309 if name == "centreX" :
310 miscc.wxLayoutConstraints_centreX_set(self.this,value.this)
311 return
312 if name == "centreY" :
313 miscc.wxLayoutConstraints_centreY_set(self.this,value.this)
314 return
315 if name == "height" :
316 miscc.wxLayoutConstraints_height_set(self.this,value.this)
317 return
318 if name == "left" :
319 miscc.wxLayoutConstraints_left_set(self.this,value.this)
320 return
321 if name == "right" :
322 miscc.wxLayoutConstraints_right_set(self.this,value.this)
323 return
324 if name == "top" :
325 miscc.wxLayoutConstraints_top_set(self.this,value.this)
326 return
327 if name == "width" :
328 miscc.wxLayoutConstraints_width_set(self.this,value.this)
329 return
330 self.__dict__[name] = value
331 def __getattr__(self,name):
332 if name == "bottom" :
333 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self.this))
334 if name == "centreX" :
335 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self.this))
336 if name == "centreY" :
337 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self.this))
338 if name == "height" :
339 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self.this))
340 if name == "left" :
341 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self.this))
342 if name == "right" :
343 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self.this))
344 if name == "top" :
345 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self.this))
346 if name == "width" :
347 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self.this))
348 raise AttributeError,name
349 def __repr__(self):
350 return "<C wxLayoutConstraints instance>"
351 class wxLayoutConstraints(wxLayoutConstraintsPtr):
352 def __init__(self) :
353 self.this = miscc.new_wxLayoutConstraints()
354 self.thisown = 1
355
356
357
358
359 class wxRegionPtr :
360 def __init__(self,this):
361 self.this = this
362 self.thisown = 0
363 def __del__(self):
364 if self.thisown == 1 :
365 miscc.delete_wxRegion(self.this)
366 def Clear(self):
367 val = miscc.wxRegion_Clear(self.this)
368 return val
369 def Contains(self,arg0,arg1):
370 val = miscc.wxRegion_Contains(self.this,arg0,arg1)
371 return val
372 def ContainsPoint(self,arg0):
373 val = miscc.wxRegion_ContainsPoint(self.this,arg0.this)
374 return val
375 def ContainsRect(self,arg0):
376 val = miscc.wxRegion_ContainsRect(self.this,arg0.this)
377 return val
378 def GetBox(self):
379 val = miscc.wxRegion_GetBox(self.this)
380 val = wxRectPtr(val)
381 val.thisown = 1
382 return val
383 def Intersect(self,arg0):
384 val = miscc.wxRegion_Intersect(self.this,arg0.this)
385 return val
386 def IsEmpty(self):
387 val = miscc.wxRegion_IsEmpty(self.this)
388 return val
389 def Subtract(self,arg0):
390 val = miscc.wxRegion_Subtract(self.this,arg0.this)
391 return val
392 def Union(self,arg0):
393 val = miscc.wxRegion_Union(self.this,arg0.this)
394 return val
395 def Xor(self,arg0):
396 val = miscc.wxRegion_Xor(self.this,arg0.this)
397 return val
398 def __repr__(self):
399 return "<C wxRegion instance>"
400 class wxRegion(wxRegionPtr):
401 def __init__(self) :
402 self.this = miscc.new_wxRegion()
403 self.thisown = 1
404
405
406
407
408 class wxRegionIteratorPtr :
409 def __init__(self,this):
410 self.this = this
411 self.thisown = 0
412 def __del__(self):
413 if self.thisown == 1 :
414 miscc.delete_wxRegionIterator(self.this)
415 def GetX(self):
416 val = miscc.wxRegionIterator_GetX(self.this)
417 return val
418 def GetY(self):
419 val = miscc.wxRegionIterator_GetY(self.this)
420 return val
421 def GetW(self):
422 val = miscc.wxRegionIterator_GetW(self.this)
423 return val
424 def GetWidth(self):
425 val = miscc.wxRegionIterator_GetWidth(self.this)
426 return val
427 def GetH(self):
428 val = miscc.wxRegionIterator_GetH(self.this)
429 return val
430 def GetHeight(self):
431 val = miscc.wxRegionIterator_GetHeight(self.this)
432 return val
433 def GetRect(self):
434 val = miscc.wxRegionIterator_GetRect(self.this)
435 val = wxRectPtr(val)
436 val.thisown = 1
437 return val
438 def HaveRects(self):
439 val = miscc.wxRegionIterator_HaveRects(self.this)
440 return val
441 def Reset(self):
442 val = miscc.wxRegionIterator_Reset(self.this)
443 return val
444 def Next(self):
445 val = miscc.wxRegionIterator_Next(self.this)
446 return val
447 def __repr__(self):
448 return "<C wxRegionIterator instance>"
449 class wxRegionIterator(wxRegionIteratorPtr):
450 def __init__(self,arg0) :
451 self.this = miscc.new_wxRegionIterator(arg0.this)
452 self.thisown = 1
453
454
455
456
457 class wxAcceleratorEntryPtr :
458 def __init__(self,this):
459 self.this = this
460 self.thisown = 0
461 def Set(self,arg0,arg1,arg2):
462 val = miscc.wxAcceleratorEntry_Set(self.this,arg0,arg1,arg2)
463 return val
464 def GetFlags(self):
465 val = miscc.wxAcceleratorEntry_GetFlags(self.this)
466 return val
467 def GetKeyCode(self):
468 val = miscc.wxAcceleratorEntry_GetKeyCode(self.this)
469 return val
470 def GetCommand(self):
471 val = miscc.wxAcceleratorEntry_GetCommand(self.this)
472 return val
473 def __repr__(self):
474 return "<C wxAcceleratorEntry instance>"
475 class wxAcceleratorEntry(wxAcceleratorEntryPtr):
476 def __init__(self,*args) :
477 self.this = apply(miscc.new_wxAcceleratorEntry,()+args)
478 self.thisown = 1
479
480
481
482
483 class wxAcceleratorTablePtr :
484 def __init__(self,this):
485 self.this = this
486 self.thisown = 0
487 def __repr__(self):
488 return "<C wxAcceleratorTable instance>"
489 class wxAcceleratorTable(wxAcceleratorTablePtr):
490 def __init__(self,arg0) :
491 self.this = miscc.new_wxAcceleratorTable(arg0.this)
492 self.thisown = 1
493
494
495
496
497
498
499 #-------------- FUNCTION WRAPPERS ------------------
500
501 def wxFileSelector(arg0,*args):
502 argl = map(None,args)
503 try: argl[5] = argl[5].this
504 except: pass
505 args = tuple(argl)
506 val = apply(miscc.wxFileSelector,(arg0,)+args)
507 return val
508
509 def wxGetTextFromUser(arg0,*args):
510 argl = map(None,args)
511 try: argl[2] = argl[2].this
512 except: pass
513 args = tuple(argl)
514 val = apply(miscc.wxGetTextFromUser,(arg0,)+args)
515 return val
516
517 def wxGetSingleChoice(arg0,arg1,arg2,*args):
518 argl = map(None,args)
519 try: argl[0] = argl[0].this
520 except: pass
521 args = tuple(argl)
522 val = apply(miscc.wxGetSingleChoice,(arg0,arg1,arg2,)+args)
523 return val
524
525 def wxGetSingleChoiceIndex(arg0,arg1,arg2,*args):
526 argl = map(None,args)
527 try: argl[0] = argl[0].this
528 except: pass
529 args = tuple(argl)
530 val = apply(miscc.wxGetSingleChoiceIndex,(arg0,arg1,arg2,)+args)
531 return val
532
533 def wxMessageBox(arg0,*args):
534 argl = map(None,args)
535 try: argl[2] = argl[2].this
536 except: pass
537 args = tuple(argl)
538 val = apply(miscc.wxMessageBox,(arg0,)+args)
539 return val
540
541 wxColourDisplay = miscc.wxColourDisplay
542
543 wxDisplayDepth = miscc.wxDisplayDepth
544
545 def wxSetCursor(arg0):
546 val = miscc.wxSetCursor(arg0.this)
547 return val
548
549 wxNewId = miscc.wxNewId
550
551 wxRegisterId = miscc.wxRegisterId
552
553 NewId = miscc.NewId
554
555 RegisterId = miscc.RegisterId
556
557 def wxBeginBusyCursor(*args):
558 argl = map(None,args)
559 try: argl[0] = argl[0].this
560 except: pass
561 args = tuple(argl)
562 val = apply(miscc.wxBeginBusyCursor,()+args)
563 return val
564
565 wxBell = miscc.wxBell
566
567 wxDisplaySize = miscc.wxDisplaySize
568
569 wxEndBusyCursor = miscc.wxEndBusyCursor
570
571 wxExecute = miscc.wxExecute
572
573 def wxGetActiveWindow():
574 val = miscc.wxGetActiveWindow()
575 val = wxWindowPtr(val)
576 return val
577
578 wxGetElapsedTime = miscc.wxGetElapsedTime
579
580 wxGetFreeMemory = miscc.wxGetFreeMemory
581
582 wxGetMousePosition = miscc.wxGetMousePosition
583
584 wxIsBusy = miscc.wxIsBusy
585
586 wxNow = miscc.wxNow
587
588 wxShell = miscc.wxShell
589
590 wxStartTimer = miscc.wxStartTimer
591
592 wxGetOsVersion = miscc.wxGetOsVersion
593
594 wxSleep = miscc.wxSleep
595
596 wxYield = miscc.wxYield
597
598 wxSafeYield = miscc.wxSafeYield
599
600 wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
601
602 wxGetResource = miscc.wxGetResource
603
604 wxResourceAddIdentifier = miscc.wxResourceAddIdentifier
605
606 wxResourceClear = miscc.wxResourceClear
607
608 def wxResourceCreateBitmap(arg0):
609 val = miscc.wxResourceCreateBitmap(arg0)
610 val = wxBitmapPtr(val)
611 val.thisown = 1
612 return val
613
614 def wxResourceCreateIcon(arg0):
615 val = miscc.wxResourceCreateIcon(arg0)
616 val = wxIconPtr(val)
617 val.thisown = 1
618 return val
619
620 def wxResourceCreateMenuBar(arg0):
621 val = miscc.wxResourceCreateMenuBar(arg0)
622 val = wxMenuBarPtr(val)
623 return val
624
625 wxResourceGetIdentifier = miscc.wxResourceGetIdentifier
626
627 wxResourceParseData = miscc.wxResourceParseData
628
629 wxResourceParseFile = miscc.wxResourceParseFile
630
631 wxResourceParseString = miscc.wxResourceParseString
632
633
634
635 #-------------- VARIABLE WRAPPERS ------------------
636
637 wxLeft = miscc.wxLeft
638 wxTop = miscc.wxTop
639 wxRight = miscc.wxRight
640 wxBottom = miscc.wxBottom
641 wxWidth = miscc.wxWidth
642 wxHeight = miscc.wxHeight
643 wxCentre = miscc.wxCentre
644 wxCenter = miscc.wxCenter
645 wxCentreX = miscc.wxCentreX
646 wxCentreY = miscc.wxCentreY
647 wxUnconstrained = miscc.wxUnconstrained
648 wxAsIs = miscc.wxAsIs
649 wxPercentOf = miscc.wxPercentOf
650 wxAbove = miscc.wxAbove
651 wxBelow = miscc.wxBelow
652 wxLeftOf = miscc.wxLeftOf
653 wxRightOf = miscc.wxRightOf
654 wxSameAs = miscc.wxSameAs
655 wxAbsolute = miscc.wxAbsolute
656 wxOutRegion = miscc.wxOutRegion
657 wxPartRegion = miscc.wxPartRegion
658 wxInRegion = miscc.wxInRegion