|
@@ -31,13 +31,13 @@ class InputEventBlocker():
|
|
|
self.e_txt = tk.StringVar()
|
|
|
self.__init = 1
|
|
|
except Exception as e:
|
|
|
- pirnt("init() exception",e)
|
|
|
+ print("init() exception",e)
|
|
|
def _lock(self):
|
|
|
MAIN._global_short_key = 0
|
|
|
try:MAIN.master.commands.elem["S-KEY"]["bg"] = "red"
|
|
|
except Exception as e:cprint("exc",self,e)
|
|
|
cmd="xset -display :0.0 r rate 240 15"
|
|
|
- print(cmd)
|
|
|
+ print("CMD:",cmd)
|
|
|
os.system(cmd)
|
|
|
|
|
|
def _unlock(self):
|
|
@@ -45,7 +45,7 @@ class InputEventBlocker():
|
|
|
try:MAIN.master.commands.elem["S-KEY"]["bg"] = "green"
|
|
|
except Exception as e:cprint("exc",self,e)
|
|
|
cmd = "xset -display :0.0 r off"
|
|
|
- print(cmd)
|
|
|
+ print("CMD:",cmd)
|
|
|
os.system(cmd)
|
|
|
|
|
|
|
|
@@ -65,7 +65,7 @@ class InputEventBlocker():
|
|
|
self.init()
|
|
|
#print()
|
|
|
|
|
|
- cprint(self,event,args)
|
|
|
+ cprint(" ",self,event,args)
|
|
|
#print("###-",self.e_txt,dir(self.e_txt))
|
|
|
if "S-KEY" not in MAIN.master.commands.elem:
|
|
|
#cprint("<GLOBAL-GUI-EVENT-DISABLED>",event,color="red")
|
|
@@ -182,7 +182,7 @@ class Dialog():
|
|
|
self._close()
|
|
|
time.sleep(0.1)
|
|
|
input_event_blocker.unlock()
|
|
|
- print(self,"ok()",self._exit)
|
|
|
+ print(" ",self,"ok()",self._exit)
|
|
|
self._cb(self._exit)
|
|
|
|
|
|
def _event(self,event,**args):
|