def __init__(self, title=wx.EmptyString, style=0):
        '''
        '''
        theClass = 'Menu'

        wx.RegisterFirstCallerClassName(self, theClass)

        EvtHandler.__init__(self)

        id = wx.ID_ANY

        self.tsBeginClassRegistration(theClass, id)

        if DEBUG:
            self.logger.debug('              title: %s' % title)
            self.logger.debug('              style: 0x%X' % style)

        self.tsEndClassRegistration(theClass)
    def __init__(self,
                 owner,
                 id=wx.ID_ANY):
        '''
        Construct an interval timeout event generator.
        '''
        theClass = 'TimerBase'

        # Capture initial caller parametsrs before they are changed
        self.caller_owner = owner
        self.caller_id = id

        wx.RegisterFirstCallerClassName(self, theClass)

        EvtHandler.__init__(self)

        id = wx.ID_ANY

        self.tsBeginClassRegistration(theClass, id)

        # Init the scheduler
        if TimerBase.ts_scheduler is None:
            TimerBase.ts_scheduler = TimerScheduler()
 
        # Register each unique wxPython instance.
        self.ts_TimerAssignedId = self.tsNewId()
        self.ts_Id = id
 
        self.ts_Milliseconds = -1
        self.ts_Owner = owner
        self.ts_Tag = -1
        self.ts_running = False
        self.ts_oneShot = False
        self.ts_TimerDescriptor = None

        self.tsEndClassRegistration(theClass)
    def __init__(self):
        '''
        Create a new application object, starting the bootstrap process.
        '''

        theClass = 'PyApp'

        wx.RegisterFirstCallerClassName(self, theClass)

        # Initiate bootstrap process

        EvtHandler.__init__(self)

        applicationId = wx.ID_ANY

        self.tsBeginClassRegistration(theClass, applicationId)

        self.ts_theTerminal = tsGTUI.GraphicalTextUserInterface(theClass)
        try:
            if True:
                PyApp._TheGeometry = self.ts_theTerminal.StdscrGeometryPixels
            else:
                (theScreenX,
                 theScreenY,
                 theScreenWidth,
                 theScreenHeight) = self.ts_theTerminal.StdscrGeometry

                PyApp._TheGeometry = wxRect(
                    theScreenX * wx.pixelWidthPerCharacter,
                    theScreenY * wx.pixelHeightPerCharacter,
                    theScreenWidth * wx.pixelWidthPerCharacter,
                    theScreenHeight * wx.pixelHeightPerCharacter)

        except AttributeError:
            PyApp._TheGeometry = wxRect(-1, -1, -1, -1)

        self.ts_Active = True
        self.ts_AppName = None
        self.ts_AssertMode = False
        self.ts_ClassName = theClass
        self.ts_EventLoop = None
        self.ts_Exit = False
        self.ts_ExitMainLoop = False
        self.ts_ExitOnFrameDelete = True
        self.ts_IdleEvents = False
        self.ts_IsActive = False
        self.ts_LayoutDirection = wx.Layout_Default

        self.ts_PrintMode = wx.UseDefaultValue

##        self.ts_thisown = None

        # Create a Frame that encompasses entire curses screen (stdscr).
        # It is the default for handling mouse clicks outside of those
        # top-level windows (frames and dialogs), and their children,
        # that do not fully occupy the curses screen.
        theParent = None
        self.ts_TheTopUserWindow = None
        self.ts_TheTopWindow = wxScreen(
            theParent,
            id=wx.ID_ANY,
            title='Screen',
            pos=wx.DefaultPosition,
            size=wx.DefaultSize,
            style=wx.DEFAULT_FRAME_STYLE,
            name=wx.ScreenNameStr)

        # Set default Window that will receive Keyboard Text Entry Input.
        # Must bypass use of self.tsRegisterKeyboardInputOrder()
        try:

            tsWxGTUI_DataBase.KeyboardInputRecipients[
                'lifoList'] = self.ts_TheTopWindow

        except Exception, errorCode:

            msg = 'txWxPyApp.__init__: errorCode=""%s"' % str(errorCode)
            self.logger.error(msg)
            print('ERROR: %s\n' % msg)
            raise tse.ProgramException(tse.APPLICATION_TRAP, msg)