From ccbffddc8d4d0b983536ceb46cabf1c698cc5e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sun, 5 Jul 2009 02:54:20 +0200 Subject: Change plugins to use WidgetPlugin if needed --- plugins/exception.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/exception.py') diff --git a/plugins/exception.py b/plugins/exception.py index 23065e6..3fe7287 100644 --- a/plugins/exception.py +++ b/plugins/exception.py @@ -13,8 +13,8 @@ def throw (*args, **kwargs): raise Exception, "As requested, Sir!" -p = Plugin() +p = WidgetPlugin() p.__name__ = "ExceptionThrower" p.__author__ = "René 'Necoro' Neumann" -p.create_widget("Plugin Menu", "Throw exception", activate = throw) +p.widget_init = lambda: p.create_widget("Plugin Menu", "Throw exception", activate = throw) register(p) -- cgit v1.2.3