def __init__(self, keyEventType=wx.EVT_NULL):
        '''
        Constructs a wx.KeyEvent.
        '''
        theClass = 'KeyEvent'

        wx.RegisterFirstCallerClassName(self, theClass)

        Event.__init__(self)
        KeyboardState.__init__(self)

        self.tsBeginClassRegistration(theClass, wx.ID_ANY)

        self.ts_keyEventType = keyEventType
 
        self.ts_keyCode = 0
        self.ts_rawKeyCode = 0
        self.ts_rawKeyFlags = 0
        self.ts_unicodeKey = 0
        self.ts_x = 0
        self.ts_y = 0
 
##        self.thisown = theClass

        self.tsEndClassRegistration(theClass)
    def __init__(self):
        '''
        Constructs a wx.MouseState.
        '''
##        theClass = 'MouseState'
##        # Create class membership flag self.thisown
##        self.tsRegisterClassNameAndMembershipFlag(theClass)

        KeyboardState.__init__(self)

        self.ts_LeftIsDown = False
        self.ts_MiddleIsDown = False
        self.ts_RightIsDown = False
        self.ts_Aux1IsDown = False
        self.ts_Aux2IsDown = False
        self.ts_X = 0
        self.ts_Y = 0