[bugfix] Main Window: 設定画面を開いた時に、メイン画面に被せるモーダル型ウィンドウが、メイン画面最小化時はそれに従って消し、メイン画面をまた開いた時に表示するように修正。
[Refactor] そのモーダル型ウィンドウの表示関数を移動
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
from customtkinter import CTkToplevel, CTkFrame, CTkLabel, CTkFont
|
||||
|
||||
from .ui_utils import fadeInAnimation
|
||||
|
||||
class _CreateModalWindow(CTkToplevel):
|
||||
def __init__(self, attach_window, settings, view_variable):
|
||||
super().__init__()
|
||||
@@ -46,4 +48,10 @@ class _CreateModalWindow(CTkToplevel):
|
||||
anchor="w",
|
||||
text_color=self.settings.ctm.TEXT_COLOR,
|
||||
)
|
||||
self.modal_container_label_wrapper.place(relx=0.5, rely=0.5, anchor="center")
|
||||
self.modal_container_label_wrapper.place(relx=0.5, rely=0.5, anchor="center")
|
||||
|
||||
|
||||
def show(self):
|
||||
self.attributes("-alpha", 0)
|
||||
self.deiconify()
|
||||
fadeInAnimation(self, steps=5, interval=0.005, max_alpha=0.5)
|
||||
|
||||
Reference in New Issue
Block a user