diff options
author | Matthieu Gautier <starmad@pegase.localdomain> | 2009-03-25 20:05:39 +0100 |
---|---|---|
committer | Matthieu Gautier <starmad@pegase.localdomain> | 2009-03-25 20:05:39 +0100 |
commit | 338a80b927a7fc5a390b7359253c2d6a7a86910d (patch) | |
tree | 43bd45cb112a49b5d99fb4d29b6eef146e330a31 /g-ed-it/__init__.py | |
parent | a7653c3be74a572ae8f874e2ec84cf8c127d5b99 (diff) | |
download | g-ed-it-338a80b927a7fc5a390b7359253c2d6a7a86910d.tar.gz g-ed-it-338a80b927a7fc5a390b7359253c2d6a7a86910d.tar.xz g-ed-it-338a80b927a7fc5a390b7359253c2d6a7a86910d.zip |
Create a sub-dir g-ed-it.
Signed-off-by: Matthieu Gautier <starmad@pegase.localdomain>
Diffstat (limited to 'g-ed-it/__init__.py')
-rw-r--r-- | g-ed-it/__init__.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/g-ed-it/__init__.py b/g-ed-it/__init__.py new file mode 100644 index 0000000..d57f401 --- /dev/null +++ b/g-ed-it/__init__.py @@ -0,0 +1,21 @@ +import gedit + +import os +import os.path + +import g_ed_it + + +class G_ed_it(gedit.Plugin): + def __init__(self): + gedit.Plugin.__init__(self) + self.instances = {} + + def activate(self, window): + self.instances[window] = g_ed_it.PluginHelper(self, window) + + def deactivate(self, window): + self.instances[window].deactivate() + + def update_ui(self, window): + self.instances[window].update_ui() |