from storesms import SMSstore, SMSmesg
import dnotify
from fingerscroll2 import FingerScroll
+from tapboard import TapBoard
###########################################################
# Writing recognistion code
sw.add(self.message)
self.message.get_buffer().connect('changed', self.buff_changed)
+ # keyboard
+ t = TapBoard(); t.show()
+ v.pack_start(t, expand=False)
+ t.connect('key', self.use_key)
+
h = gtk.HBox()
h.set_size_request(-1,80)
h.set_homogeneous(True)
w.insert_at_cursor(self.cutbuffer)
pass
+ def use_key(self, tb, str):
+ w = self.get_toplevel().get_focus()
+ if w == None:
+ w = self.message
+ if str == '\b':
+ w.emit('backspace')
+ else:
+ w.emit('insert_at_cursor', str)
+
def watch_clip(self, board):
self.cb = gtk.Clipboard(selection=board)
self.targets = [ (gtk.gdk.SELECTION_TYPE_STRING, 0, 0) ]