commit 079279251378eb9ac5e1b434b9697a762728e19f
parent 6372a3f6ce9b4215c884a699468a12716ccc1576
Author: Neil Booth <kyuupichan@gmail.com>
Date: Fri, 4 Sep 2015 17:49:20 +0900
Remove init_qt hook for virtkeyboard plugin
Diffstat:
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/plugins/virtualkeyboard.py b/plugins/virtualkeyboard.py
@@ -5,11 +5,8 @@ import random
class Plugin(BasePlugin):
- @hook
- def init_qt(self, gui):
- self.gui = gui
- self.vkb = None
- self.vkb_index = 0
+ vkb = None
+ vkb_index = 0
@hook
def password_dialog(self, pw, grid, pos):
@@ -35,7 +32,7 @@ class Plugin(BasePlugin):
chars = 'ABCDEFGHIJKLMNOPQRTSUVWXYZ '
elif i == 2:
chars = '1234567890!?.,;:/%&()[]{}+-'
-
+
n = len(chars)
s = []
for i in xrange(n):
@@ -47,7 +44,7 @@ class Plugin(BasePlugin):
def add_target(t):
return lambda: pw.setText(str(pw.text()) + t)
-
+
vbox = QVBoxLayout()
grid = QGridLayout()
grid.setSpacing(2)
@@ -61,4 +58,3 @@ class Plugin(BasePlugin):
vbox.addLayout(grid)
return vbox
-