micha 3 роки тому
батько
коміт
17f2b520f7
2 змінених файлів з 12 додано та 4 видалено
  1. 5 2
      _LibreLightDesk.py
  2. 7 2
      console.py

+ 5 - 2
_LibreLightDesk.py

@@ -20,7 +20,10 @@ along with LibreLight.  If not, see <http://www.gnu.org/licenses/>.
 """
 import random
 rnd_id = str(random.randint(1000,9000))
-rnd_id += " Beta 22.01"
+rnd_id += " Beta 22.02 "
+import subprocess
+rnd_id += subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('ascii').strip()
+
 try:
     xtitle = __file__
 except:
@@ -1086,7 +1089,7 @@ class GUI(Base):
                 print(dir(self.elem_fx_commands[name]))
     def btn_cfg(self,nr):
         txt = PRESETS.btn_cfg(nr) 
-        txt = tkinter.simpledialog.askstring("CFG-BTN","GO,FLASH,TOGGLE,SWOP\n EXE:"+str(nr+1),initialvalue=txt)
+        txt = tkinter.simpledialog.askstring("CFG-BTN","GO=GO\nFL=FLASH\nSEL=SELECT\n EXE:"+str(nr+1),initialvalue=txt)
         if txt:
             PRESETS.btn_cfg(nr,txt)
             self.elem_presets[nr]["text"] = PRESETS.get_btn_txt(nr)

+ 7 - 2
console.py

@@ -19,10 +19,15 @@ along with LibreLight.  If not, see <http://www.gnu.org/licenses/>.
 (c) 2012 micha@uxsrv.de
 """
 import sys
+rnd_id = ""
+rnd_id += " Beta 22.02 "
+import subprocess
+rnd_id += subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('ascii').strip()
+
 if "__file__" in dir():
-    sys.stdout.write("\x1b]2;"+str(__file__)+"\x07") # terminal title
+    sys.stdout.write("\x1b]2;"+str(__file__)+" "+rnd_id+"\x07") # terminal title
 else:
-    sys.stdout.write("\x1b]2;"+str("__file__")+"\x07") # terminal title
+    sys.stdout.write("\x1b]2;"+str("__file__")+" "+rnd_if+"\x07") # terminal title
 
 import time
 import socket