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 / events.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2003-04-19  |  88.8 KB  |  1,779 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.2)
  3.  
  4. import eventsc
  5. from misc import *
  6. from gdi import *
  7. from fonts import *
  8.  
  9. class wxEventPtr(wxObjectPtr):
  10.     
  11.     def __init__(self, this):
  12.         self.this = this
  13.         self.thisown = 0
  14.  
  15.     
  16.     def __del__(self, delfunc = eventsc.delete_wxEvent):
  17.         if self.thisown == 1:
  18.             
  19.             try:
  20.                 delfunc(self)
  21.             except:
  22.                 pass
  23.  
  24.         
  25.  
  26.     
  27.     def GetEventObject(self, *_args, **_kwargs):
  28.         val = apply(eventsc.wxEvent_GetEventObject, (self,) + _args, _kwargs)
  29.         return val
  30.  
  31.     
  32.     def GetEventType(self, *_args, **_kwargs):
  33.         val = apply(eventsc.wxEvent_GetEventType, (self,) + _args, _kwargs)
  34.         return val
  35.  
  36.     
  37.     def GetId(self, *_args, **_kwargs):
  38.         val = apply(eventsc.wxEvent_GetId, (self,) + _args, _kwargs)
  39.         return val
  40.  
  41.     
  42.     def GetSkipped(self, *_args, **_kwargs):
  43.         val = apply(eventsc.wxEvent_GetSkipped, (self,) + _args, _kwargs)
  44.         return val
  45.  
  46.     
  47.     def GetTimestamp(self, *_args, **_kwargs):
  48.         val = apply(eventsc.wxEvent_GetTimestamp, (self,) + _args, _kwargs)
  49.         return val
  50.  
  51.     
  52.     def SetEventObject(self, *_args, **_kwargs):
  53.         val = apply(eventsc.wxEvent_SetEventObject, (self,) + _args, _kwargs)
  54.         return val
  55.  
  56.     
  57.     def SetEventType(self, *_args, **_kwargs):
  58.         val = apply(eventsc.wxEvent_SetEventType, (self,) + _args, _kwargs)
  59.         return val
  60.  
  61.     
  62.     def SetId(self, *_args, **_kwargs):
  63.         val = apply(eventsc.wxEvent_SetId, (self,) + _args, _kwargs)
  64.         return val
  65.  
  66.     
  67.     def SetTimestamp(self, *_args, **_kwargs):
  68.         val = apply(eventsc.wxEvent_SetTimestamp, (self,) + _args, _kwargs)
  69.         return val
  70.  
  71.     
  72.     def Skip(self, *_args, **_kwargs):
  73.         val = apply(eventsc.wxEvent_Skip, (self,) + _args, _kwargs)
  74.         return val
  75.  
  76.     
  77.     def Clone(self, *_args, **_kwargs):
  78.         val = apply(eventsc.wxEvent_Clone, (self,) + _args, _kwargs)
  79.         if val:
  80.             val = wxEventPtr(val)
  81.         
  82.         return val
  83.  
  84.     
  85.     def __repr__(self):
  86.         return '<C wxEvent instance at %s>' % (self.this,)
  87.  
  88.  
  89.  
  90. class wxEvent(wxEventPtr):
  91.     
  92.     def __init__(self, this):
  93.         self.this = this
  94.  
  95.  
  96.  
  97. class wxSizeEventPtr(wxEventPtr):
  98.     
  99.     def __init__(self, this):
  100.         self.this = this
  101.         self.thisown = 0
  102.  
  103.     
  104.     def GetSize(self, *_args, **_kwargs):
  105.         val = apply(eventsc.wxSizeEvent_GetSize, (self,) + _args, _kwargs)
  106.         if val:
  107.             val = wxSizePtr(val)
  108.             val.thisown = 1
  109.         
  110.         return val
  111.  
  112.     
  113.     def __repr__(self):
  114.         return '<C wxSizeEvent instance at %s>' % (self.this,)
  115.  
  116.  
  117.  
  118. class wxSizeEvent(wxSizeEventPtr):
  119.     
  120.     def __init__(self, *_args, **_kwargs):
  121.         self.this = apply(eventsc.new_wxSizeEvent, _args, _kwargs)
  122.         self.thisown = 1
  123.  
  124.  
  125.  
  126. class wxCloseEventPtr(wxEventPtr):
  127.     
  128.     def __init__(self, this):
  129.         self.this = this
  130.         self.thisown = 0
  131.  
  132.     
  133.     def SetLoggingOff(self, *_args, **_kwargs):
  134.         val = apply(eventsc.wxCloseEvent_SetLoggingOff, (self,) + _args, _kwargs)
  135.         return val
  136.  
  137.     
  138.     def GetLoggingOff(self, *_args, **_kwargs):
  139.         val = apply(eventsc.wxCloseEvent_GetLoggingOff, (self,) + _args, _kwargs)
  140.         return val
  141.  
  142.     
  143.     def Veto(self, *_args, **_kwargs):
  144.         val = apply(eventsc.wxCloseEvent_Veto, (self,) + _args, _kwargs)
  145.         return val
  146.  
  147.     
  148.     def CanVeto(self, *_args, **_kwargs):
  149.         val = apply(eventsc.wxCloseEvent_CanVeto, (self,) + _args, _kwargs)
  150.         return val
  151.  
  152.     
  153.     def GetVeto(self, *_args, **_kwargs):
  154.         val = apply(eventsc.wxCloseEvent_GetVeto, (self,) + _args, _kwargs)
  155.         return val
  156.  
  157.     
  158.     def SetCanVeto(self, *_args, **_kwargs):
  159.         val = apply(eventsc.wxCloseEvent_SetCanVeto, (self,) + _args, _kwargs)
  160.         return val
  161.  
  162.     
  163.     def __repr__(self):
  164.         return '<C wxCloseEvent instance at %s>' % (self.this,)
  165.  
  166.  
  167.  
  168. class wxCloseEvent(wxCloseEventPtr):
  169.     
  170.     def __init__(self, *_args, **_kwargs):
  171.         self.this = apply(eventsc.new_wxCloseEvent, _args, _kwargs)
  172.         self.thisown = 1
  173.  
  174.  
  175.  
  176. class wxCommandEventPtr(wxEventPtr):
  177.     
  178.     def __init__(self, this):
  179.         self.this = this
  180.         self.thisown = 0
  181.  
  182.     
  183.     def IsChecked(self, *_args, **_kwargs):
  184.         val = apply(eventsc.wxCommandEvent_IsChecked, (self,) + _args, _kwargs)
  185.         return val
  186.  
  187.     
  188.     def Checked(self, *_args, **_kwargs):
  189.         val = apply(eventsc.wxCommandEvent_Checked, (self,) + _args, _kwargs)
  190.         return val
  191.  
  192.     
  193.     def GetExtraLong(self, *_args, **_kwargs):
  194.         val = apply(eventsc.wxCommandEvent_GetExtraLong, (self,) + _args, _kwargs)
  195.         return val
  196.  
  197.     
  198.     def GetInt(self, *_args, **_kwargs):
  199.         val = apply(eventsc.wxCommandEvent_GetInt, (self,) + _args, _kwargs)
  200.         return val
  201.  
  202.     
  203.     def GetSelection(self, *_args, **_kwargs):
  204.         val = apply(eventsc.wxCommandEvent_GetSelection, (self,) + _args, _kwargs)
  205.         return val
  206.  
  207.     
  208.     def GetString(self, *_args, **_kwargs):
  209.         val = apply(eventsc.wxCommandEvent_GetString, (self,) + _args, _kwargs)
  210.         return val
  211.  
  212.     
  213.     def IsSelection(self, *_args, **_kwargs):
  214.         val = apply(eventsc.wxCommandEvent_IsSelection, (self,) + _args, _kwargs)
  215.         return val
  216.  
  217.     
  218.     def SetString(self, *_args, **_kwargs):
  219.         val = apply(eventsc.wxCommandEvent_SetString, (self,) + _args, _kwargs)
  220.         return val
  221.  
  222.     
  223.     def SetExtraLong(self, *_args, **_kwargs):
  224.         val = apply(eventsc.wxCommandEvent_SetExtraLong, (self,) + _args, _kwargs)
  225.         return val
  226.  
  227.     
  228.     def SetInt(self, *_args, **_kwargs):
  229.         val = apply(eventsc.wxCommandEvent_SetInt, (self,) + _args, _kwargs)
  230.         return val
  231.  
  232.     
  233.     def GetClientData(self, *_args, **_kwargs):
  234.         val = apply(eventsc.wxCommandEvent_GetClientData, (self,) + _args, _kwargs)
  235.         return val
  236.  
  237.     
  238.     def __repr__(self):
  239.         return '<C wxCommandEvent instance at %s>' % (self.this,)
  240.  
  241.  
  242.  
  243. class wxCommandEvent(wxCommandEventPtr):
  244.     
  245.     def __init__(self, *_args, **_kwargs):
  246.         self.this = apply(eventsc.new_wxCommandEvent, _args, _kwargs)
  247.         self.thisown = 1
  248.  
  249.  
  250.  
  251. class wxScrollEventPtr(wxCommandEventPtr):
  252.     
  253.     def __init__(self, this):
  254.         self.this = this
  255.         self.thisown = 0
  256.  
  257.     
  258.     def GetOrientation(self, *_args, **_kwargs):
  259.         val = apply(eventsc.wxScrollEvent_GetOrientation, (self,) + _args, _kwargs)
  260.         return val
  261.  
  262.     
  263.     def GetPosition(self, *_args, **_kwargs):
  264.         val = apply(eventsc.wxScrollEvent_GetPosition, (self,) + _args, _kwargs)
  265.         return val
  266.  
  267.     
  268.     def __repr__(self):
  269.         return '<C wxScrollEvent instance at %s>' % (self.this,)
  270.  
  271.  
  272.  
  273. class wxScrollEvent(wxScrollEventPtr):
  274.     
  275.     def __init__(self, *_args, **_kwargs):
  276.         self.this = apply(eventsc.new_wxScrollEvent, _args, _kwargs)
  277.         self.thisown = 1
  278.  
  279.  
  280.  
  281. class wxScrollWinEventPtr(wxEventPtr):
  282.     
  283.     def __init__(self, this):
  284.         self.this = this
  285.         self.thisown = 0
  286.  
  287.     
  288.     def GetOrientation(self, *_args, **_kwargs):
  289.         val = apply(eventsc.wxScrollWinEvent_GetOrientation, (self,) + _args, _kwargs)
  290.         return val
  291.  
  292.     
  293.     def GetPosition(self, *_args, **_kwargs):
  294.         val = apply(eventsc.wxScrollWinEvent_GetPosition, (self,) + _args, _kwargs)
  295.         return val
  296.  
  297.     
  298.     def __repr__(self):
  299.         return '<C wxScrollWinEvent instance at %s>' % (self.this,)
  300.  
  301.  
  302.  
  303. class wxScrollWinEvent(wxScrollWinEventPtr):
  304.     
  305.     def __init__(self, *_args, **_kwargs):
  306.         self.this = apply(eventsc.new_wxScrollWinEvent, _args, _kwargs)
  307.         self.thisown = 1
  308.  
  309.  
  310.  
  311. class wxSpinEventPtr(wxScrollEventPtr):
  312.     
  313.     def __init__(self, this):
  314.         self.this = this
  315.         self.thisown = 0
  316.  
  317.     
  318.     def __repr__(self):
  319.         return '<C wxSpinEvent instance at %s>' % (self.this,)
  320.  
  321.  
  322.  
  323. class wxSpinEvent(wxSpinEventPtr):
  324.     
  325.     def __init__(self, *_args, **_kwargs):
  326.         self.this = apply(eventsc.new_wxSpinEvent, _args, _kwargs)
  327.         self.thisown = 1
  328.  
  329.  
  330.  
  331. class wxMouseEventPtr(wxEventPtr):
  332.     
  333.     def __init__(self, this):
  334.         self.this = this
  335.         self.thisown = 0
  336.  
  337.     
  338.     def IsButton(self, *_args, **_kwargs):
  339.         val = apply(eventsc.wxMouseEvent_IsButton, (self,) + _args, _kwargs)
  340.         return val
  341.  
  342.     
  343.     def ButtonDown(self, *_args, **_kwargs):
  344.         val = apply(eventsc.wxMouseEvent_ButtonDown, (self,) + _args, _kwargs)
  345.         return val
  346.  
  347.     
  348.     def ButtonDClick(self, *_args, **_kwargs):
  349.         val = apply(eventsc.wxMouseEvent_ButtonDClick, (self,) + _args, _kwargs)
  350.         return val
  351.  
  352.     
  353.     def ButtonUp(self, *_args, **_kwargs):
  354.         val = apply(eventsc.wxMouseEvent_ButtonUp, (self,) + _args, _kwargs)
  355.         return val
  356.  
  357.     
  358.     def Button(self, *_args, **_kwargs):
  359.         val = apply(eventsc.wxMouseEvent_Button, (self,) + _args, _kwargs)
  360.         return val
  361.  
  362.     
  363.     def ButtonIsDown(self, *_args, **_kwargs):
  364.         val = apply(eventsc.wxMouseEvent_ButtonIsDown, (self,) + _args, _kwargs)
  365.         return val
  366.  
  367.     
  368.     def ControlDown(self, *_args, **_kwargs):
  369.         val = apply(eventsc.wxMouseEvent_ControlDown, (self,) + _args, _kwargs)
  370.         return val
  371.  
  372.     
  373.     def MetaDown(self, *_args, **_kwargs):
  374.         val = apply(eventsc.wxMouseEvent_MetaDown, (self,) + _args, _kwargs)
  375.         return val
  376.  
  377.     
  378.     def AltDown(self, *_args, **_kwargs):
  379.         val = apply(eventsc.wxMouseEvent_AltDown, (self,) + _args, _kwargs)
  380.         return val
  381.  
  382.     
  383.     def ShiftDown(self, *_args, **_kwargs):
  384.         val = apply(eventsc.wxMouseEvent_ShiftDown, (self,) + _args, _kwargs)
  385.         return val
  386.  
  387.     
  388.     def LeftDown(self, *_args, **_kwargs):
  389.         val = apply(eventsc.wxMouseEvent_LeftDown, (self,) + _args, _kwargs)
  390.         return val
  391.  
  392.     
  393.     def MiddleDown(self, *_args, **_kwargs):
  394.         val = apply(eventsc.wxMouseEvent_MiddleDown, (self,) + _args, _kwargs)
  395.         return val
  396.  
  397.     
  398.     def RightDown(self, *_args, **_kwargs):
  399.         val = apply(eventsc.wxMouseEvent_RightDown, (self,) + _args, _kwargs)
  400.         return val
  401.  
  402.     
  403.     def LeftUp(self, *_args, **_kwargs):
  404.         val = apply(eventsc.wxMouseEvent_LeftUp, (self,) + _args, _kwargs)
  405.         return val
  406.  
  407.     
  408.     def MiddleUp(self, *_args, **_kwargs):
  409.         val = apply(eventsc.wxMouseEvent_MiddleUp, (self,) + _args, _kwargs)
  410.         return val
  411.  
  412.     
  413.     def RightUp(self, *_args, **_kwargs):
  414.         val = apply(eventsc.wxMouseEvent_RightUp, (self,) + _args, _kwargs)
  415.         return val
  416.  
  417.     
  418.     def LeftDClick(self, *_args, **_kwargs):
  419.         val = apply(eventsc.wxMouseEvent_LeftDClick, (self,) + _args, _kwargs)
  420.         return val
  421.  
  422.     
  423.     def MiddleDClick(self, *_args, **_kwargs):
  424.         val = apply(eventsc.wxMouseEvent_MiddleDClick, (self,) + _args, _kwargs)
  425.         return val
  426.  
  427.     
  428.     def RightDClick(self, *_args, **_kwargs):
  429.         val = apply(eventsc.wxMouseEvent_RightDClick, (self,) + _args, _kwargs)
  430.         return val
  431.  
  432.     
  433.     def LeftIsDown(self, *_args, **_kwargs):
  434.         val = apply(eventsc.wxMouseEvent_LeftIsDown, (self,) + _args, _kwargs)
  435.         return val
  436.  
  437.     
  438.     def MiddleIsDown(self, *_args, **_kwargs):
  439.         val = apply(eventsc.wxMouseEvent_MiddleIsDown, (self,) + _args, _kwargs)
  440.         return val
  441.  
  442.     
  443.     def RightIsDown(self, *_args, **_kwargs):
  444.         val = apply(eventsc.wxMouseEvent_RightIsDown, (self,) + _args, _kwargs)
  445.         return val
  446.  
  447.     
  448.     def Dragging(self, *_args, **_kwargs):
  449.         val = apply(eventsc.wxMouseEvent_Dragging, (self,) + _args, _kwargs)
  450.         return val
  451.  
  452.     
  453.     def Moving(self, *_args, **_kwargs):
  454.         val = apply(eventsc.wxMouseEvent_Moving, (self,) + _args, _kwargs)
  455.         return val
  456.  
  457.     
  458.     def Entering(self, *_args, **_kwargs):
  459.         val = apply(eventsc.wxMouseEvent_Entering, (self,) + _args, _kwargs)
  460.         return val
  461.  
  462.     
  463.     def Leaving(self, *_args, **_kwargs):
  464.         val = apply(eventsc.wxMouseEvent_Leaving, (self,) + _args, _kwargs)
  465.         return val
  466.  
  467.     
  468.     def GetPosition(self, *_args, **_kwargs):
  469.         val = apply(eventsc.wxMouseEvent_GetPosition, (self,) + _args, _kwargs)
  470.         if val:
  471.             val = wxPointPtr(val)
  472.             val.thisown = 1
  473.         
  474.         return val
  475.  
  476.     
  477.     def GetPositionTuple(self, *_args, **_kwargs):
  478.         val = apply(eventsc.wxMouseEvent_GetPositionTuple, (self,) + _args, _kwargs)
  479.         return val
  480.  
  481.     
  482.     def GetLogicalPosition(self, *_args, **_kwargs):
  483.         val = apply(eventsc.wxMouseEvent_GetLogicalPosition, (self,) + _args, _kwargs)
  484.         if val:
  485.             val = wxPointPtr(val)
  486.             val.thisown = 1
  487.         
  488.         return val
  489.  
  490.     
  491.     def GetX(self, *_args, **_kwargs):
  492.         val = apply(eventsc.wxMouseEvent_GetX, (self,) + _args, _kwargs)
  493.         return val
  494.  
  495.     
  496.     def GetY(self, *_args, **_kwargs):
  497.         val = apply(eventsc.wxMouseEvent_GetY, (self,) + _args, _kwargs)
  498.         return val
  499.  
  500.     
  501.     def GetWheelRotation(self, *_args, **_kwargs):
  502.         val = apply(eventsc.wxMouseEvent_GetWheelRotation, (self,) + _args, _kwargs)
  503.         return val
  504.  
  505.     
  506.     def GetWheelDelta(self, *_args, **_kwargs):
  507.         val = apply(eventsc.wxMouseEvent_GetWheelDelta, (self,) + _args, _kwargs)
  508.         return val
  509.  
  510.     
  511.     def GetLinesPerAction(self, *_args, **_kwargs):
  512.         val = apply(eventsc.wxMouseEvent_GetLinesPerAction, (self,) + _args, _kwargs)
  513.         return val
  514.  
  515.     
  516.     def __setattr__(self, name, value):
  517.         if name == 'm_x':
  518.             eventsc.wxMouseEvent_m_x_set(self, value)
  519.             return None
  520.         
  521.         if name == 'm_y':
  522.             eventsc.wxMouseEvent_m_y_set(self, value)
  523.             return None
  524.         
  525.         if name == 'm_leftDown':
  526.             eventsc.wxMouseEvent_m_leftDown_set(self, value)
  527.             return None
  528.         
  529.         if name == 'm_middleDown':
  530.             eventsc.wxMouseEvent_m_middleDown_set(self, value)
  531.             return None
  532.         
  533.         if name == 'm_rightDown':
  534.             eventsc.wxMouseEvent_m_rightDown_set(self, value)
  535.             return None
  536.         
  537.         if name == 'm_controlDown':
  538.             eventsc.wxMouseEvent_m_controlDown_set(self, value)
  539.             return None
  540.         
  541.         if name == 'm_shiftDown':
  542.             eventsc.wxMouseEvent_m_shiftDown_set(self, value)
  543.             return None
  544.         
  545.         if name == 'm_altDown':
  546.             eventsc.wxMouseEvent_m_altDown_set(self, value)
  547.             return None
  548.         
  549.         if name == 'm_metaDown':
  550.             eventsc.wxMouseEvent_m_metaDown_set(self, value)
  551.             return None
  552.         
  553.         if name == 'm_wheelRotation':
  554.             eventsc.wxMouseEvent_m_wheelRotation_set(self, value)
  555.             return None
  556.         
  557.         if name == 'm_wheelDelta':
  558.             eventsc.wxMouseEvent_m_wheelDelta_set(self, value)
  559.             return None
  560.         
  561.         if name == 'm_linesPerAction':
  562.             eventsc.wxMouseEvent_m_linesPerAction_set(self, value)
  563.             return None
  564.         
  565.         self.__dict__[name] = value
  566.  
  567.     
  568.     def __getattr__(self, name):
  569.         if name == 'm_x':
  570.             return eventsc.wxMouseEvent_m_x_get(self)
  571.         
  572.         if name == 'm_y':
  573.             return eventsc.wxMouseEvent_m_y_get(self)
  574.         
  575.         if name == 'm_leftDown':
  576.             return eventsc.wxMouseEvent_m_leftDown_get(self)
  577.         
  578.         if name == 'm_middleDown':
  579.             return eventsc.wxMouseEvent_m_middleDown_get(self)
  580.         
  581.         if name == 'm_rightDown':
  582.             return eventsc.wxMouseEvent_m_rightDown_get(self)
  583.         
  584.         if name == 'm_controlDown':
  585.             return eventsc.wxMouseEvent_m_controlDown_get(self)
  586.         
  587.         if name == 'm_shiftDown':
  588.             return eventsc.wxMouseEvent_m_shiftDown_get(self)
  589.         
  590.         if name == 'm_altDown':
  591.             return eventsc.wxMouseEvent_m_altDown_get(self)
  592.         
  593.         if name == 'm_metaDown':
  594.             return eventsc.wxMouseEvent_m_metaDown_get(self)
  595.         
  596.         if name == 'm_wheelRotation':
  597.             return eventsc.wxMouseEvent_m_wheelRotation_get(self)
  598.         
  599.         if name == 'm_wheelDelta':
  600.             return eventsc.wxMouseEvent_m_wheelDelta_get(self)
  601.         
  602.         if name == 'm_linesPerAction':
  603.             return eventsc.wxMouseEvent_m_linesPerAction_get(self)
  604.         
  605.         raise AttributeError, name
  606.  
  607.     
  608.     def __repr__(self):
  609.         return '<C wxMouseEvent instance at %s>' % (self.this,)
  610.  
  611.  
  612.  
  613. class wxMouseEvent(wxMouseEventPtr):
  614.     
  615.     def __init__(self, *_args, **_kwargs):
  616.         self.this = apply(eventsc.new_wxMouseEvent, _args, _kwargs)
  617.         self.thisown = 1
  618.  
  619.  
  620.  
  621. class wxMouseCaptureChangedEventPtr(wxEventPtr):
  622.     
  623.     def __init__(self, this):
  624.         self.this = this
  625.         self.thisown = 0
  626.  
  627.     
  628.     def GetCapturedWindow(self, *_args, **_kwargs):
  629.         val = apply(eventsc.wxMouseCaptureChangedEvent_GetCapturedWindow, (self,) + _args, _kwargs)
  630.         return val
  631.  
  632.     
  633.     def __repr__(self):
  634.         return '<C wxMouseCaptureChangedEvent instance at %s>' % (self.this,)
  635.  
  636.  
  637.  
  638. class wxMouseCaptureChangedEvent(wxMouseCaptureChangedEventPtr):
  639.     
  640.     def __init__(self, *_args, **_kwargs):
  641.         self.this = apply(eventsc.new_wxMouseCaptureChangedEvent, _args, _kwargs)
  642.         self.thisown = 1
  643.  
  644.  
  645.  
  646. class wxSetCursorEventPtr(wxEventPtr):
  647.     
  648.     def __init__(self, this):
  649.         self.this = this
  650.         self.thisown = 0
  651.  
  652.     
  653.     def GetX(self, *_args, **_kwargs):
  654.         val = apply(eventsc.wxSetCursorEvent_GetX, (self,) + _args, _kwargs)
  655.         return val
  656.  
  657.     
  658.     def GetY(self, *_args, **_kwargs):
  659.         val = apply(eventsc.wxSetCursorEvent_GetY, (self,) + _args, _kwargs)
  660.         return val
  661.  
  662.     
  663.     def SetCursor(self, *_args, **_kwargs):
  664.         val = apply(eventsc.wxSetCursorEvent_SetCursor, (self,) + _args, _kwargs)
  665.         return val
  666.  
  667.     
  668.     def GetCursor(self, *_args, **_kwargs):
  669.         val = apply(eventsc.wxSetCursorEvent_GetCursor, (self,) + _args, _kwargs)
  670.         if val:
  671.             val = wxCursorPtr(val)
  672.         
  673.         return val
  674.  
  675.     
  676.     def HasCursor(self, *_args, **_kwargs):
  677.         val = apply(eventsc.wxSetCursorEvent_HasCursor, (self,) + _args, _kwargs)
  678.         return val
  679.  
  680.     
  681.     def __repr__(self):
  682.         return '<C wxSetCursorEvent instance at %s>' % (self.this,)
  683.  
  684.  
  685.  
  686. class wxSetCursorEvent(wxSetCursorEventPtr):
  687.     
  688.     def __init__(self, *_args, **_kwargs):
  689.         self.this = apply(eventsc.new_wxSetCursorEvent, _args, _kwargs)
  690.         self.thisown = 1
  691.  
  692.  
  693.  
  694. class wxKeyEventPtr(wxEventPtr):
  695.     
  696.     def __init__(self, this):
  697.         self.this = this
  698.         self.thisown = 0
  699.  
  700.     
  701.     def ControlDown(self, *_args, **_kwargs):
  702.         val = apply(eventsc.wxKeyEvent_ControlDown, (self,) + _args, _kwargs)
  703.         return val
  704.  
  705.     
  706.     def MetaDown(self, *_args, **_kwargs):
  707.         val = apply(eventsc.wxKeyEvent_MetaDown, (self,) + _args, _kwargs)
  708.         return val
  709.  
  710.     
  711.     def AltDown(self, *_args, **_kwargs):
  712.         val = apply(eventsc.wxKeyEvent_AltDown, (self,) + _args, _kwargs)
  713.         return val
  714.  
  715.     
  716.     def ShiftDown(self, *_args, **_kwargs):
  717.         val = apply(eventsc.wxKeyEvent_ShiftDown, (self,) + _args, _kwargs)
  718.         return val
  719.  
  720.     
  721.     def KeyCode(self, *_args, **_kwargs):
  722.         val = apply(eventsc.wxKeyEvent_KeyCode, (self,) + _args, _kwargs)
  723.         return val
  724.  
  725.     
  726.     def GetKeyCode(self, *_args, **_kwargs):
  727.         val = apply(eventsc.wxKeyEvent_GetKeyCode, (self,) + _args, _kwargs)
  728.         return val
  729.  
  730.     
  731.     def HasModifiers(self, *_args, **_kwargs):
  732.         val = apply(eventsc.wxKeyEvent_HasModifiers, (self,) + _args, _kwargs)
  733.         return val
  734.  
  735.     
  736.     def GetRawKeyCode(self, *_args, **_kwargs):
  737.         val = apply(eventsc.wxKeyEvent_GetRawKeyCode, (self,) + _args, _kwargs)
  738.         return val
  739.  
  740.     
  741.     def GetRawKeyFlags(self, *_args, **_kwargs):
  742.         val = apply(eventsc.wxKeyEvent_GetRawKeyFlags, (self,) + _args, _kwargs)
  743.         return val
  744.  
  745.     
  746.     def GetX(self, *_args, **_kwargs):
  747.         val = apply(eventsc.wxKeyEvent_GetX, (self,) + _args, _kwargs)
  748.         return val
  749.  
  750.     
  751.     def GetY(self, *_args, **_kwargs):
  752.         val = apply(eventsc.wxKeyEvent_GetY, (self,) + _args, _kwargs)
  753.         return val
  754.  
  755.     
  756.     def GetPosition(self, *_args, **_kwargs):
  757.         val = apply(eventsc.wxKeyEvent_GetPosition, (self,) + _args, _kwargs)
  758.         if val:
  759.             val = wxPointPtr(val)
  760.             val.thisown = 1
  761.         
  762.         return val
  763.  
  764.     
  765.     def GetPositionTuple(self, *_args, **_kwargs):
  766.         val = apply(eventsc.wxKeyEvent_GetPositionTuple, (self,) + _args, _kwargs)
  767.         return val
  768.  
  769.     
  770.     def __setattr__(self, name, value):
  771.         if name == 'm_x':
  772.             eventsc.wxKeyEvent_m_x_set(self, value)
  773.             return None
  774.         
  775.         if name == 'm_y':
  776.             eventsc.wxKeyEvent_m_y_set(self, value)
  777.             return None
  778.         
  779.         if name == 'm_keyCode':
  780.             eventsc.wxKeyEvent_m_keyCode_set(self, value)
  781.             return None
  782.         
  783.         if name == 'm_controlDown':
  784.             eventsc.wxKeyEvent_m_controlDown_set(self, value)
  785.             return None
  786.         
  787.         if name == 'm_shiftDown':
  788.             eventsc.wxKeyEvent_m_shiftDown_set(self, value)
  789.             return None
  790.         
  791.         if name == 'm_altDown':
  792.             eventsc.wxKeyEvent_m_altDown_set(self, value)
  793.             return None
  794.         
  795.         if name == 'm_metaDown':
  796.             eventsc.wxKeyEvent_m_metaDown_set(self, value)
  797.             return None
  798.         
  799.         if name == 'm_scanCode':
  800.             eventsc.wxKeyEvent_m_scanCode_set(self, value)
  801.             return None
  802.         
  803.         if name == 'm_rawCode':
  804.             eventsc.wxKeyEvent_m_rawCode_set(self, value)
  805.             return None
  806.         
  807.         if name == 'm_rawFlags':
  808.             eventsc.wxKeyEvent_m_rawFlags_set(self, value)
  809.             return None
  810.         
  811.         self.__dict__[name] = value
  812.  
  813.     
  814.     def __getattr__(self, name):
  815.         if name == 'm_x':
  816.             return eventsc.wxKeyEvent_m_x_get(self)
  817.         
  818.         if name == 'm_y':
  819.             return eventsc.wxKeyEvent_m_y_get(self)
  820.         
  821.         if name == 'm_keyCode':
  822.             return eventsc.wxKeyEvent_m_keyCode_get(self)
  823.         
  824.         if name == 'm_controlDown':
  825.             return eventsc.wxKeyEvent_m_controlDown_get(self)
  826.         
  827.         if name == 'm_shiftDown':
  828.             return eventsc.wxKeyEvent_m_shiftDown_get(self)
  829.         
  830.         if name == 'm_altDown':
  831.             return eventsc.wxKeyEvent_m_altDown_get(self)
  832.         
  833.         if name == 'm_metaDown':
  834.             return eventsc.wxKeyEvent_m_metaDown_get(self)
  835.         
  836.         if name == 'm_scanCode':
  837.             return eventsc.wxKeyEvent_m_scanCode_get(self)
  838.         
  839.         if name == 'm_rawCode':
  840.             return eventsc.wxKeyEvent_m_rawCode_get(self)
  841.         
  842.         if name == 'm_rawFlags':
  843.             return eventsc.wxKeyEvent_m_rawFlags_get(self)
  844.         
  845.         raise AttributeError, name
  846.  
  847.     
  848.     def __repr__(self):
  849.         return '<C wxKeyEvent instance at %s>' % (self.this,)
  850.  
  851.  
  852.  
  853. class wxKeyEvent(wxKeyEventPtr):
  854.     
  855.     def __init__(self, *_args, **_kwargs):
  856.         self.this = apply(eventsc.new_wxKeyEvent, _args, _kwargs)
  857.         self.thisown = 1
  858.  
  859.  
  860.  
  861. class wxNavigationKeyEventPtr(wxEventPtr):
  862.     
  863.     def __init__(self, this):
  864.         self.this = this
  865.         self.thisown = 0
  866.  
  867.     
  868.     def GetDirection(self, *_args, **_kwargs):
  869.         val = apply(eventsc.wxNavigationKeyEvent_GetDirection, (self,) + _args, _kwargs)
  870.         return val
  871.  
  872.     
  873.     def SetDirection(self, *_args, **_kwargs):
  874.         val = apply(eventsc.wxNavigationKeyEvent_SetDirection, (self,) + _args, _kwargs)
  875.         return val
  876.  
  877.     
  878.     def IsWindowChange(self, *_args, **_kwargs):
  879.         val = apply(eventsc.wxNavigationKeyEvent_IsWindowChange, (self,) + _args, _kwargs)
  880.         return val
  881.  
  882.     
  883.     def SetWindowChange(self, *_args, **_kwargs):
  884.         val = apply(eventsc.wxNavigationKeyEvent_SetWindowChange, (self,) + _args, _kwargs)
  885.         return val
  886.  
  887.     
  888.     def GetCurrentFocus(self, *_args, **_kwargs):
  889.         val = apply(eventsc.wxNavigationKeyEvent_GetCurrentFocus, (self,) + _args, _kwargs)
  890.         return val
  891.  
  892.     
  893.     def SetCurrentFocus(self, *_args, **_kwargs):
  894.         val = apply(eventsc.wxNavigationKeyEvent_SetCurrentFocus, (self,) + _args, _kwargs)
  895.         return val
  896.  
  897.     
  898.     def __repr__(self):
  899.         return '<C wxNavigationKeyEvent instance at %s>' % (self.this,)
  900.  
  901.  
  902.  
  903. class wxNavigationKeyEvent(wxNavigationKeyEventPtr):
  904.     
  905.     def __init__(self, *_args, **_kwargs):
  906.         self.this = apply(eventsc.new_wxNavigationKeyEvent, _args, _kwargs)
  907.         self.thisown = 1
  908.  
  909.  
  910.  
  911. class wxMoveEventPtr(wxEventPtr):
  912.     
  913.     def __init__(self, this):
  914.         self.this = this
  915.         self.thisown = 0
  916.  
  917.     
  918.     def GetPosition(self, *_args, **_kwargs):
  919.         val = apply(eventsc.wxMoveEvent_GetPosition, (self,) + _args, _kwargs)
  920.         if val:
  921.             val = wxPointPtr(val)
  922.             val.thisown = 1
  923.         
  924.         return val
  925.  
  926.     
  927.     def __repr__(self):
  928.         return '<C wxMoveEvent instance at %s>' % (self.this,)
  929.  
  930.  
  931.  
  932. class wxMoveEvent(wxMoveEventPtr):
  933.     
  934.     def __init__(self, *_args, **_kwargs):
  935.         self.this = apply(eventsc.new_wxMoveEvent, _args, _kwargs)
  936.         self.thisown = 1
  937.  
  938.  
  939.  
  940. class wxPaintEventPtr(wxEventPtr):
  941.     
  942.     def __init__(self, this):
  943.         self.this = this
  944.         self.thisown = 0
  945.  
  946.     
  947.     def __repr__(self):
  948.         return '<C wxPaintEvent instance at %s>' % (self.this,)
  949.  
  950.  
  951.  
  952. class wxPaintEvent(wxPaintEventPtr):
  953.     
  954.     def __init__(self, *_args, **_kwargs):
  955.         self.this = apply(eventsc.new_wxPaintEvent, _args, _kwargs)
  956.         self.thisown = 1
  957.  
  958.  
  959.  
  960. class wxEraseEventPtr(wxEventPtr):
  961.     
  962.     def __init__(self, this):
  963.         self.this = this
  964.         self.thisown = 0
  965.  
  966.     
  967.     def GetDC(self, *_args, **_kwargs):
  968.         val = apply(eventsc.wxEraseEvent_GetDC, (self,) + _args, _kwargs)
  969.         return val
  970.  
  971.     
  972.     def __repr__(self):
  973.         return '<C wxEraseEvent instance at %s>' % (self.this,)
  974.  
  975.  
  976.  
  977. class wxEraseEvent(wxEraseEventPtr):
  978.     
  979.     def __init__(self, *_args, **_kwargs):
  980.         self.this = apply(eventsc.new_wxEraseEvent, _args, _kwargs)
  981.         self.thisown = 1
  982.  
  983.  
  984.  
  985. class wxFocusEventPtr(wxEventPtr):
  986.     
  987.     def __init__(self, this):
  988.         self.this = this
  989.         self.thisown = 0
  990.  
  991.     
  992.     def __repr__(self):
  993.         return '<C wxFocusEvent instance at %s>' % (self.this,)
  994.  
  995.  
  996.  
  997. class wxFocusEvent(wxFocusEventPtr):
  998.     
  999.     def __init__(self, *_args, **_kwargs):
  1000.         self.this = apply(eventsc.new_wxFocusEvent, _args, _kwargs)
  1001.         self.thisown = 1
  1002.  
  1003.  
  1004.  
  1005. class wxChildFocusEventPtr(wxCommandEventPtr):
  1006.     
  1007.     def __init__(self, this):
  1008.         self.this = this
  1009.         self.thisown = 0
  1010.  
  1011.     
  1012.     def GetWindow(self, *_args, **_kwargs):
  1013.         val = apply(eventsc.wxChildFocusEvent_GetWindow, (self,) + _args, _kwargs)
  1014.         return val
  1015.  
  1016.     
  1017.     def __repr__(self):
  1018.         return '<C wxChildFocusEvent instance at %s>' % (self.this,)
  1019.  
  1020.  
  1021.  
  1022. class wxChildFocusEvent(wxChildFocusEventPtr):
  1023.     
  1024.     def __init__(self, *_args, **_kwargs):
  1025.         self.this = apply(eventsc.new_wxChildFocusEvent, _args, _kwargs)
  1026.         self.thisown = 1
  1027.  
  1028.  
  1029.  
  1030. class wxActivateEventPtr(wxEventPtr):
  1031.     
  1032.     def __init__(self, this):
  1033.         self.this = this
  1034.         self.thisown = 0
  1035.  
  1036.     
  1037.     def GetActive(self, *_args, **_kwargs):
  1038.         val = apply(eventsc.wxActivateEvent_GetActive, (self,) + _args, _kwargs)
  1039.         return val
  1040.  
  1041.     
  1042.     def __repr__(self):
  1043.         return '<C wxActivateEvent instance at %s>' % (self.this,)
  1044.  
  1045.  
  1046.  
  1047. class wxActivateEvent(wxActivateEventPtr):
  1048.     
  1049.     def __init__(self, *_args, **_kwargs):
  1050.         self.this = apply(eventsc.new_wxActivateEvent, _args, _kwargs)
  1051.         self.thisown = 1
  1052.  
  1053.  
  1054.  
  1055. class wxInitDialogEventPtr(wxEventPtr):
  1056.     
  1057.     def __init__(self, this):
  1058.         self.this = this
  1059.         self.thisown = 0
  1060.  
  1061.     
  1062.     def __repr__(self):
  1063.         return '<C wxInitDialogEvent instance at %s>' % (self.this,)
  1064.  
  1065.  
  1066.  
  1067. class wxInitDialogEvent(wxInitDialogEventPtr):
  1068.     
  1069.     def __init__(self, *_args, **_kwargs):
  1070.         self.this = apply(eventsc.new_wxInitDialogEvent, _args, _kwargs)
  1071.         self.thisown = 1
  1072.  
  1073.  
  1074.  
  1075. class wxMenuEventPtr(wxEventPtr):
  1076.     
  1077.     def __init__(self, this):
  1078.         self.this = this
  1079.         self.thisown = 0
  1080.  
  1081.     
  1082.     def GetMenuId(self, *_args, **_kwargs):
  1083.         val = apply(eventsc.wxMenuEvent_GetMenuId, (self,) + _args, _kwargs)
  1084.         return val
  1085.  
  1086.     
  1087.     def IsPopup(self, *_args, **_kwargs):
  1088.         val = apply(eventsc.wxMenuEvent_IsPopup, (self,) + _args, _kwargs)
  1089.         return val
  1090.  
  1091.     
  1092.     def __repr__(self):
  1093.         return '<C wxMenuEvent instance at %s>' % (self.this,)
  1094.  
  1095.  
  1096.  
  1097. class wxMenuEvent(wxMenuEventPtr):
  1098.     
  1099.     def __init__(self, *_args, **_kwargs):
  1100.         self.this = apply(eventsc.new_wxMenuEvent, _args, _kwargs)
  1101.         self.thisown = 1
  1102.  
  1103.  
  1104.  
  1105. class wxShowEventPtr(wxEventPtr):
  1106.     
  1107.     def __init__(self, this):
  1108.         self.this = this
  1109.         self.thisown = 0
  1110.  
  1111.     
  1112.     def SetShow(self, *_args, **_kwargs):
  1113.         val = apply(eventsc.wxShowEvent_SetShow, (self,) + _args, _kwargs)
  1114.         return val
  1115.  
  1116.     
  1117.     def GetShow(self, *_args, **_kwargs):
  1118.         val = apply(eventsc.wxShowEvent_GetShow, (self,) + _args, _kwargs)
  1119.         return val
  1120.  
  1121.     
  1122.     def __repr__(self):
  1123.         return '<C wxShowEvent instance at %s>' % (self.this,)
  1124.  
  1125.  
  1126.  
  1127. class wxShowEvent(wxShowEventPtr):
  1128.     
  1129.     def __init__(self, *_args, **_kwargs):
  1130.         self.this = apply(eventsc.new_wxShowEvent, _args, _kwargs)
  1131.         self.thisown = 1
  1132.  
  1133.  
  1134.  
  1135. class wxIconizeEventPtr(wxEventPtr):
  1136.     
  1137.     def __init__(self, this):
  1138.         self.this = this
  1139.         self.thisown = 0
  1140.  
  1141.     
  1142.     def Iconized(self, *_args, **_kwargs):
  1143.         val = apply(eventsc.wxIconizeEvent_Iconized, (self,) + _args, _kwargs)
  1144.         return val
  1145.  
  1146.     
  1147.     def __repr__(self):
  1148.         return '<C wxIconizeEvent instance at %s>' % (self.this,)
  1149.  
  1150.  
  1151.  
  1152. class wxIconizeEvent(wxIconizeEventPtr):
  1153.     
  1154.     def __init__(self, *_args, **_kwargs):
  1155.         self.this = apply(eventsc.new_wxIconizeEvent, _args, _kwargs)
  1156.         self.thisown = 1
  1157.  
  1158.  
  1159.  
  1160. class wxMaximizeEventPtr(wxEventPtr):
  1161.     
  1162.     def __init__(self, this):
  1163.         self.this = this
  1164.         self.thisown = 0
  1165.  
  1166.     
  1167.     def __repr__(self):
  1168.         return '<C wxMaximizeEvent instance at %s>' % (self.this,)
  1169.  
  1170.  
  1171.  
  1172. class wxMaximizeEvent(wxMaximizeEventPtr):
  1173.     
  1174.     def __init__(self, *_args, **_kwargs):
  1175.         self.this = apply(eventsc.new_wxMaximizeEvent, _args, _kwargs)
  1176.         self.thisown = 1
  1177.  
  1178.  
  1179.  
  1180. class wxJoystickEventPtr(wxEventPtr):
  1181.     
  1182.     def __init__(self, this):
  1183.         self.this = this
  1184.         self.thisown = 0
  1185.  
  1186.     
  1187.     def GetPosition(self, *_args, **_kwargs):
  1188.         val = apply(eventsc.wxJoystickEvent_GetPosition, (self,) + _args, _kwargs)
  1189.         if val:
  1190.             val = wxPointPtr(val)
  1191.             val.thisown = 1
  1192.         
  1193.         return val
  1194.  
  1195.     
  1196.     def GetZPosition(self, *_args, **_kwargs):
  1197.         val = apply(eventsc.wxJoystickEvent_GetZPosition, (self,) + _args, _kwargs)
  1198.         return val
  1199.  
  1200.     
  1201.     def GetButtonState(self, *_args, **_kwargs):
  1202.         val = apply(eventsc.wxJoystickEvent_GetButtonState, (self,) + _args, _kwargs)
  1203.         return val
  1204.  
  1205.     
  1206.     def GetButtonChange(self, *_args, **_kwargs):
  1207.         val = apply(eventsc.wxJoystickEvent_GetButtonChange, (self,) + _args, _kwargs)
  1208.         return val
  1209.  
  1210.     
  1211.     def GetJoystick(self, *_args, **_kwargs):
  1212.         val = apply(eventsc.wxJoystickEvent_GetJoystick, (self,) + _args, _kwargs)
  1213.         return val
  1214.  
  1215.     
  1216.     def SetJoystick(self, *_args, **_kwargs):
  1217.         val = apply(eventsc.wxJoystickEvent_SetJoystick, (self,) + _args, _kwargs)
  1218.         return val
  1219.  
  1220.     
  1221.     def SetButtonState(self, *_args, **_kwargs):
  1222.         val = apply(eventsc.wxJoystickEvent_SetButtonState, (self,) + _args, _kwargs)
  1223.         return val
  1224.  
  1225.     
  1226.     def SetButtonChange(self, *_args, **_kwargs):
  1227.         val = apply(eventsc.wxJoystickEvent_SetButtonChange, (self,) + _args, _kwargs)
  1228.         return val
  1229.  
  1230.     
  1231.     def SetPosition(self, *_args, **_kwargs):
  1232.         val = apply(eventsc.wxJoystickEvent_SetPosition, (self,) + _args, _kwargs)
  1233.         return val
  1234.  
  1235.     
  1236.     def SetZPosition(self, *_args, **_kwargs):
  1237.         val = apply(eventsc.wxJoystickEvent_SetZPosition, (self,) + _args, _kwargs)
  1238.         return val
  1239.  
  1240.     
  1241.     def IsButton(self, *_args, **_kwargs):
  1242.         val = apply(eventsc.wxJoystickEvent_IsButton, (self,) + _args, _kwargs)
  1243.         return val
  1244.  
  1245.     
  1246.     def IsMove(self, *_args, **_kwargs):
  1247.         val = apply(eventsc.wxJoystickEvent_IsMove, (self,) + _args, _kwargs)
  1248.         return val
  1249.  
  1250.     
  1251.     def IsZMove(self, *_args, **_kwargs):
  1252.         val = apply(eventsc.wxJoystickEvent_IsZMove, (self,) + _args, _kwargs)
  1253.         return val
  1254.  
  1255.     
  1256.     def ButtonDown(self, *_args, **_kwargs):
  1257.         val = apply(eventsc.wxJoystickEvent_ButtonDown, (self,) + _args, _kwargs)
  1258.         return val
  1259.  
  1260.     
  1261.     def ButtonUp(self, *_args, **_kwargs):
  1262.         val = apply(eventsc.wxJoystickEvent_ButtonUp, (self,) + _args, _kwargs)
  1263.         return val
  1264.  
  1265.     
  1266.     def ButtonIsDown(self, *_args, **_kwargs):
  1267.         val = apply(eventsc.wxJoystickEvent_ButtonIsDown, (self,) + _args, _kwargs)
  1268.         return val
  1269.  
  1270.     
  1271.     def __repr__(self):
  1272.         return '<C wxJoystickEvent instance at %s>' % (self.this,)
  1273.  
  1274.  
  1275.  
  1276. class wxJoystickEvent(wxJoystickEventPtr):
  1277.     
  1278.     def __init__(self, *_args, **_kwargs):
  1279.         self.this = apply(eventsc.new_wxJoystickEvent, _args, _kwargs)
  1280.         self.thisown = 1
  1281.  
  1282.  
  1283.  
  1284. class wxDropFilesEventPtr(wxEventPtr):
  1285.     
  1286.     def __init__(self, this):
  1287.         self.this = this
  1288.         self.thisown = 0
  1289.  
  1290.     
  1291.     def GetPosition(self, *_args, **_kwargs):
  1292.         val = apply(eventsc.wxDropFilesEvent_GetPosition, (self,) + _args, _kwargs)
  1293.         if val:
  1294.             val = wxPointPtr(val)
  1295.             val.thisown = 1
  1296.         
  1297.         return val
  1298.  
  1299.     
  1300.     def GetNumberOfFiles(self, *_args, **_kwargs):
  1301.         val = apply(eventsc.wxDropFilesEvent_GetNumberOfFiles, (self,) + _args, _kwargs)
  1302.         return val
  1303.  
  1304.     
  1305.     def GetFiles(self, *_args, **_kwargs):
  1306.         val = apply(eventsc.wxDropFilesEvent_GetFiles, (self,) + _args, _kwargs)
  1307.         return val
  1308.  
  1309.     
  1310.     def __repr__(self):
  1311.         return '<C wxDropFilesEvent instance at %s>' % (self.this,)
  1312.  
  1313.  
  1314.  
  1315. class wxDropFilesEvent(wxDropFilesEventPtr):
  1316.     
  1317.     def __init__(self, this):
  1318.         self.this = this
  1319.  
  1320.  
  1321.  
  1322. class wxIdleEventPtr(wxEventPtr):
  1323.     
  1324.     def __init__(self, this):
  1325.         self.this = this
  1326.         self.thisown = 0
  1327.  
  1328.     
  1329.     def RequestMore(self, *_args, **_kwargs):
  1330.         val = apply(eventsc.wxIdleEvent_RequestMore, (self,) + _args, _kwargs)
  1331.         return val
  1332.  
  1333.     
  1334.     def MoreRequested(self, *_args, **_kwargs):
  1335.         val = apply(eventsc.wxIdleEvent_MoreRequested, (self,) + _args, _kwargs)
  1336.         return val
  1337.  
  1338.     
  1339.     def __repr__(self):
  1340.         return '<C wxIdleEvent instance at %s>' % (self.this,)
  1341.  
  1342.  
  1343.  
  1344. class wxIdleEvent(wxIdleEventPtr):
  1345.     
  1346.     def __init__(self, *_args, **_kwargs):
  1347.         self.this = apply(eventsc.new_wxIdleEvent, _args, _kwargs)
  1348.         self.thisown = 1
  1349.  
  1350.  
  1351.  
  1352. class wxUpdateUIEventPtr(wxEventPtr):
  1353.     
  1354.     def __init__(self, this):
  1355.         self.this = this
  1356.         self.thisown = 0
  1357.  
  1358.     
  1359.     def GetChecked(self, *_args, **_kwargs):
  1360.         val = apply(eventsc.wxUpdateUIEvent_GetChecked, (self,) + _args, _kwargs)
  1361.         return val
  1362.  
  1363.     
  1364.     def GetEnabled(self, *_args, **_kwargs):
  1365.         val = apply(eventsc.wxUpdateUIEvent_GetEnabled, (self,) + _args, _kwargs)
  1366.         return val
  1367.  
  1368.     
  1369.     def GetText(self, *_args, **_kwargs):
  1370.         val = apply(eventsc.wxUpdateUIEvent_GetText, (self,) + _args, _kwargs)
  1371.         return val
  1372.  
  1373.     
  1374.     def GetSetText(self, *_args, **_kwargs):
  1375.         val = apply(eventsc.wxUpdateUIEvent_GetSetText, (self,) + _args, _kwargs)
  1376.         return val
  1377.  
  1378.     
  1379.     def GetSetChecked(self, *_args, **_kwargs):
  1380.         val = apply(eventsc.wxUpdateUIEvent_GetSetChecked, (self,) + _args, _kwargs)
  1381.         return val
  1382.  
  1383.     
  1384.     def GetSetEnabled(self, *_args, **_kwargs):
  1385.         val = apply(eventsc.wxUpdateUIEvent_GetSetEnabled, (self,) + _args, _kwargs)
  1386.         return val
  1387.  
  1388.     
  1389.     def Check(self, *_args, **_kwargs):
  1390.         val = apply(eventsc.wxUpdateUIEvent_Check, (self,) + _args, _kwargs)
  1391.         return val
  1392.  
  1393.     
  1394.     def Enable(self, *_args, **_kwargs):
  1395.         val = apply(eventsc.wxUpdateUIEvent_Enable, (self,) + _args, _kwargs)
  1396.         return val
  1397.  
  1398.     
  1399.     def SetText(self, *_args, **_kwargs):
  1400.         val = apply(eventsc.wxUpdateUIEvent_SetText, (self,) + _args, _kwargs)
  1401.         return val
  1402.  
  1403.     
  1404.     def __repr__(self):
  1405.         return '<C wxUpdateUIEvent instance at %s>' % (self.this,)
  1406.  
  1407.  
  1408.  
  1409. class wxUpdateUIEvent(wxUpdateUIEventPtr):
  1410.     
  1411.     def __init__(self, *_args, **_kwargs):
  1412.         self.this = apply(eventsc.new_wxUpdateUIEvent, _args, _kwargs)
  1413.         self.thisown = 1
  1414.  
  1415.  
  1416.  
  1417. class wxSysColourChangedEventPtr(wxEventPtr):
  1418.     
  1419.     def __init__(self, this):
  1420.         self.this = this
  1421.         self.thisown = 0
  1422.  
  1423.     
  1424.     def __repr__(self):
  1425.         return '<C wxSysColourChangedEvent instance at %s>' % (self.this,)
  1426.  
  1427.  
  1428.  
  1429. class wxSysColourChangedEvent(wxSysColourChangedEventPtr):
  1430.     
  1431.     def __init__(self, *_args, **_kwargs):
  1432.         self.this = apply(eventsc.new_wxSysColourChangedEvent, _args, _kwargs)
  1433.         self.thisown = 1
  1434.  
  1435.  
  1436.  
  1437. class wxNotifyEventPtr(wxCommandEventPtr):
  1438.     
  1439.     def __init__(self, this):
  1440.         self.this = this
  1441.         self.thisown = 0
  1442.  
  1443.     
  1444.     def IsAllowed(self, *_args, **_kwargs):
  1445.         val = apply(eventsc.wxNotifyEvent_IsAllowed, (self,) + _args, _kwargs)
  1446.         return val
  1447.  
  1448.     
  1449.     def Allow(self, *_args, **_kwargs):
  1450.         val = apply(eventsc.wxNotifyEvent_Allow, (self,) + _args, _kwargs)
  1451.         return val
  1452.  
  1453.     
  1454.     def Veto(self, *_args, **_kwargs):
  1455.         val = apply(eventsc.wxNotifyEvent_Veto, (self,) + _args, _kwargs)
  1456.         return val
  1457.  
  1458.     
  1459.     def __repr__(self):
  1460.         return '<C wxNotifyEvent instance at %s>' % (self.this,)
  1461.  
  1462.  
  1463.  
  1464. class wxNotifyEvent(wxNotifyEventPtr):
  1465.     
  1466.     def __init__(self, *_args, **_kwargs):
  1467.         self.this = apply(eventsc.new_wxNotifyEvent, _args, _kwargs)
  1468.         self.thisown = 1
  1469.  
  1470.  
  1471.  
  1472. class wxDisplayChangedEventPtr(wxEventPtr):
  1473.     
  1474.     def __init__(self, this):
  1475.         self.this = this
  1476.         self.thisown = 0
  1477.  
  1478.     
  1479.     def __repr__(self):
  1480.         return '<C wxDisplayChangedEvent instance at %s>' % (self.this,)
  1481.  
  1482.  
  1483.  
  1484. class wxDisplayChangedEvent(wxDisplayChangedEventPtr):
  1485.     
  1486.     def __init__(self, *_args, **_kwargs):
  1487.         self.this = apply(eventsc.new_wxDisplayChangedEvent, _args, _kwargs)
  1488.         self.thisown = 1
  1489.  
  1490.  
  1491.  
  1492. class wxPaletteChangedEventPtr(wxEventPtr):
  1493.     
  1494.     def __init__(self, this):
  1495.         self.this = this
  1496.         self.thisown = 0
  1497.  
  1498.     
  1499.     def SetChangedWindow(self, *_args, **_kwargs):
  1500.         val = apply(eventsc.wxPaletteChangedEvent_SetChangedWindow, (self,) + _args, _kwargs)
  1501.         return val
  1502.  
  1503.     
  1504.     def GetChangedWindow(self, *_args, **_kwargs):
  1505.         val = apply(eventsc.wxPaletteChangedEvent_GetChangedWindow, (self,) + _args, _kwargs)
  1506.         return val
  1507.  
  1508.     
  1509.     def __repr__(self):
  1510.         return '<C wxPaletteChangedEvent instance at %s>' % (self.this,)
  1511.  
  1512.  
  1513.  
  1514. class wxPaletteChangedEvent(wxPaletteChangedEventPtr):
  1515.     
  1516.     def __init__(self, *_args, **_kwargs):
  1517.         self.this = apply(eventsc.new_wxPaletteChangedEvent, _args, _kwargs)
  1518.         self.thisown = 1
  1519.  
  1520.  
  1521.  
  1522. class wxQueryNewPaletteEventPtr(wxEventPtr):
  1523.     
  1524.     def __init__(self, this):
  1525.         self.this = this
  1526.         self.thisown = 0
  1527.  
  1528.     
  1529.     def SetPaletteRealized(self, *_args, **_kwargs):
  1530.         val = apply(eventsc.wxQueryNewPaletteEvent_SetPaletteRealized, (self,) + _args, _kwargs)
  1531.         return val
  1532.  
  1533.     
  1534.     def GetPaletteRealized(self, *_args, **_kwargs):
  1535.         val = apply(eventsc.wxQueryNewPaletteEvent_GetPaletteRealized, (self,) + _args, _kwargs)
  1536.         return val
  1537.  
  1538.     
  1539.     def __repr__(self):
  1540.         return '<C wxQueryNewPaletteEvent instance at %s>' % (self.this,)
  1541.  
  1542.  
  1543.  
  1544. class wxQueryNewPaletteEvent(wxQueryNewPaletteEventPtr):
  1545.     
  1546.     def __init__(self, *_args, **_kwargs):
  1547.         self.this = apply(eventsc.new_wxQueryNewPaletteEvent, _args, _kwargs)
  1548.         self.thisown = 1
  1549.  
  1550.  
  1551.  
  1552. class wxWindowCreateEventPtr(wxCommandEventPtr):
  1553.     
  1554.     def __init__(self, this):
  1555.         self.this = this
  1556.         self.thisown = 0
  1557.  
  1558.     
  1559.     def GetWindow(self, *_args, **_kwargs):
  1560.         val = apply(eventsc.wxWindowCreateEvent_GetWindow, (self,) + _args, _kwargs)
  1561.         return val
  1562.  
  1563.     
  1564.     def __repr__(self):
  1565.         return '<C wxWindowCreateEvent instance at %s>' % (self.this,)
  1566.  
  1567.  
  1568.  
  1569. class wxWindowCreateEvent(wxWindowCreateEventPtr):
  1570.     
  1571.     def __init__(self, *_args, **_kwargs):
  1572.         self.this = apply(eventsc.new_wxWindowCreateEvent, _args, _kwargs)
  1573.         self.thisown = 1
  1574.  
  1575.  
  1576.  
  1577. class wxWindowDestroyEventPtr(wxCommandEventPtr):
  1578.     
  1579.     def __init__(self, this):
  1580.         self.this = this
  1581.         self.thisown = 0
  1582.  
  1583.     
  1584.     def GetWindow(self, *_args, **_kwargs):
  1585.         val = apply(eventsc.wxWindowDestroyEvent_GetWindow, (self,) + _args, _kwargs)
  1586.         return val
  1587.  
  1588.     
  1589.     def __repr__(self):
  1590.         return '<C wxWindowDestroyEvent instance at %s>' % (self.this,)
  1591.  
  1592.  
  1593.  
  1594. class wxWindowDestroyEvent(wxWindowDestroyEventPtr):
  1595.     
  1596.     def __init__(self, *_args, **_kwargs):
  1597.         self.this = apply(eventsc.new_wxWindowDestroyEvent, _args, _kwargs)
  1598.         self.thisown = 1
  1599.  
  1600.  
  1601.  
  1602. class wxContextMenuEventPtr(wxCommandEventPtr):
  1603.     
  1604.     def __init__(self, this):
  1605.         self.this = this
  1606.         self.thisown = 0
  1607.  
  1608.     
  1609.     def GetPosition(self, *_args, **_kwargs):
  1610.         val = apply(eventsc.wxContextMenuEvent_GetPosition, (self,) + _args, _kwargs)
  1611.         if val:
  1612.             val = wxPointPtr(val)
  1613.         
  1614.         return val
  1615.  
  1616.     
  1617.     def SetPosition(self, *_args, **_kwargs):
  1618.         val = apply(eventsc.wxContextMenuEvent_SetPosition, (self,) + _args, _kwargs)
  1619.         return val
  1620.  
  1621.     
  1622.     def __repr__(self):
  1623.         return '<C wxContextMenuEvent instance at %s>' % (self.this,)
  1624.  
  1625.  
  1626.  
  1627. class wxContextMenuEvent(wxContextMenuEventPtr):
  1628.     
  1629.     def __init__(self, *_args, **_kwargs):
  1630.         self.this = apply(eventsc.new_wxContextMenuEvent, _args, _kwargs)
  1631.         self.thisown = 1
  1632.  
  1633.  
  1634.  
  1635. class wxTimerEventPtr(wxEventPtr):
  1636.     
  1637.     def __init__(self, this):
  1638.         self.this = this
  1639.         self.thisown = 0
  1640.  
  1641.     
  1642.     def GetInterval(self, *_args, **_kwargs):
  1643.         val = apply(eventsc.wxTimerEvent_GetInterval, (self,) + _args, _kwargs)
  1644.         return val
  1645.  
  1646.     
  1647.     def __repr__(self):
  1648.         return '<C wxTimerEvent instance at %s>' % (self.this,)
  1649.  
  1650.  
  1651.  
  1652. class wxTimerEvent(wxTimerEventPtr):
  1653.     
  1654.     def __init__(self, *_args, **_kwargs):
  1655.         self.this = apply(eventsc.new_wxTimerEvent, _args, _kwargs)
  1656.         self.thisown = 1
  1657.  
  1658.  
  1659.  
  1660. class wxTextUrlEventPtr(wxCommandEventPtr):
  1661.     
  1662.     def __init__(self, this):
  1663.         self.this = this
  1664.         self.thisown = 0
  1665.  
  1666.     
  1667.     def GetMouseEvent(self, *_args, **_kwargs):
  1668.         val = apply(eventsc.wxTextUrlEvent_GetMouseEvent, (self,) + _args, _kwargs)
  1669.         return val
  1670.  
  1671.     
  1672.     def GetURLStart(self, *_args, **_kwargs):
  1673.         val = apply(eventsc.wxTextUrlEvent_GetURLStart, (self,) + _args, _kwargs)
  1674.         return val
  1675.  
  1676.     
  1677.     def GetURLEnd(self, *_args, **_kwargs):
  1678.         val = apply(eventsc.wxTextUrlEvent_GetURLEnd, (self,) + _args, _kwargs)
  1679.         return val
  1680.  
  1681.     
  1682.     def __repr__(self):
  1683.         return '<C wxTextUrlEvent instance at %s>' % (self.this,)
  1684.  
  1685.  
  1686.  
  1687. class wxTextUrlEvent(wxTextUrlEventPtr):
  1688.     
  1689.     def __init__(self, *_args, **_kwargs):
  1690.         self.this = apply(eventsc.new_wxTextUrlEvent, _args, _kwargs)
  1691.         self.thisown = 1
  1692.  
  1693.  
  1694.  
  1695. class wxPyEventPtr(wxEventPtr):
  1696.     
  1697.     def __init__(self, this):
  1698.         self.this = this
  1699.         self.thisown = 0
  1700.  
  1701.     
  1702.     def __del__(self, delfunc = eventsc.delete_wxPyEvent):
  1703.         if self.thisown == 1:
  1704.             
  1705.             try:
  1706.                 delfunc(self)
  1707.             except:
  1708.                 pass
  1709.  
  1710.         
  1711.  
  1712.     
  1713.     def SetSelf(self, *_args, **_kwargs):
  1714.         val = apply(eventsc.wxPyEvent_SetSelf, (self,) + _args, _kwargs)
  1715.         return val
  1716.  
  1717.     
  1718.     def GetSelf(self, *_args, **_kwargs):
  1719.         val = apply(eventsc.wxPyEvent_GetSelf, (self,) + _args, _kwargs)
  1720.         return val
  1721.  
  1722.     
  1723.     def __repr__(self):
  1724.         return '<C wxPyEvent instance at %s>' % (self.this,)
  1725.  
  1726.  
  1727.  
  1728. class wxPyEvent(wxPyEventPtr):
  1729.     
  1730.     def __init__(self, *_args, **_kwargs):
  1731.         self.this = apply(eventsc.new_wxPyEvent, _args, _kwargs)
  1732.         self.thisown = 1
  1733.         self.SetSelf(self)
  1734.  
  1735.  
  1736.  
  1737. class wxPyCommandEventPtr(wxCommandEventPtr):
  1738.     
  1739.     def __init__(self, this):
  1740.         self.this = this
  1741.         self.thisown = 0
  1742.  
  1743.     
  1744.     def __del__(self, delfunc = eventsc.delete_wxPyCommandEvent):
  1745.         if self.thisown == 1:
  1746.             
  1747.             try:
  1748.                 delfunc(self)
  1749.             except:
  1750.                 pass
  1751.  
  1752.         
  1753.  
  1754.     
  1755.     def SetSelf(self, *_args, **_kwargs):
  1756.         val = apply(eventsc.wxPyCommandEvent_SetSelf, (self,) + _args, _kwargs)
  1757.         return val
  1758.  
  1759.     
  1760.     def GetSelf(self, *_args, **_kwargs):
  1761.         val = apply(eventsc.wxPyCommandEvent_GetSelf, (self,) + _args, _kwargs)
  1762.         return val
  1763.  
  1764.     
  1765.     def __repr__(self):
  1766.         return '<C wxPyCommandEvent instance at %s>' % (self.this,)
  1767.  
  1768.  
  1769.  
  1770. class wxPyCommandEvent(wxPyCommandEventPtr):
  1771.     
  1772.     def __init__(self, *_args, **_kwargs):
  1773.         self.this = apply(eventsc.new_wxPyCommandEvent, _args, _kwargs)
  1774.         self.thisown = 1
  1775.         self.SetSelf(self)
  1776.  
  1777.  
  1778. wxNewEventType = eventsc.wxNewEventType
  1779.