Parcourir la source

cleanup: print

micha il y a 6 mois
Parent
commit
6298a03d17
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 5 5
      tkgui/dialog.py

+ 5 - 5
tkgui/dialog.py

@@ -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):