Эх сурвалжийг харах

fix: nohup, add:TK-Pink clear

micha 6 сар өмнө
parent
commit
9513e20937
2 өөрчлөгдсөн 9 нэмэгдсэн , 3 устгасан
  1. 3 3
      _LibreLightDesk.py
  2. 6 0
      tool/TK-Ping.py

+ 3 - 3
_LibreLightDesk.py

@@ -2082,7 +2082,7 @@ if __run_main:
     # =======================================================================
     name="SDL-MIDI"
     def sdl_config():
-        cmd="nohup /usr/bin/python3 /opt/LibreLight/Xdesk/tksdl/midi.py &"
+        cmd="nohup /usr/bin/python3 /opt/LibreLight/Xdesk/tksdl/midi.py > /dev/null 2>&1 &"
         cmd="/usr/bin/python3 /opt/LibreLight/Xdesk/tksdl/midi.py " #&"
         print(cmd)
         #os.popen(cmd)
@@ -2230,7 +2230,7 @@ if __run_main:
     # =======================================================================
     name="TK-Ping" #"TK-EXEC"
     def sdl_config():
-        cmd="nohup /usr/bin/python3 /opt/LibreLight/Xdesk/tool/TK-Ping.py" #&"
+        cmd="nohup /usr/bin/python3 /opt/LibreLight/Xdesk/tool/TK-Ping.py > /dev/null 2>&1 " #&"
         print(cmd)
 
         def xyz123(cmd):
@@ -2254,7 +2254,7 @@ if __run_main:
     # =======================================================================
     name="Nodescanner" #"TK-EXEC"
     def sdl_config():
-        cmd="nohup /usr/bin/python3 /opt/LibreLight/Xdesk/tool/TK-Nodescanner.py" #&"
+        cmd="nohup /usr/bin/python3 /opt/LibreLight/Xdesk/tool/TK-Nodescanner.py > /dev/null 2>&1 " #&"
         print(cmd)
 
         def xyz123(cmd):

+ 6 - 0
tool/TK-Ping.py

@@ -79,6 +79,9 @@ e_poll_new.pack(side="left")
 import queue
 q = queue.Queue()
 
+def clear_list():
+    b_scan.delete("0.0","end")
+
 def sort_list():
     lines = b_scan.get("0.0","end")
     lines = lines.split("\n")
@@ -145,6 +148,9 @@ btn_ping.pack(side="left",expand=0,fill="y")
 b_scan2 = Tkinter.Button(line_frame,text="sort",width=8,command=sort_list,font=font2)
 b_scan2.pack(side="left",expand=0,fill="y")
 #-------------------------------------------- line
+b_scan2 = Tkinter.Button(line_frame,text="clear",width=8,command=clear_list,font=font2)
+b_scan2.pack(side="left",expand=0,fill="y")
+#-------------------------------------------- line
 
 eframe10 = Tkinter.Frame(eframe1)
 eframe10.pack(side="top",expand=1,fill="both")