Fix usage summary
[electrum-nvc.git] / plugins / virtualkeyboard.py
index f150e29..be02e36 100644 (file)
@@ -1,13 +1,17 @@
 from PyQt4.QtGui import *
-from electrum_gui import BasePlugin
-from electrum_gui.i18n import _
+from electrum import BasePlugin
+from electrum.i18n import _
 
 class Plugin(BasePlugin):
 
 
-    def __init__(self, gui):
-        BasePlugin.__init__(self, gui, 'virtualkeyboard', 'Virtual Keyboard',
-                            _("Add an optional, mouse keyboard to the password dialog.\nWarning: do not use this if it makes you pick a weaker password."))
+    def fullname(self):
+        return 'Virtual Keyboard'
+
+    def description(self):
+        return '%s\n%s' % (_("Add an optional virtual keyboard to the password dialog."), _("Warning: do not use this if it makes you pick a weaker password."))
+
+    def init(self):
         self.vkb = None
         self.vkb_index = 0