[Update] Main Window: 言語選択時のスクロール速度UP。それにともないCustomizedCTkScrollableFrameを別ファイルとして切り出し、ui_utilsからimportできるように。

This commit is contained in:
Sakamoto Shiina
2023-12-21 13:36:23 +09:00
parent 2e6523625a
commit b668d6fd21
4 changed files with 86 additions and 85 deletions

View File

@@ -1,9 +1,9 @@
from functools import partial
from .ui_utils import bindButtonReleaseFunction, bindEnterAndLeaveColor, bindButtonPressColor, applyUiScalingAndFixTheBugScrollBar
from .ui_utils import bindButtonReleaseFunction, bindEnterAndLeaveColor, bindButtonPressColor, applyUiScalingAndFixTheBugScrollBar, CustomizedCTkScrollableFrame
from utils import callFunctionIfCallable, makeEven
from customtkinter import CTkToplevel, CTkFrame, CTkLabel, CTkFont, CTkScrollableFrame
from customtkinter import CTkToplevel, CTkFrame, CTkLabel, CTkFont
class _CreateSelectableLanguagesWindow(CTkToplevel):
def __init__(self, vrct_gui, settings, view_variable):
@@ -116,7 +116,7 @@ class _CreateSelectableLanguagesWindow(CTkToplevel):
self.scroll_frame_container = CTkScrollableFrame(self, corner_radius=0, fg_color=self.settings.ctm.MAIN_BG_COLOR, width=self.width_new, height=self.height_new)
self.scroll_frame_container = CustomizedCTkScrollableFrame(self, corner_radius=0, fg_color=self.settings.ctm.MAIN_BG_COLOR, width=self.width_new, height=self.height_new)
self.scroll_frame_container.grid(row=1, column=0, sticky="nsew")
applyUiScalingAndFixTheBugScrollBar(