Repository navigation
Expand file tree
/
Copy path__init__.py
More file actions
68 lines (58 loc) · 2.01 KB
/
Copy path__init__.py
File metadata and controls
68 lines (58 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
"""
This is a high level API that wraps the core features of the
application and let you use them in your plugins. The different plugin
interfaces and a set of utility widgets are also defined here.
This API is considered stable, care is taken to not break backward
compatibility. This package is covered by unit tests and care is taken to keep
the coverage as high as possible.
.. warning:: This API will be considered stable once HackEdit hits the beta
status. You have been warned...
.. note:: Most of the API functions need a reference to the main window,
which is the central object of the application. In order to simplify the
API and since those functions are meant for writing plugins and plugins
already hold a reference to the main window, we decided to remove the
`main_window` parameter from every function and retrieve it automatically
by inspecting the stack frames (we retrieve the `_window` attribute from
the calling object).
If you're calling the api functions outside of a plugin, the active window
will be used instead (unless you have a reference to the main window named
`_window`).
This makes the API easier to use, i.e. you don't have to know anything
about the main window and its underlying implementation. This also opens
up lots of possibilities: you can use the api from within HackEdit itself,
e.g. through the developer console plugin...
"""
from . import editor
from . import events
from . import gettext
from . import index
from . import interpreters
from . import plugins
from . import project
from . import shortcuts
from . import signals
from . import special_icons
from . import system
from . import tasks
from . import utils
from . import versions
from . import widgets
from . import window
__all__ = [
'editor',
'events',
'gettext',
'index',
'interpreters',
'plugins',
'project',
'shortcuts',
'signals',
'special_icons',
'system',
'tasks',
'utils',
'versions',
'widgets',
'window'
]