From 0780c7d75fd7506955d66812115f9bbd8dfd5d60 Mon Sep 17 00:00:00 2001 From: misygauziya Date: Sun, 27 Aug 2023 05:09:55 +0900 Subject: [PATCH] =?UTF-8?q?[Update]=20gui=E3=81=AE=E8=B5=B7=E5=8B=95?= =?UTF-8?q?=E9=96=A2=E6=95=B0=E3=82=92=E5=88=86=E5=89=B2/model,config?= =?UTF-8?q?=E3=82=92import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 ++++-- vrct_gui/vrct_gui.py | 10 +++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/main.py b/main.py index ac80e5f5..71e2c4ce 100644 --- a/main.py +++ b/main.py @@ -1,8 +1,10 @@ from vrct_gui import vrct_gui +from config import config +from model import model class VRCT(): def __init__(self): pass if __name__ == "__main__": - # vrct_gui = VRCT_GUI() - vrct_gui.start() \ No newline at end of file + vrct_gui.createUI() + vrct_gui.startMainLoop() \ No newline at end of file diff --git a/vrct_gui/vrct_gui.py b/vrct_gui/vrct_gui.py index 795f1b94..07cede7d 100644 --- a/vrct_gui/vrct_gui.py +++ b/vrct_gui/vrct_gui.py @@ -53,14 +53,10 @@ class VRCT_GUI(CTk): # self.information_window = ToplevelWindowInformation(self) - - - def start(self): + def createUI(self): createMainWindowWidgets(vrct_gui=self, settings=self.settings.main) - # self.printToTextbox(self.textbox_all, "Translation started. You: Japanese (japan). Target: English (American english)", "", "INFO") - # self.printToTextbox(self.textbox_all, "テキスト送信テスト", "Test send text", "SEND") - # self.printToTextbox(self.textbox_all, "こんにちは、こんにちは。", "Hi hi hello.", "SEND") - # self.printToTextbox(self.textbox_all, "Hi~ how are you doing.", "やあ~、元気かい?", "RECEIVE") + + def startMainLoop(self): self.mainloop()