easymacro/source/easymacro/__init__.py

42 lines
1.1 KiB
Python
Raw Normal View History

2022-08-11 22:33:41 -05:00
#!/usr/bin/env python3
from .easymain import *
2022-08-15 23:57:31 -05:00
from .easydialog import *
2022-08-11 22:33:41 -05:00
from .easytools import *
from .easydocs import LODocuments
def __getattr__(name):
classes = {
'active': LODocuments().active,
2022-08-21 00:49:47 -05:00
'active_sheet': LODocuments().active.active,
'clipboard': ClipBoard,
'cmd': LOMain.commands,
2022-08-16 22:45:11 -05:00
'color': Color(),
'config': Config,
2022-08-15 23:57:31 -05:00
'dates': Dates,
'dialog': LODialog,
2022-08-17 11:42:44 -05:00
'dispatch': LOMain.dispatch,
2022-08-18 22:42:32 -05:00
'docs': LODocuments(),
2022-08-15 23:57:31 -05:00
'email': Email,
'get_config': get_app_config,
2022-08-17 11:42:44 -05:00
'filters': LOMain.filters,
'fonts': LOMain.fonts,
2022-08-16 22:45:11 -05:00
'hash': Hash,
2022-08-15 23:57:31 -05:00
'inspect': LOInspect,
2022-08-16 22:45:11 -05:00
'macro': Macro,
'menus': LOMenus(),
2022-08-15 23:57:31 -05:00
'paths': Paths,
2022-08-16 22:45:11 -05:00
'url': URL,
2022-08-21 00:49:47 -05:00
'selection': LODocuments().active.selection,
'set_config': set_app_config,
2022-08-16 22:45:11 -05:00
'shell': Shell,
'shortcuts': LOShortCuts(),
2022-08-16 22:45:11 -05:00
'timer': Timer,
2022-08-11 22:33:41 -05:00
}
if name in classes:
return classes[name]
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")