替换旧版帧处理函数;

This commit is contained in:
2024-10-05 02:21:38 +08:00
parent 3706a51c6b
commit 7056b73237
6 changed files with 346 additions and 838 deletions

View File

@@ -1,7 +1,7 @@
import time
from webui import webui
from pathlib import Path
from func_frame import check_frame_dlt645
from source.func_frame import check_frame_dlt645
from source.dev_LaminaAdapter import LaminaAdapter
from source.device.EnergyRouter import EnergyRouter
@@ -15,9 +15,9 @@ def my_function(e : webui.event):
print("Data from JavaScript: " + e.window.get_str(e, 0)) # Message from JS
frame = e.window.get_str(e, 0)
block_dlt645 = e.window.get_str(e, 1)
output_text = check_frame_dlt645(frame, block=block_dlt645)
block_ouput = check_frame_dlt645(frame, block=block_dlt645)
return output_text
return block_ouput
events = []
def main_webui():