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