The base class for the Adata top window.
A Frame with Menu, the console and a status bar.
TopWindow(app)¶Bases: WX
A wx frame with some helpers
Events,
Menu,
Dialogs
AddMenu(title, menuitem)¶Create MenuBar and Menur if needed, and add a MenuItem.
AddMenuItem(menu, name='', call=None, help='', style=<Mock name='mock.ITEM_NORMAL' id='139992551991952'>, icon=None)¶DirDialog(message, defaultPath='C:')¶Returns path or None
Error(message, title='Error')¶FileDialog(message, defaultDir='C:', wildcard='*.*')¶Returns file path or None
Initialize()¶Message(message, title='Message')¶OnClose(event=None)¶OnCloseWindow(event)¶OnEcho(text, style='default', lf=True, marker=None, icon=None)¶Handle a app.echo event at the main thread
Do not use **kwargs because the spec check
OnExit(event=None)¶OnOpen(e)¶TODO: Open a script
OnSize(event=None)¶OnTaskEvent(event)¶Show Result status.
OnTaskInfo(text)¶OnTimer(event)¶Question(message, title='Question')¶UserInterface()¶The usual layout is one scintilla text window