home *** CD-ROM | disk | FTP | other *** search
/ com!online 2005 April / com_0405_1.iso / opensource / BTpp-0.5.4-bin.exe / $INSTDIR / BT++.exe / wxPython / misc.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2003-04-19  |  55.8 KB  |  1,335 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.2)
  3.  
  4. import miscc
  5.  
  6. class wxObjectPtr:
  7.     
  8.     def __init__(self, this):
  9.         self.this = this
  10.         self.thisown = 0
  11.  
  12.     
  13.     def GetClassName(self, *_args, **_kwargs):
  14.         val = apply(miscc.wxObject_GetClassName, (self,) + _args, _kwargs)
  15.         return val
  16.  
  17.     
  18.     def Destroy(self, *_args, **_kwargs):
  19.         val = apply(miscc.wxObject_Destroy, (self,) + _args, _kwargs)
  20.         return val
  21.  
  22.     
  23.     def __repr__(self):
  24.         return '<C wxObject instance at %s>' % (self.this,)
  25.  
  26.  
  27.  
  28. class wxObject(wxObjectPtr):
  29.     
  30.     def __init__(self, this):
  31.         self.this = this
  32.  
  33.  
  34.  
  35. class wxSizePtr:
  36.     
  37.     def __init__(self, this):
  38.         self.this = this
  39.         self.thisown = 0
  40.  
  41.     
  42.     def __del__(self, delfunc = miscc.delete_wxSize):
  43.         if self.thisown == 1:
  44.             
  45.             try:
  46.                 delfunc(self)
  47.             except:
  48.                 pass
  49.  
  50.         
  51.  
  52.     
  53.     def Set(self, *_args, **_kwargs):
  54.         val = apply(miscc.wxSize_Set, (self,) + _args, _kwargs)
  55.         return val
  56.  
  57.     
  58.     def GetX(self, *_args, **_kwargs):
  59.         val = apply(miscc.wxSize_GetX, (self,) + _args, _kwargs)
  60.         return val
  61.  
  62.     
  63.     def GetY(self, *_args, **_kwargs):
  64.         val = apply(miscc.wxSize_GetY, (self,) + _args, _kwargs)
  65.         return val
  66.  
  67.     
  68.     def GetWidth(self, *_args, **_kwargs):
  69.         val = apply(miscc.wxSize_GetWidth, (self,) + _args, _kwargs)
  70.         return val
  71.  
  72.     
  73.     def GetHeight(self, *_args, **_kwargs):
  74.         val = apply(miscc.wxSize_GetHeight, (self,) + _args, _kwargs)
  75.         return val
  76.  
  77.     
  78.     def SetWidth(self, *_args, **_kwargs):
  79.         val = apply(miscc.wxSize_SetWidth, (self,) + _args, _kwargs)
  80.         return val
  81.  
  82.     
  83.     def SetHeight(self, *_args, **_kwargs):
  84.         val = apply(miscc.wxSize_SetHeight, (self,) + _args, _kwargs)
  85.         return val
  86.  
  87.     
  88.     def asTuple(self, *_args, **_kwargs):
  89.         val = apply(miscc.wxSize_asTuple, (self,) + _args, _kwargs)
  90.         return val
  91.  
  92.     
  93.     def __eq__(self, *_args, **_kwargs):
  94.         val = apply(miscc.wxSize___eq__, (self,) + _args, _kwargs)
  95.         return val
  96.  
  97.     
  98.     def __ne__(self, *_args, **_kwargs):
  99.         val = apply(miscc.wxSize___ne__, (self,) + _args, _kwargs)
  100.         return val
  101.  
  102.     
  103.     def __setattr__(self, name, value):
  104.         if name == 'x':
  105.             miscc.wxSize_x_set(self, value)
  106.             return None
  107.         
  108.         if name == 'y':
  109.             miscc.wxSize_y_set(self, value)
  110.             return None
  111.         
  112.         if name == 'width':
  113.             miscc.wxSize_width_set(self, value)
  114.             return None
  115.         
  116.         if name == 'height':
  117.             miscc.wxSize_height_set(self, value)
  118.             return None
  119.         
  120.         self.__dict__[name] = value
  121.  
  122.     
  123.     def __getattr__(self, name):
  124.         if name == 'x':
  125.             return miscc.wxSize_x_get(self)
  126.         
  127.         if name == 'y':
  128.             return miscc.wxSize_y_get(self)
  129.         
  130.         if name == 'width':
  131.             return miscc.wxSize_width_get(self)
  132.         
  133.         if name == 'height':
  134.             return miscc.wxSize_height_get(self)
  135.         
  136.         raise AttributeError, name
  137.  
  138.     
  139.     def __repr__(self):
  140.         return '<C wxSize instance at %s>' % (self.this,)
  141.  
  142.     
  143.     def __str__(self):
  144.         return str(self.asTuple())
  145.  
  146.     
  147.     def __repr__(self):
  148.         return 'wxSize' + str(self.asTuple())
  149.  
  150.     
  151.     def __len__(self):
  152.         return len(self.asTuple())
  153.  
  154.     
  155.     def __getitem__(self, index):
  156.         return self.asTuple()[index]
  157.  
  158.     
  159.     def __setitem__(self, index, val):
  160.         if index == 0:
  161.             self.width = val
  162.         elif index == 1:
  163.             self.height = val
  164.         else:
  165.             raise IndexError
  166.  
  167.     
  168.     def __nonzero__(self):
  169.         return self.asTuple() != (0, 0)
  170.  
  171.     
  172.     def __getinitargs__(self):
  173.         return ()
  174.  
  175.     
  176.     def __getstate__(self):
  177.         return self.asTuple()
  178.  
  179.     
  180.     def __setstate__(self, state):
  181.         self.Set(*state)
  182.  
  183.  
  184.  
  185. class wxSize(wxSizePtr):
  186.     
  187.     def __init__(self, *_args, **_kwargs):
  188.         self.this = apply(miscc.new_wxSize, _args, _kwargs)
  189.         self.thisown = 1
  190.  
  191.  
  192.  
  193. class wxRealPointPtr:
  194.     
  195.     def __init__(self, this):
  196.         self.this = this
  197.         self.thisown = 0
  198.  
  199.     
  200.     def __del__(self, delfunc = miscc.delete_wxRealPoint):
  201.         if self.thisown == 1:
  202.             
  203.             try:
  204.                 delfunc(self)
  205.             except:
  206.                 pass
  207.  
  208.         
  209.  
  210.     
  211.     def Set(self, *_args, **_kwargs):
  212.         val = apply(miscc.wxRealPoint_Set, (self,) + _args, _kwargs)
  213.         return val
  214.  
  215.     
  216.     def asTuple(self, *_args, **_kwargs):
  217.         val = apply(miscc.wxRealPoint_asTuple, (self,) + _args, _kwargs)
  218.         return val
  219.  
  220.     
  221.     def __add__(self, *_args, **_kwargs):
  222.         val = apply(miscc.wxRealPoint___add__, (self,) + _args, _kwargs)
  223.         if val:
  224.             val = wxRealPointPtr(val)
  225.             val.thisown = 1
  226.         
  227.         return val
  228.  
  229.     
  230.     def __sub__(self, *_args, **_kwargs):
  231.         val = apply(miscc.wxRealPoint___sub__, (self,) + _args, _kwargs)
  232.         if val:
  233.             val = wxRealPointPtr(val)
  234.             val.thisown = 1
  235.         
  236.         return val
  237.  
  238.     
  239.     def __eq__(self, *_args, **_kwargs):
  240.         val = apply(miscc.wxRealPoint___eq__, (self,) + _args, _kwargs)
  241.         return val
  242.  
  243.     
  244.     def __ne__(self, *_args, **_kwargs):
  245.         val = apply(miscc.wxRealPoint___ne__, (self,) + _args, _kwargs)
  246.         return val
  247.  
  248.     
  249.     def __setattr__(self, name, value):
  250.         if name == 'x':
  251.             miscc.wxRealPoint_x_set(self, value)
  252.             return None
  253.         
  254.         if name == 'y':
  255.             miscc.wxRealPoint_y_set(self, value)
  256.             return None
  257.         
  258.         self.__dict__[name] = value
  259.  
  260.     
  261.     def __getattr__(self, name):
  262.         if name == 'x':
  263.             return miscc.wxRealPoint_x_get(self)
  264.         
  265.         if name == 'y':
  266.             return miscc.wxRealPoint_y_get(self)
  267.         
  268.         raise AttributeError, name
  269.  
  270.     
  271.     def __repr__(self):
  272.         return '<C wxRealPoint instance at %s>' % (self.this,)
  273.  
  274.     
  275.     def __str__(self):
  276.         return str(self.asTuple())
  277.  
  278.     
  279.     def __repr__(self):
  280.         return 'wxRealPoint' + str(self.asTuple())
  281.  
  282.     
  283.     def __len__(self):
  284.         return len(self.asTuple())
  285.  
  286.     
  287.     def __getitem__(self, index):
  288.         return self.asTuple()[index]
  289.  
  290.     
  291.     def __setitem__(self, index, val):
  292.         if index == 0:
  293.             self.width = val
  294.         elif index == 1:
  295.             self.height = val
  296.         else:
  297.             raise IndexError
  298.  
  299.     
  300.     def __nonzero__(self):
  301.         return self.asTuple() != (0.0, 0.0)
  302.  
  303.     
  304.     def __getinitargs__(self):
  305.         return ()
  306.  
  307.     
  308.     def __getstate__(self):
  309.         return self.asTuple()
  310.  
  311.     
  312.     def __setstate__(self, state):
  313.         self.Set(*state)
  314.  
  315.  
  316.  
  317. class wxRealPoint(wxRealPointPtr):
  318.     
  319.     def __init__(self, *_args, **_kwargs):
  320.         self.this = apply(miscc.new_wxRealPoint, _args, _kwargs)
  321.         self.thisown = 1
  322.  
  323.  
  324.  
  325. class wxPointPtr:
  326.     
  327.     def __init__(self, this):
  328.         self.this = this
  329.         self.thisown = 0
  330.  
  331.     
  332.     def __del__(self, delfunc = miscc.delete_wxPoint):
  333.         if self.thisown == 1:
  334.             
  335.             try:
  336.                 delfunc(self)
  337.             except:
  338.                 pass
  339.  
  340.         
  341.  
  342.     
  343.     def Set(self, *_args, **_kwargs):
  344.         val = apply(miscc.wxPoint_Set, (self,) + _args, _kwargs)
  345.         return val
  346.  
  347.     
  348.     def asTuple(self, *_args, **_kwargs):
  349.         val = apply(miscc.wxPoint_asTuple, (self,) + _args, _kwargs)
  350.         return val
  351.  
  352.     
  353.     def __add__(self, *_args, **_kwargs):
  354.         val = apply(miscc.wxPoint___add__, (self,) + _args, _kwargs)
  355.         if val:
  356.             val = wxPointPtr(val)
  357.             val.thisown = 1
  358.         
  359.         return val
  360.  
  361.     
  362.     def __sub__(self, *_args, **_kwargs):
  363.         val = apply(miscc.wxPoint___sub__, (self,) + _args, _kwargs)
  364.         if val:
  365.             val = wxPointPtr(val)
  366.             val.thisown = 1
  367.         
  368.         return val
  369.  
  370.     
  371.     def __eq__(self, *_args, **_kwargs):
  372.         val = apply(miscc.wxPoint___eq__, (self,) + _args, _kwargs)
  373.         return val
  374.  
  375.     
  376.     def __ne__(self, *_args, **_kwargs):
  377.         val = apply(miscc.wxPoint___ne__, (self,) + _args, _kwargs)
  378.         return val
  379.  
  380.     
  381.     def __setattr__(self, name, value):
  382.         if name == 'x':
  383.             miscc.wxPoint_x_set(self, value)
  384.             return None
  385.         
  386.         if name == 'y':
  387.             miscc.wxPoint_y_set(self, value)
  388.             return None
  389.         
  390.         self.__dict__[name] = value
  391.  
  392.     
  393.     def __getattr__(self, name):
  394.         if name == 'x':
  395.             return miscc.wxPoint_x_get(self)
  396.         
  397.         if name == 'y':
  398.             return miscc.wxPoint_y_get(self)
  399.         
  400.         raise AttributeError, name
  401.  
  402.     
  403.     def __repr__(self):
  404.         return '<C wxPoint instance at %s>' % (self.this,)
  405.  
  406.     
  407.     def __str__(self):
  408.         return str(self.asTuple())
  409.  
  410.     
  411.     def __repr__(self):
  412.         return 'wxPoint' + str(self.asTuple())
  413.  
  414.     
  415.     def __len__(self):
  416.         return len(self.asTuple())
  417.  
  418.     
  419.     def __getitem__(self, index):
  420.         return self.asTuple()[index]
  421.  
  422.     
  423.     def __setitem__(self, index, val):
  424.         if index == 0:
  425.             self.x = val
  426.         elif index == 1:
  427.             self.y = val
  428.         else:
  429.             raise IndexError
  430.  
  431.     
  432.     def __nonzero__(self):
  433.         return self.asTuple() != (0, 0)
  434.  
  435.     
  436.     def __getinitargs__(self):
  437.         return ()
  438.  
  439.     
  440.     def __getstate__(self):
  441.         return self.asTuple()
  442.  
  443.     
  444.     def __setstate__(self, state):
  445.         self.Set(*state)
  446.  
  447.  
  448.  
  449. class wxPoint(wxPointPtr):
  450.     
  451.     def __init__(self, *_args, **_kwargs):
  452.         self.this = apply(miscc.new_wxPoint, _args, _kwargs)
  453.         self.thisown = 1
  454.  
  455.  
  456.  
  457. class wxRectPtr:
  458.     
  459.     def __init__(self, this):
  460.         self.this = this
  461.         self.thisown = 0
  462.  
  463.     
  464.     def __del__(self, delfunc = miscc.delete_wxRect):
  465.         if self.thisown == 1:
  466.             
  467.             try:
  468.                 delfunc(self)
  469.             except:
  470.                 pass
  471.  
  472.         
  473.  
  474.     
  475.     def GetX(self, *_args, **_kwargs):
  476.         val = apply(miscc.wxRect_GetX, (self,) + _args, _kwargs)
  477.         return val
  478.  
  479.     
  480.     def SetX(self, *_args, **_kwargs):
  481.         val = apply(miscc.wxRect_SetX, (self,) + _args, _kwargs)
  482.         return val
  483.  
  484.     
  485.     def GetY(self, *_args, **_kwargs):
  486.         val = apply(miscc.wxRect_GetY, (self,) + _args, _kwargs)
  487.         return val
  488.  
  489.     
  490.     def SetY(self, *_args, **_kwargs):
  491.         val = apply(miscc.wxRect_SetY, (self,) + _args, _kwargs)
  492.         return val
  493.  
  494.     
  495.     def GetWidth(self, *_args, **_kwargs):
  496.         val = apply(miscc.wxRect_GetWidth, (self,) + _args, _kwargs)
  497.         return val
  498.  
  499.     
  500.     def SetWidth(self, *_args, **_kwargs):
  501.         val = apply(miscc.wxRect_SetWidth, (self,) + _args, _kwargs)
  502.         return val
  503.  
  504.     
  505.     def GetHeight(self, *_args, **_kwargs):
  506.         val = apply(miscc.wxRect_GetHeight, (self,) + _args, _kwargs)
  507.         return val
  508.  
  509.     
  510.     def SetHeight(self, *_args, **_kwargs):
  511.         val = apply(miscc.wxRect_SetHeight, (self,) + _args, _kwargs)
  512.         return val
  513.  
  514.     
  515.     def GetPosition(self, *_args, **_kwargs):
  516.         val = apply(miscc.wxRect_GetPosition, (self,) + _args, _kwargs)
  517.         if val:
  518.             val = wxPointPtr(val)
  519.             val.thisown = 1
  520.         
  521.         return val
  522.  
  523.     
  524.     def GetSize(self, *_args, **_kwargs):
  525.         val = apply(miscc.wxRect_GetSize, (self,) + _args, _kwargs)
  526.         if val:
  527.             val = wxSizePtr(val)
  528.             val.thisown = 1
  529.         
  530.         return val
  531.  
  532.     
  533.     def SetPosition(self, *_args, **_kwargs):
  534.         val = apply(miscc.wxRect_SetPosition, (self,) + _args, _kwargs)
  535.         return val
  536.  
  537.     
  538.     def SetSize(self, *_args, **_kwargs):
  539.         val = apply(miscc.wxRect_SetSize, (self,) + _args, _kwargs)
  540.         return val
  541.  
  542.     
  543.     def GetLeft(self, *_args, **_kwargs):
  544.         val = apply(miscc.wxRect_GetLeft, (self,) + _args, _kwargs)
  545.         return val
  546.  
  547.     
  548.     def GetTop(self, *_args, **_kwargs):
  549.         val = apply(miscc.wxRect_GetTop, (self,) + _args, _kwargs)
  550.         return val
  551.  
  552.     
  553.     def GetBottom(self, *_args, **_kwargs):
  554.         val = apply(miscc.wxRect_GetBottom, (self,) + _args, _kwargs)
  555.         return val
  556.  
  557.     
  558.     def GetRight(self, *_args, **_kwargs):
  559.         val = apply(miscc.wxRect_GetRight, (self,) + _args, _kwargs)
  560.         return val
  561.  
  562.     
  563.     def SetLeft(self, *_args, **_kwargs):
  564.         val = apply(miscc.wxRect_SetLeft, (self,) + _args, _kwargs)
  565.         return val
  566.  
  567.     
  568.     def SetRight(self, *_args, **_kwargs):
  569.         val = apply(miscc.wxRect_SetRight, (self,) + _args, _kwargs)
  570.         return val
  571.  
  572.     
  573.     def SetTop(self, *_args, **_kwargs):
  574.         val = apply(miscc.wxRect_SetTop, (self,) + _args, _kwargs)
  575.         return val
  576.  
  577.     
  578.     def SetBottom(self, *_args, **_kwargs):
  579.         val = apply(miscc.wxRect_SetBottom, (self,) + _args, _kwargs)
  580.         return val
  581.  
  582.     
  583.     def Deflate(self, *_args, **_kwargs):
  584.         val = apply(miscc.wxRect_Deflate, (self,) + _args, _kwargs)
  585.         return val
  586.  
  587.     
  588.     def Inflate(self, *_args, **_kwargs):
  589.         val = apply(miscc.wxRect_Inflate, (self,) + _args, _kwargs)
  590.         return val
  591.  
  592.     
  593.     def InsideXY(self, *_args, **_kwargs):
  594.         val = apply(miscc.wxRect_InsideXY, (self,) + _args, _kwargs)
  595.         return val
  596.  
  597.     
  598.     def Inside(self, *_args, **_kwargs):
  599.         val = apply(miscc.wxRect_Inside, (self,) + _args, _kwargs)
  600.         return val
  601.  
  602.     
  603.     def Intersects(self, *_args, **_kwargs):
  604.         val = apply(miscc.wxRect_Intersects, (self,) + _args, _kwargs)
  605.         return val
  606.  
  607.     
  608.     def OffsetXY(self, *_args, **_kwargs):
  609.         val = apply(miscc.wxRect_OffsetXY, (self,) + _args, _kwargs)
  610.         return val
  611.  
  612.     
  613.     def Offset(self, *_args, **_kwargs):
  614.         val = apply(miscc.wxRect_Offset, (self,) + _args, _kwargs)
  615.         return val
  616.  
  617.     
  618.     def Set(self, *_args, **_kwargs):
  619.         val = apply(miscc.wxRect_Set, (self,) + _args, _kwargs)
  620.         return val
  621.  
  622.     
  623.     def asTuple(self, *_args, **_kwargs):
  624.         val = apply(miscc.wxRect_asTuple, (self,) + _args, _kwargs)
  625.         return val
  626.  
  627.     
  628.     def __add__(self, *_args, **_kwargs):
  629.         val = apply(miscc.wxRect___add__, (self,) + _args, _kwargs)
  630.         if val:
  631.             val = wxRectPtr(val)
  632.             val.thisown = 1
  633.         
  634.         return val
  635.  
  636.     
  637.     def __eq__(self, *_args, **_kwargs):
  638.         val = apply(miscc.wxRect___eq__, (self,) + _args, _kwargs)
  639.         return val
  640.  
  641.     
  642.     def __ne__(self, *_args, **_kwargs):
  643.         val = apply(miscc.wxRect___ne__, (self,) + _args, _kwargs)
  644.         return val
  645.  
  646.     
  647.     def __setattr__(self, name, value):
  648.         if name == 'x':
  649.             miscc.wxRect_x_set(self, value)
  650.             return None
  651.         
  652.         if name == 'y':
  653.             miscc.wxRect_y_set(self, value)
  654.             return None
  655.         
  656.         if name == 'width':
  657.             miscc.wxRect_width_set(self, value)
  658.             return None
  659.         
  660.         if name == 'height':
  661.             miscc.wxRect_height_set(self, value)
  662.             return None
  663.         
  664.         self.__dict__[name] = value
  665.  
  666.     
  667.     def __getattr__(self, name):
  668.         if name == 'x':
  669.             return miscc.wxRect_x_get(self)
  670.         
  671.         if name == 'y':
  672.             return miscc.wxRect_y_get(self)
  673.         
  674.         if name == 'width':
  675.             return miscc.wxRect_width_get(self)
  676.         
  677.         if name == 'height':
  678.             return miscc.wxRect_height_get(self)
  679.         
  680.         raise AttributeError, name
  681.  
  682.     
  683.     def __repr__(self):
  684.         return '<C wxRect instance at %s>' % (self.this,)
  685.  
  686.     
  687.     def __str__(self):
  688.         return str(self.asTuple())
  689.  
  690.     
  691.     def __repr__(self):
  692.         return 'wxRect' + str(self.asTuple())
  693.  
  694.     
  695.     def __len__(self):
  696.         return len(self.asTuple())
  697.  
  698.     
  699.     def __getitem__(self, index):
  700.         return self.asTuple()[index]
  701.  
  702.     
  703.     def __setitem__(self, index, val):
  704.         if index == 0:
  705.             self.x = val
  706.         elif index == 1:
  707.             self.y = val
  708.         elif index == 2:
  709.             self.width = val
  710.         elif index == 3:
  711.             self.height = val
  712.         else:
  713.             raise IndexError
  714.  
  715.     
  716.     def __nonzero__(self):
  717.         return self.asTuple() != (0, 0, 0, 0)
  718.  
  719.     
  720.     def __getinitargs__(self):
  721.         return ()
  722.  
  723.     
  724.     def __getstate__(self):
  725.         return self.asTuple()
  726.  
  727.     
  728.     def __setstate__(self, state):
  729.         self.Set(*state)
  730.  
  731.     
  732.     def __getattr__(self, name):
  733.         d = {
  734.             'x': miscc.wxRect_x_get,
  735.             'y': miscc.wxRect_y_get,
  736.             'width': miscc.wxRect_width_get,
  737.             'height': miscc.wxRect_height_get,
  738.             'top': miscc.wxRect_GetTop,
  739.             'bottom': miscc.wxRect_GetBottom,
  740.             'left': miscc.wxRect_GetLeft,
  741.             'right': miscc.wxRect_GetRight }
  742.         
  743.         try:
  744.             func = d[name]
  745.         except KeyError:
  746.             raise AttributeError, name
  747.  
  748.         return func(self)
  749.  
  750.     
  751.     def __setattr__(self, name, value):
  752.         d = {
  753.             'x': miscc.wxRect_x_set,
  754.             'y': miscc.wxRect_y_set,
  755.             'width': miscc.wxRect_width_set,
  756.             'height': miscc.wxRect_height_set,
  757.             'top': miscc.wxRect_SetTop,
  758.             'bottom': miscc.wxRect_SetBottom,
  759.             'left': miscc.wxRect_SetLeft,
  760.             'right': miscc.wxRect_SetRight }
  761.         
  762.         try:
  763.             func = d[name]
  764.         except KeyError:
  765.             self.__dict__[name] = value
  766.             return None
  767.  
  768.         func(self, value)
  769.  
  770.  
  771.  
  772. class wxRect(wxRectPtr):
  773.     
  774.     def __init__(self, *_args, **_kwargs):
  775.         self.this = apply(miscc.new_wxRect, _args, _kwargs)
  776.         self.thisown = 1
  777.  
  778.  
  779.  
  780. class wxPoint2DDoublePtr:
  781.     
  782.     def __init__(self, this):
  783.         self.this = this
  784.         self.thisown = 0
  785.  
  786.     
  787.     def GetFloor(self, *_args, **_kwargs):
  788.         val = apply(miscc.wxPoint2DDouble_GetFloor, (self,) + _args, _kwargs)
  789.         return val
  790.  
  791.     
  792.     def GetRounded(self, *_args, **_kwargs):
  793.         val = apply(miscc.wxPoint2DDouble_GetRounded, (self,) + _args, _kwargs)
  794.         return val
  795.  
  796.     
  797.     def GetVectorLength(self, *_args, **_kwargs):
  798.         val = apply(miscc.wxPoint2DDouble_GetVectorLength, (self,) + _args, _kwargs)
  799.         return val
  800.  
  801.     
  802.     def GetVectorAngle(self, *_args, **_kwargs):
  803.         val = apply(miscc.wxPoint2DDouble_GetVectorAngle, (self,) + _args, _kwargs)
  804.         return val
  805.  
  806.     
  807.     def SetVectorLength(self, *_args, **_kwargs):
  808.         val = apply(miscc.wxPoint2DDouble_SetVectorLength, (self,) + _args, _kwargs)
  809.         return val
  810.  
  811.     
  812.     def SetVectorAngle(self, *_args, **_kwargs):
  813.         val = apply(miscc.wxPoint2DDouble_SetVectorAngle, (self,) + _args, _kwargs)
  814.         return val
  815.  
  816.     
  817.     def GetDistance(self, *_args, **_kwargs):
  818.         val = apply(miscc.wxPoint2DDouble_GetDistance, (self,) + _args, _kwargs)
  819.         return val
  820.  
  821.     
  822.     def GetDistanceSquare(self, *_args, **_kwargs):
  823.         val = apply(miscc.wxPoint2DDouble_GetDistanceSquare, (self,) + _args, _kwargs)
  824.         return val
  825.  
  826.     
  827.     def GetDotProduct(self, *_args, **_kwargs):
  828.         val = apply(miscc.wxPoint2DDouble_GetDotProduct, (self,) + _args, _kwargs)
  829.         return val
  830.  
  831.     
  832.     def GetCrossProduct(self, *_args, **_kwargs):
  833.         val = apply(miscc.wxPoint2DDouble_GetCrossProduct, (self,) + _args, _kwargs)
  834.         return val
  835.  
  836.     
  837.     def Set(self, *_args, **_kwargs):
  838.         val = apply(miscc.wxPoint2DDouble_Set, (self,) + _args, _kwargs)
  839.         return val
  840.  
  841.     
  842.     def __neg__(self, *_args, **_kwargs):
  843.         val = apply(miscc.wxPoint2DDouble___neg__, (self,) + _args, _kwargs)
  844.         if val:
  845.             val = wxPoint2DDoublePtr(val)
  846.             val.thisown = 1
  847.         
  848.         return val
  849.  
  850.     
  851.     def __iadd__(self, *_args, **_kwargs):
  852.         val = apply(miscc.wxPoint2DDouble___iadd__, (self,) + _args, _kwargs)
  853.         if val:
  854.             val = wxPoint2DDoublePtr(val)
  855.         
  856.         return val
  857.  
  858.     
  859.     def __isub__(self, *_args, **_kwargs):
  860.         val = apply(miscc.wxPoint2DDouble___isub__, (self,) + _args, _kwargs)
  861.         if val:
  862.             val = wxPoint2DDoublePtr(val)
  863.         
  864.         return val
  865.  
  866.     
  867.     def __imul__(self, *_args, **_kwargs):
  868.         val = apply(miscc.wxPoint2DDouble___imul__, (self,) + _args, _kwargs)
  869.         if val:
  870.             val = wxPoint2DDoublePtr(val)
  871.         
  872.         return val
  873.  
  874.     
  875.     def __idiv__(self, *_args, **_kwargs):
  876.         val = apply(miscc.wxPoint2DDouble___idiv__, (self,) + _args, _kwargs)
  877.         if val:
  878.             val = wxPoint2DDoublePtr(val)
  879.         
  880.         return val
  881.  
  882.     
  883.     def __eq__(self, *_args, **_kwargs):
  884.         val = apply(miscc.wxPoint2DDouble___eq__, (self,) + _args, _kwargs)
  885.         return val
  886.  
  887.     
  888.     def __ne__(self, *_args, **_kwargs):
  889.         val = apply(miscc.wxPoint2DDouble___ne__, (self,) + _args, _kwargs)
  890.         return val
  891.  
  892.     
  893.     def asTuple(self, *_args, **_kwargs):
  894.         val = apply(miscc.wxPoint2DDouble_asTuple, (self,) + _args, _kwargs)
  895.         return val
  896.  
  897.     
  898.     def __setattr__(self, name, value):
  899.         if name == 'm_x':
  900.             miscc.wxPoint2DDouble_m_x_set(self, value)
  901.             return None
  902.         
  903.         if name == 'm_y':
  904.             miscc.wxPoint2DDouble_m_y_set(self, value)
  905.             return None
  906.         
  907.         if name == 'x':
  908.             miscc.wxPoint2DDouble_x_set(self, value)
  909.             return None
  910.         
  911.         if name == 'y':
  912.             miscc.wxPoint2DDouble_y_set(self, value)
  913.             return None
  914.         
  915.         self.__dict__[name] = value
  916.  
  917.     
  918.     def __getattr__(self, name):
  919.         if name == 'm_x':
  920.             return miscc.wxPoint2DDouble_m_x_get(self)
  921.         
  922.         if name == 'm_y':
  923.             return miscc.wxPoint2DDouble_m_y_get(self)
  924.         
  925.         if name == 'x':
  926.             return miscc.wxPoint2DDouble_x_get(self)
  927.         
  928.         if name == 'y':
  929.             return miscc.wxPoint2DDouble_y_get(self)
  930.         
  931.         raise AttributeError, name
  932.  
  933.     
  934.     def __repr__(self):
  935.         return '<C wxPoint2DDouble instance at %s>' % (self.this,)
  936.  
  937.     
  938.     def SetPolarCoordinates(self, angle, length):
  939.         self.SetVectorLength(length)
  940.         self.SetVectorAngle(angle)
  941.  
  942.     
  943.     def Normalize(self):
  944.         self.SetVectorLength(1.0)
  945.  
  946.     
  947.     def __str__(self):
  948.         return str(self.asTuple())
  949.  
  950.     
  951.     def __repr__(self):
  952.         return 'wxPoint2DDouble' + str(self.asTuple())
  953.  
  954.     
  955.     def __len__(self):
  956.         return len(self.asTuple())
  957.  
  958.     
  959.     def __getitem__(self, index):
  960.         return self.asTuple()[index]
  961.  
  962.     
  963.     def __setitem__(self, index, val):
  964.         if index == 0:
  965.             self.m_x = val
  966.         elif index == 1:
  967.             self.m_yt = val
  968.         else:
  969.             raise IndexError
  970.  
  971.     
  972.     def __nonzero__(self):
  973.         return self.asTuple() != (0.0, 0.0)
  974.  
  975.     
  976.     def __getinitargs__(self):
  977.         return ()
  978.  
  979.     
  980.     def __getstate__(self):
  981.         return self.asTuple()
  982.  
  983.     
  984.     def __setstate__(self, state):
  985.         self.Set(*state)
  986.  
  987.  
  988.  
  989. class wxPoint2DDouble(wxPoint2DDoublePtr):
  990.     
  991.     def __init__(self, *_args, **_kwargs):
  992.         self.this = apply(miscc.new_wxPoint2DDouble, _args, _kwargs)
  993.         self.thisown = 1
  994.  
  995.  
  996.  
  997. def wxPoint2DDoubleCopy(*_args, **_kwargs):
  998.     val = wxPoint2DDoublePtr(apply(miscc.new_wxPoint2DDoubleCopy, _args, _kwargs))
  999.     val.thisown = 1
  1000.     return val
  1001.  
  1002.  
  1003. def wxPoint2DDoubleFromPoint(*_args, **_kwargs):
  1004.     val = wxPoint2DDoublePtr(apply(miscc.new_wxPoint2DDoubleFromPoint, _args, _kwargs))
  1005.     val.thisown = 1
  1006.     return val
  1007.  
  1008.  
  1009. class wxIndividualLayoutConstraintPtr(wxObjectPtr):
  1010.     
  1011.     def __init__(self, this):
  1012.         self.this = this
  1013.         self.thisown = 0
  1014.  
  1015.     
  1016.     def Above(self, *_args, **_kwargs):
  1017.         val = apply(miscc.wxIndividualLayoutConstraint_Above, (self,) + _args, _kwargs)
  1018.         return val
  1019.  
  1020.     
  1021.     def Absolute(self, *_args, **_kwargs):
  1022.         val = apply(miscc.wxIndividualLayoutConstraint_Absolute, (self,) + _args, _kwargs)
  1023.         return val
  1024.  
  1025.     
  1026.     def AsIs(self, *_args, **_kwargs):
  1027.         val = apply(miscc.wxIndividualLayoutConstraint_AsIs, (self,) + _args, _kwargs)
  1028.         return val
  1029.  
  1030.     
  1031.     def Below(self, *_args, **_kwargs):
  1032.         val = apply(miscc.wxIndividualLayoutConstraint_Below, (self,) + _args, _kwargs)
  1033.         return val
  1034.  
  1035.     
  1036.     def Unconstrained(self, *_args, **_kwargs):
  1037.         val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained, (self,) + _args, _kwargs)
  1038.         return val
  1039.  
  1040.     
  1041.     def LeftOf(self, *_args, **_kwargs):
  1042.         val = apply(miscc.wxIndividualLayoutConstraint_LeftOf, (self,) + _args, _kwargs)
  1043.         return val
  1044.  
  1045.     
  1046.     def PercentOf(self, *_args, **_kwargs):
  1047.         val = apply(miscc.wxIndividualLayoutConstraint_PercentOf, (self,) + _args, _kwargs)
  1048.         return val
  1049.  
  1050.     
  1051.     def RightOf(self, *_args, **_kwargs):
  1052.         val = apply(miscc.wxIndividualLayoutConstraint_RightOf, (self,) + _args, _kwargs)
  1053.         return val
  1054.  
  1055.     
  1056.     def SameAs(self, *_args, **_kwargs):
  1057.         val = apply(miscc.wxIndividualLayoutConstraint_SameAs, (self,) + _args, _kwargs)
  1058.         return val
  1059.  
  1060.     
  1061.     def Set(self, *_args, **_kwargs):
  1062.         val = apply(miscc.wxIndividualLayoutConstraint_Set, (self,) + _args, _kwargs)
  1063.         return val
  1064.  
  1065.     
  1066.     def __repr__(self):
  1067.         return '<C wxIndividualLayoutConstraint instance at %s>' % (self.this,)
  1068.  
  1069.  
  1070.  
  1071. class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
  1072.     
  1073.     def __init__(self, this):
  1074.         self.this = this
  1075.  
  1076.  
  1077.  
  1078. class wxLayoutConstraintsPtr(wxObjectPtr):
  1079.     
  1080.     def __init__(self, this):
  1081.         self.this = this
  1082.         self.thisown = 0
  1083.  
  1084.     
  1085.     def __setattr__(self, name, value):
  1086.         if name == 'bottom':
  1087.             miscc.wxLayoutConstraints_bottom_set(self, value.this)
  1088.             return None
  1089.         
  1090.         if name == 'centreX':
  1091.             miscc.wxLayoutConstraints_centreX_set(self, value.this)
  1092.             return None
  1093.         
  1094.         if name == 'centreY':
  1095.             miscc.wxLayoutConstraints_centreY_set(self, value.this)
  1096.             return None
  1097.         
  1098.         if name == 'height':
  1099.             miscc.wxLayoutConstraints_height_set(self, value.this)
  1100.             return None
  1101.         
  1102.         if name == 'left':
  1103.             miscc.wxLayoutConstraints_left_set(self, value.this)
  1104.             return None
  1105.         
  1106.         if name == 'right':
  1107.             miscc.wxLayoutConstraints_right_set(self, value.this)
  1108.             return None
  1109.         
  1110.         if name == 'top':
  1111.             miscc.wxLayoutConstraints_top_set(self, value.this)
  1112.             return None
  1113.         
  1114.         if name == 'width':
  1115.             miscc.wxLayoutConstraints_width_set(self, value.this)
  1116.             return None
  1117.         
  1118.         self.__dict__[name] = value
  1119.  
  1120.     
  1121.     def __getattr__(self, name):
  1122.         if name == 'bottom':
  1123.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self))
  1124.         
  1125.         if name == 'centreX':
  1126.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self))
  1127.         
  1128.         if name == 'centreY':
  1129.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self))
  1130.         
  1131.         if name == 'height':
  1132.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self))
  1133.         
  1134.         if name == 'left':
  1135.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self))
  1136.         
  1137.         if name == 'right':
  1138.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self))
  1139.         
  1140.         if name == 'top':
  1141.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self))
  1142.         
  1143.         if name == 'width':
  1144.             return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
  1145.         
  1146.         raise AttributeError, name
  1147.  
  1148.     
  1149.     def __repr__(self):
  1150.         return '<C wxLayoutConstraints instance at %s>' % (self.this,)
  1151.  
  1152.  
  1153.  
  1154. class wxLayoutConstraints(wxLayoutConstraintsPtr):
  1155.     
  1156.     def __init__(self, *_args, **_kwargs):
  1157.         self.this = apply(miscc.new_wxLayoutConstraints, _args, _kwargs)
  1158.         self.thisown = 1
  1159.  
  1160.  
  1161.  
  1162. class wxAcceleratorEntryPtr:
  1163.     
  1164.     def __init__(self, this):
  1165.         self.this = this
  1166.         self.thisown = 0
  1167.  
  1168.     
  1169.     def __del__(self, delfunc = miscc.delete_wxAcceleratorEntry):
  1170.         if self.thisown == 1:
  1171.             
  1172.             try:
  1173.                 delfunc(self)
  1174.             except:
  1175.                 pass
  1176.  
  1177.         
  1178.  
  1179.     
  1180.     def Set(self, *_args, **_kwargs):
  1181.         val = apply(miscc.wxAcceleratorEntry_Set, (self,) + _args, _kwargs)
  1182.         return val
  1183.  
  1184.     
  1185.     def GetFlags(self, *_args, **_kwargs):
  1186.         val = apply(miscc.wxAcceleratorEntry_GetFlags, (self,) + _args, _kwargs)
  1187.         return val
  1188.  
  1189.     
  1190.     def GetKeyCode(self, *_args, **_kwargs):
  1191.         val = apply(miscc.wxAcceleratorEntry_GetKeyCode, (self,) + _args, _kwargs)
  1192.         return val
  1193.  
  1194.     
  1195.     def GetCommand(self, *_args, **_kwargs):
  1196.         val = apply(miscc.wxAcceleratorEntry_GetCommand, (self,) + _args, _kwargs)
  1197.         return val
  1198.  
  1199.     
  1200.     def __repr__(self):
  1201.         return '<C wxAcceleratorEntry instance at %s>' % (self.this,)
  1202.  
  1203.  
  1204.  
  1205. class wxAcceleratorEntry(wxAcceleratorEntryPtr):
  1206.     
  1207.     def __init__(self, *_args, **_kwargs):
  1208.         self.this = apply(miscc.new_wxAcceleratorEntry, _args, _kwargs)
  1209.         self.thisown = 1
  1210.  
  1211.  
  1212.  
  1213. class wxAcceleratorTablePtr(wxObjectPtr):
  1214.     
  1215.     def __init__(self, this):
  1216.         self.this = this
  1217.         self.thisown = 0
  1218.  
  1219.     
  1220.     def __del__(self, delfunc = miscc.delete_wxAcceleratorTable):
  1221.         if self.thisown == 1:
  1222.             
  1223.             try:
  1224.                 delfunc(self)
  1225.             except:
  1226.                 pass
  1227.  
  1228.         
  1229.  
  1230.     
  1231.     def __repr__(self):
  1232.         return '<C wxAcceleratorTable instance at %s>' % (self.this,)
  1233.  
  1234.  
  1235.  
  1236. class wxAcceleratorTable(wxAcceleratorTablePtr):
  1237.     
  1238.     def __init__(self, *_args, **_kwargs):
  1239.         self.this = apply(miscc.new_wxAcceleratorTable, _args, _kwargs)
  1240.         self.thisown = 1
  1241.  
  1242.  
  1243.  
  1244. class wxBusyInfoPtr(wxObjectPtr):
  1245.     
  1246.     def __init__(self, this):
  1247.         self.this = this
  1248.         self.thisown = 0
  1249.  
  1250.     
  1251.     def __del__(self, delfunc = miscc.delete_wxBusyInfo):
  1252.         if self.thisown == 1:
  1253.             
  1254.             try:
  1255.                 delfunc(self)
  1256.             except:
  1257.                 pass
  1258.  
  1259.         
  1260.  
  1261.     
  1262.     def __repr__(self):
  1263.         return '<C wxBusyInfo instance at %s>' % (self.this,)
  1264.  
  1265.  
  1266.  
  1267. class wxBusyInfo(wxBusyInfoPtr):
  1268.     
  1269.     def __init__(self, *_args, **_kwargs):
  1270.         self.this = apply(miscc.new_wxBusyInfo, _args, _kwargs)
  1271.         self.thisown = 1
  1272.  
  1273.  
  1274. wxIntersectRect = miscc.wxIntersectRect
  1275. wxNewId = miscc.wxNewId
  1276. wxRegisterId = miscc.wxRegisterId
  1277. wxGetCurrentId = miscc.wxGetCurrentId
  1278. wxBell = miscc.wxBell
  1279. wxEndBusyCursor = miscc.wxEndBusyCursor
  1280. wxGetElapsedTime = miscc.wxGetElapsedTime
  1281. wxGetFreeMemory = miscc.wxGetFreeMemory
  1282. wxGetMousePosition = miscc.wxGetMousePosition
  1283. wxIsBusy = miscc.wxIsBusy
  1284. wxNow = miscc.wxNow
  1285. wxShell = miscc.wxShell
  1286. wxStartTimer = miscc.wxStartTimer
  1287. wxGetOsVersion = miscc.wxGetOsVersion
  1288. wxGetOsDescription = miscc.wxGetOsDescription
  1289. wxShutdown = miscc.wxShutdown
  1290. wxSleep = miscc.wxSleep
  1291. wxUsleep = miscc.wxUsleep
  1292. wxYield = miscc.wxYield
  1293. wxYieldIfNeeded = miscc.wxYieldIfNeeded
  1294. wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
  1295. wxStripMenuCodes = miscc.wxStripMenuCodes
  1296. wxGetEmailAddress = miscc.wxGetEmailAddress
  1297. wxGetHostName = miscc.wxGetHostName
  1298. wxGetFullHostName = miscc.wxGetFullHostName
  1299. wxGetUserId = miscc.wxGetUserId
  1300. wxGetUserName = miscc.wxGetUserName
  1301. wxGetHomeDir = miscc.wxGetHomeDir
  1302. wxGetUserHome = miscc.wxGetUserHome
  1303. wxGetProcessId = miscc.wxGetProcessId
  1304.  
  1305. def wxGetAccelFromString(*_args, **_kwargs):
  1306.     val = apply(miscc.wxGetAccelFromString, _args, _kwargs)
  1307.     if val:
  1308.         val = wxAcceleratorEntryPtr(val)
  1309.     
  1310.     return val
  1311.  
  1312. wxSHUTDOWN_POWEROFF = miscc.wxSHUTDOWN_POWEROFF
  1313. wxSHUTDOWN_REBOOT = miscc.wxSHUTDOWN_REBOOT
  1314. wxLeft = miscc.wxLeft
  1315. wxTop = miscc.wxTop
  1316. wxRight = miscc.wxRight
  1317. wxBottom = miscc.wxBottom
  1318. wxWidth = miscc.wxWidth
  1319. wxHeight = miscc.wxHeight
  1320. wxCentre = miscc.wxCentre
  1321. wxCenter = miscc.wxCenter
  1322. wxCentreX = miscc.wxCentreX
  1323. wxCentreY = miscc.wxCentreY
  1324. wxUnconstrained = miscc.wxUnconstrained
  1325. wxAsIs = miscc.wxAsIs
  1326. wxPercentOf = miscc.wxPercentOf
  1327. wxAbove = miscc.wxAbove
  1328. wxBelow = miscc.wxBelow
  1329. wxLeftOf = miscc.wxLeftOf
  1330. wxRightOf = miscc.wxRightOf
  1331. wxSameAs = miscc.wxSameAs
  1332. wxAbsolute = miscc.wxAbsolute
  1333. cvar = miscc.cvar
  1334. wxNullAcceleratorTable = wxAcceleratorTablePtr(miscc.cvar.wxNullAcceleratorTable)
  1335.