[Update] main windowのみ処理の実装完了
This commit is contained in:
@@ -85,7 +85,8 @@ def _changeMainWindowWidgetsStatus(vrct_gui, settings, status, target_names):
|
||||
vrct_gui.sqls__container_title.configure(text_color=settings.ctm.SF__TEXT_DISABLED_COLOR)
|
||||
vrct_gui.sqls__title_text_your_language.configure(text_color=settings.ctm.SF__TEXT_DISABLED_COLOR)
|
||||
vrct_gui.sqls__title_text_target_language.configure(text_color=settings.ctm.SF__TEXT_DISABLED_COLOR)
|
||||
vrct_gui.current_active_preset_tab.children["!ctklabel"].configure(text_color=settings.ctm.SQLS__PRESETS_TAB_ACTIVE_TEXT_COLOR_PASSIVE)
|
||||
if settings.IS_SIDEBAR_COMPACT_MODE is False:
|
||||
vrct_gui.current_active_preset_tab.children["!ctklabel"].configure(text_color=settings.ctm.SQLS__PRESETS_TAB_ACTIVE_TEXT_COLOR_PASSIVE)
|
||||
vrct_gui.sqls__optionmenu_your_language.configure(state="disabled")
|
||||
vrct_gui.sqls__optionmenu_target_language.configure(state="disabled")
|
||||
|
||||
@@ -93,8 +94,9 @@ def _changeMainWindowWidgetsStatus(vrct_gui, settings, status, target_names):
|
||||
vrct_gui.sqls__container_title.configure(text_color=settings.ctm.LABELS_TEXT_COLOR)
|
||||
vrct_gui.sqls__title_text_your_language.configure(text_color=settings.ctm.LABELS_TEXT_COLOR)
|
||||
vrct_gui.sqls__title_text_target_language.configure(text_color=settings.ctm.LABELS_TEXT_COLOR)
|
||||
vrct_gui.current_active_preset_tab.children["!ctklabel"].configure(text_color=settings.ctm.SQLS__PRESETS_TAB_ACTIVE_TEXT_COLOR)
|
||||
vrct_gui.current_active_preset_tab.children["!ctklabel"].configure(text_color=settings.ctm.SQLS__PRESETS_TAB_ACTIVE_TEXT_COLOR)
|
||||
if settings.IS_SIDEBAR_COMPACT_MODE is False:
|
||||
vrct_gui.current_active_preset_tab.children["!ctklabel"].configure(text_color=settings.ctm.SQLS__PRESETS_TAB_ACTIVE_TEXT_COLOR)
|
||||
vrct_gui.current_active_preset_tab.children["!ctklabel"].configure(text_color=settings.ctm.SQLS__PRESETS_TAB_ACTIVE_TEXT_COLOR)
|
||||
vrct_gui.sqls__optionmenu_your_language.configure(state="normal")
|
||||
vrct_gui.sqls__optionmenu_target_language.configure(state="normal")
|
||||
|
||||
|
||||
@@ -18,30 +18,30 @@ def createSidebar(settings, main_window):
|
||||
|
||||
|
||||
def toggleTranslationFeature():
|
||||
if callable(main_window.CALLBACK_TOGGLE_TRANSLATION) is True:
|
||||
main_window.CALLBACK_TOGGLE_TRANSLATION()
|
||||
is_turned_on = getattr(main_window, "translation_switch_box").get()
|
||||
print(is_turned_on)
|
||||
toggleSidebarFeatureSelectedMarkIfTurnedOn(is_turned_on, main_window.translation_selected_mark)
|
||||
|
||||
def toggleTranscriptionSendFeature():
|
||||
if callable(main_window.CALLBACK_TOGGLE_TRANSCRIPTION_SEND) is True:
|
||||
main_window.CALLBACK_TOGGLE_TRANSCRIPTION_SEND()
|
||||
is_turned_on = getattr(main_window, "transcription_send_switch_box").get()
|
||||
print(is_turned_on)
|
||||
toggleSidebarFeatureSelectedMarkIfTurnedOn(is_turned_on, main_window.transcription_send_selected_mark)
|
||||
if is_turned_on is True:
|
||||
changeMainWindowWidgetsStatus("disabled", "All")
|
||||
sleep(1.5)
|
||||
changeMainWindowWidgetsStatus("normal", "All")
|
||||
|
||||
def toggleTranscriptionReceiveFeature():
|
||||
if callable(main_window.CALLBACK_TOGGLE_TRANSCRIPTION_RECEIVE) is True:
|
||||
main_window.CALLBACK_TOGGLE_TRANSCRIPTION_RECEIVE()
|
||||
is_turned_on = getattr(main_window, "transcription_receive_switch_box").get()
|
||||
print(is_turned_on)
|
||||
toggleSidebarFeatureSelectedMarkIfTurnedOn(is_turned_on, main_window.transcription_receive_selected_mark)
|
||||
if is_turned_on is True:
|
||||
changeMainWindowWidgetsStatus("disabled", "All")
|
||||
sleep(1.5)
|
||||
changeMainWindowWidgetsStatus("normal", "All")
|
||||
|
||||
|
||||
def toggleForegroundFeature():
|
||||
if callable(main_window.CALLBACK_TOGGLE_FOREGROUND) is True:
|
||||
main_window.CALLBACK_TOGGLE_FOREGROUND()
|
||||
is_turned_on = getattr(main_window, "foreground_switch_box").get()
|
||||
print(is_turned_on)
|
||||
toggleSidebarFeatureSelectedMarkIfTurnedOn(is_turned_on, main_window.foreground_selected_mark)
|
||||
|
||||
@@ -47,6 +47,10 @@ class VRCT_GUI(CTk):
|
||||
self.YOUR_LANGUAGE = "Japanese\n(Japan)"
|
||||
self.TARGET_LANGUAGE = "English\n(United States)"
|
||||
|
||||
self.CALLBACK_TOGGLE_TRANSLATION = None
|
||||
self.CALLBACK_TOGGLE_TRANSCRIPTION_SEND = None
|
||||
self.CALLBACK_TOGGLE_TRANSCRIPTION_RECEIVE = None
|
||||
self.CALLBACK_TOGGLE_FOREGROUND = None
|
||||
self.CALLBACK_SELECTED_TAB_NO_1 = None
|
||||
self.CALLBACK_SELECTED_TAB_NO_2 = None
|
||||
self.CALLBACK_SELECTED_TAB_NO_3 = None
|
||||
|
||||
Reference in New Issue
Block a user