|
@@ -1,6 +1,7 @@
|
|
|
#from pyray import *
|
|
|
import pyray
|
|
|
-
|
|
|
+import sys
|
|
|
+sys.path.insert(0,"/opt/LibreLight/Xdesk/")
|
|
|
#for i in dir(pyray):
|
|
|
# if i.startswith("draw_"):
|
|
|
# print(i)
|
|
@@ -9,9 +10,38 @@ import pyray
|
|
|
#pyray.ConfigFlags(pyray.FLAG_MSAA_4X_HINT) #|pyray.FLAG_WINDOW_RESIZABLE )
|
|
|
#pyray.ConfigFlags(pyray.FLAG_WINDOW_RESIZABLE )
|
|
|
#pyray.ConfigFlags(pyray.FLAG_WINDOW_HIGHDPI )
|
|
|
-pyray.init_window(760, 450, "RAY-DMX")#,10,10,10,10)
|
|
|
+
|
|
|
+
|
|
|
+CAPTION = 'RAY-DMX'
|
|
|
+import tool.movewin as movewin
|
|
|
+
|
|
|
+import pathlib
|
|
|
+
|
|
|
+_file_path=pathlib.Path(__file__)
|
|
|
+print("file:",_file_path)
|
|
|
+movewin.check_is_started(CAPTION,_file_path)
|
|
|
+
|
|
|
+win_title =CAPTION.strip().split()[-1]
|
|
|
+store = movewin.load_all_sdl(win_title)
|
|
|
+print(store)
|
|
|
+POS=[10,10]
|
|
|
+if store:
|
|
|
+ POS=[store[-2],store[-1]]
|
|
|
+
|
|
|
+
|
|
|
+pyray.init_window(760, 450, CAPTION) #"RAY-DMX")#,10,10,10,10)
|
|
|
#pyray.TextureFilter(font10,1)
|
|
|
|
|
|
+
|
|
|
+win_con = movewin.Control()
|
|
|
+win_con.title = win_title
|
|
|
+win_con.winfo()
|
|
|
+if POS:
|
|
|
+ win_con.move(POS[0],POS[1])
|
|
|
+print(POS,win_con.title)
|
|
|
+#exit()
|
|
|
+
|
|
|
+
|
|
|
import sys
|
|
|
sys.path.insert(0,"/opt/LibreLight/Xdesk/")
|
|
|
import tool.tk_elm as tk_elm
|
|
@@ -303,7 +333,7 @@ while not pyray.window_should_close():
|
|
|
cur = k #k[3] #"xx123" # k
|
|
|
|
|
|
if spectrum_btn.btn.btn1.val.get():
|
|
|
- render_spectrum(cur,240,50)
|
|
|
+ render_spectrum(cur,230,50)
|
|
|
else:
|
|
|
render_grid(cur,250,50)
|
|
|
|