👍️[Update] Controller : controller関数をすべてclassに内包するように変更
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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},
|
||||||
|
|||||||
Reference in New Issue
Block a user