comparison clients/editor/plugins/plugin.py @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4a0efb7baf70
1 # coding: utf-8
2
3 import pychan.widgets as widgets
4
5 class Plugin(object):
6 """
7 Plugin base for the editor.
8 Currently transitional code.
9 """
10 def __init__(self):
11 self.menu_items = {}
12
13 def install(self,gui):
14 for key in self.menu_items:
15 button = widgets.Button(name=key,text=key)
16 gui.addChild(button)
17 gui.mapEvents(self.menu_items)
18 gui.adaptLayout()
19
20 def deinstall(self,fifedit):
21 pass