[Update] guiの起動関数を分割/model,configをimport
This commit is contained in:
6
main.py
6
main.py
@@ -1,8 +1,10 @@
|
|||||||
from vrct_gui import vrct_gui
|
from vrct_gui import vrct_gui
|
||||||
|
from config import config
|
||||||
|
from model import model
|
||||||
|
|
||||||
class VRCT():
|
class VRCT():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# vrct_gui = VRCT_GUI()
|
vrct_gui.createUI()
|
||||||
vrct_gui.start()
|
vrct_gui.startMainLoop()
|
||||||
@@ -53,14 +53,10 @@ class VRCT_GUI(CTk):
|
|||||||
|
|
||||||
# self.information_window = ToplevelWindowInformation(self)
|
# self.information_window = ToplevelWindowInformation(self)
|
||||||
|
|
||||||
|
def createUI(self):
|
||||||
|
|
||||||
def start(self):
|
|
||||||
createMainWindowWidgets(vrct_gui=self, settings=self.settings.main)
|
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")
|
def startMainLoop(self):
|
||||||
# self.printToTextbox(self.textbox_all, "こんにちは、こんにちは。", "Hi hi hello.", "SEND")
|
|
||||||
# self.printToTextbox(self.textbox_all, "Hi~ how are you doing.", "やあ~、元気かい?", "RECEIVE")
|
|
||||||
self.mainloop()
|
self.mainloop()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user