👍️[Update] Controller : controller関数をすべてclassに内包するように変更

This commit is contained in:
misyaguziya committed 2024-09-24 20:17:30 +09:00
1 parent 5bdc3a1a09
commit e119647545
2 files changed
+1522 -1339

No files matched your search

File diff suppressed because it is too large. Load diff
+3 -1
View File
@@ -3,9 +3,11 @@ import json
import time import time
from threading import Thread from threading import Thread
from queue import Queue from queue import Queue
import webui_controller as controller from webui_controller import Controller
from utils import printLog, printResponse, encodeBase64 from utils import printLog, printResponse, encodeBase64
controller = Controller()
mapping = { mapping = {
# Main Window # Main Window
"/set/enable/translation": {"status": False, "variable":controller.setEnableTranslation}, "/set/enable/translation": {"status": False, "variable":controller.setEnableTranslation},