1
0

plugins: do not overload __init__, use init() instead

This commit is contained in:
ThomasV
2013-08-05 17:15:01 +02:00
parent 58538ba825
commit b08f1a2a7b
8 changed files with 92 additions and 62 deletions

View File

@@ -5,8 +5,13 @@ from electrum_gui.i18n import _
class Plugin(BasePlugin):
def __init__(self, gui):
BasePlugin.__init__(self, gui, 'virtualkeyboard', 'Virtual Keyboard', '%s\n%s' % (_("Add an optional, mouse keyboard to the password dialog."), _("Warning: 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, mouse 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