blob: ecfec5bdff9ec51b2ae149811509e0f67f36207f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
from Xlib import X
import normal
from time import sleep
def text_mode(self, event, char):
"""
'text mode' for when you just want to type text, i.e. 'disabled mode'.
"""
if char and char == '`':
"""
Go to normal mode again!
"""
self.press('Escape')
sleep(0.1)
self.press('Escape')
self.mode = normal.normal_mode
return
self.inkscape.send_event(event, propagate = True)
self.disp.flush()
self.disp.sync()
|