added minsize maxsize for details

This commit is contained in:
faroukbmiled 2023-09-26 00:34:26 +01:00
parent bb7323d689
commit 9fc28a9b85
2 changed files with 6 additions and 2 deletions

View File

@ -617,6 +617,8 @@ class LibraryTab(ctk.CTkScrollableFrame):
top.title("Map/Mod Information") top.title("Map/Mod Information")
_, _, x, y = get_window_size_from_registry() _, _, x, y = get_window_size_from_registry()
top.geometry(f"+{x+50}+{y-50}") top.geometry(f"+{x+50}+{y-50}")
top.maxsize(450, 10000)
top.minsize(300, 500)
# top.attributes('-topmost', 'true') # top.attributes('-topmost', 'true')
if offline_date: if offline_date:
@ -702,7 +704,7 @@ class LibraryTab(ctk.CTkScrollableFrame):
buttons_frame.grid(row=3, column=0, columnspan=2, padx=20, pady=(0, 20), sticky="nsew") buttons_frame.grid(row=3, column=0, columnspan=2, padx=20, pady=(0, 20), sticky="nsew")
# fillers # fillers
name_label = ctk.CTkLabel(info_frame, text=f"Name: {map_name}", wraplength=350, justify="left") name_label = ctk.CTkLabel(info_frame, text=f"Name: {map_name}", wraplength=420, justify="left")
name_label.grid(row=0, column=0, columnspan=2, sticky="w", padx=20, pady=5) name_label.grid(row=0, column=0, columnspan=2, sticky="w", padx=20, pady=5)
desc_threshold = 30 desc_threshold = 30

View File

@ -659,6 +659,8 @@ class BOIIIWD(ctk.CTk):
top.title("Map/Mod Information") top.title("Map/Mod Information")
_, _, x, y = get_window_size_from_registry() _, _, x, y = get_window_size_from_registry()
top.geometry(f"+{x+50}+{y-50}") top.geometry(f"+{x+50}+{y-50}")
top.maxsize(450, 10000)
top.minsize(300, 500)
# top.attributes('-topmost', 'true') # top.attributes('-topmost', 'true')
def close_window(): def close_window():
@ -720,7 +722,7 @@ class BOIIIWD(ctk.CTk):
buttons_frame.grid(row=3, column=0, columnspan=2, padx=20, pady=(0, 20), sticky="nsew") buttons_frame.grid(row=3, column=0, columnspan=2, padx=20, pady=(0, 20), sticky="nsew")
# fillers # fillers
name_label = ctk.CTkLabel(info_frame, text=f"Name: {map_name}", wraplength=350, justify="left") name_label = ctk.CTkLabel(info_frame, text=f"Name: {map_name}", wraplength=420, justify="left")
name_label.grid(row=0, column=0, columnspan=2, sticky="w", padx=20, pady=5) name_label.grid(row=0, column=0, columnspan=2, sticky="w", padx=20, pady=5)
desc_threshold = 30 desc_threshold = 30