from pyray import * import pyray ConfigFlags(FLAG_MSAA_4X_HINT) #|FLAG_WINDOW_RESIZABLE ) #ConfigFlags(FLAG_WINDOW_RESIZABLE ) ConfigFlags(FLAG_WINDOW_HIGHDPI ) init_window(760, 450, "RAY-DMX")#,10,10,10,10) #pyray.TextureFilter(font10,1) import sys sys.path.insert(0,"/opt/LibreLight/Xdesk/") import tool.tk_elm as tk_elm img = "/opt/LibreLight/Xdesk/icon/scribble.png" IMG = load_image(img) print(set_window_icon(IMG)) import time import memcache mc = memcache.Client(['127.0.0.1:11211'], debug=0) #x=mc.get(k) old_x = -10 old_y = -10 start = time.time() frame_count = 0 fps_count = 0 #a = "resources/pixantiqua.ttf" #a = "/lib/firefox-esr/fonts/TwemojiMozilla.ttf" #a = "/lib/python3/dist-packages/pygame/freesansbold.ttf" #a = "/usr/share/fonts/truetype/freefont/FreeMono.ttf" #a = "/usr/share/fonts/truetype/freefont/FreeSerif.ttf" #a = "/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf" a = "/usr/share/fonts/truetype/freefont/FreeSans.ttf" a = "/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf" a = "/usr/share/fonts/truetype/freefont/FreeSansBold.ttf" #a = "/usr/share/fonts/truetype/freefont/FreeSans.ttf" k=200 font10 = load_font_ex(a, 12, None, 0); print(dir(font10)) print(font10.baseSize) ##exit() font20 = load_font_ex(a, 20, None, 0); a = "/usr/share/fonts/truetype/freefont/FreeMono.ttf" a = "/usr/share/fonts/truetype/freefont/FreeSansBold.ttf" a = "/usr/share/fonts/truetype/freefont/FreeSans.ttf" font25 = load_font_ex(a, 25, None, 0); pyray.TextureFilter(3) grid_x = 250 grid_y = 60 class EVENT(): def __init__(self): self.dict = {} self.type = 0 self.button=0 self.buttons=[0,0,0,0] xevent=EVENT() class BUTTON(): def __init__(self,master=None,txt="