Merge branch 'change_ctranslate2_model' of https://github.com/misyaguziya/VRCT into change_ctranslate2_model
This commit is contained in:
8
view.py
8
view.py
@@ -884,19 +884,21 @@ class View():
|
|||||||
self.openCtranslate2WeightTypeWidget()
|
self.openCtranslate2WeightTypeWidget()
|
||||||
self.setTranslationSwitchStatus("normal", release_locked_state=True)
|
self.setTranslationSwitchStatus("normal", release_locked_state=True)
|
||||||
vrct_gui.sls__box_translation_optionmenu_wrapper.grid()
|
vrct_gui.sls__box_translation_optionmenu_wrapper.grid()
|
||||||
vrct_gui.config_window.after(200, vrct_gui.config_window.lift)
|
vrct_gui.update()
|
||||||
|
|
||||||
elif state == "Disable":
|
elif state == "Disable":
|
||||||
view.closeCtranslate2WeightTypeWidget()
|
view.closeCtranslate2WeightTypeWidget()
|
||||||
view.setTranslationSwitchStatus("disabled", to_lock_state=True)
|
view.setTranslationSwitchStatus("disabled", to_lock_state=True)
|
||||||
vrct_gui.sls__box_translation_optionmenu_wrapper.grid_remove()
|
vrct_gui.sls__box_translation_optionmenu_wrapper.grid_remove()
|
||||||
vrct_gui.config_window.after(200, vrct_gui.config_window.lift)
|
vrct_gui.update()
|
||||||
|
|
||||||
elif state == "Restart":
|
elif state == "Restart":
|
||||||
view.setLatestCTranslate2WeightType()
|
view.setLatestCTranslate2WeightType()
|
||||||
view.setTranslationSwitchStatus("disabled", to_lock_state=True)
|
view.setTranslationSwitchStatus("disabled", to_lock_state=True)
|
||||||
vrct_gui.sls__box_translation_optionmenu_wrapper.grid()
|
vrct_gui.sls__box_translation_optionmenu_wrapper.grid()
|
||||||
vrct_gui.config_window.after(200, vrct_gui.config_window.lift)
|
|
||||||
|
vrct_gui.update()
|
||||||
|
vrct_gui.config_window.lift()
|
||||||
|
|
||||||
|
|
||||||
# Open Webpage Functions
|
# Open Webpage Functions
|
||||||
|
|||||||
Reference in New Issue
Block a user