easymacro/source/easymacro/__init__.py

33 lines
749 B
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-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-15 23:57:31 -05:00
'email': Email,
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,
2022-08-15 23:57:31 -05:00
'paths': Paths,
2022-08-16 22:45:11 -05:00
'url': URL,
'shell': Shell,
'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}'")