From 938efcd59b015779e02804985e6bcae65b725db4 Mon Sep 17 00:00:00 2001 From: Tom Schimansky Date: Sun, 10 Apr 2022 20:52:00 +0200 Subject: [PATCH] extended test_ttk_frames.py --- customtkinter/__init__.py | 2 +- setup.py | 4 ++-- test/test_ttk_frames.py | 25 +++++++++++++++++-------- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/customtkinter/__init__.py b/customtkinter/__init__.py index 1d01d9d..27b9d44 100644 --- a/customtkinter/__init__.py +++ b/customtkinter/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.9" +__version__ = "3.10" from .widgets.customtkinter_input_dialog import CTkInputDialog from .widgets.customtkinter_button import CTkButton diff --git a/setup.py b/setup.py index d3d1ed6..e915c98 100644 --- a/setup.py +++ b/setup.py @@ -12,13 +12,13 @@ import os setup(name="customtkinter", - version="3.9", + version="3.10", author="Tom Schimansky", license="Creative Commons Zero v1.0 Universal", url="https://github.com/TomSchimansky/CustomTkinter", description="Create modern looking gui with tkinter and python", long_description_content_type="text/markdown", - long_description="# CustomTkinter\n\nDetailed Information: https://github.com/TomSchimansky/CustomTkinter", + long_description="# CustomTkinter UI-Library\n\nDetailed Information: https://github.com/TomSchimansky/CustomTkinter", include_package_data=True, packages=["customtkinter"], classifiers=["Operating System :: OS Independent", diff --git a/test/test_ttk_frames.py b/test/test_ttk_frames.py index 35be654..e02c082 100644 --- a/test/test_ttk_frames.py +++ b/test/test_ttk_frames.py @@ -7,7 +7,7 @@ root_tk.geometry("1400x480") root_tk.title("CustomTkinter TTk Compatibility Test") root_tk.grid_rowconfigure(0, weight=1) -root_tk.grid_columnconfigure((0, 1, 2, 3, 5), weight=1) +root_tk.grid_columnconfigure((0, 1, 2, 3, 5, 6), weight=1) button_0 = customtkinter.CTkButton(root_tk) @@ -23,21 +23,30 @@ frame_2.grid(padx=20, pady=20, row=0, column=2, sticky="nsew") button_2 = customtkinter.CTkButton(frame_2, text="tkinter.LabelFrame") button_2.pack(pady=20, padx=20) -frame_3 = ttk.Frame(master=root_tk) +frame_3 = customtkinter.CTkFrame(master=root_tk) frame_3.grid(padx=20, pady=20, row=0, column=3, sticky="nsew") -button_3 = customtkinter.CTkButton(frame_3, text="ttk.Frame") -button_3.pack(pady=20, padx=20) +label_3 = customtkinter.CTkLabel(master=frame_3, text="CTkFrame Label", fg_color=("gray81", "gray15")) +label_3.grid(row=0, column=0, columnspan=1, padx=5, pady=5, sticky="ew") +button_3 = customtkinter.CTkButton(frame_3, text="CTkFrame") +button_3.grid(row=1, column=0, padx=20) +frame_3.grid_rowconfigure(1, weight=1) +frame_3.grid_columnconfigure((0, ), weight=1) -frame_4 = ttk.LabelFrame(master=root_tk, text="TTk LabelFrame") +frame_4 = ttk.Frame(master=root_tk) frame_4.grid(padx=20, pady=20, row=0, column=4, sticky="nsew") -button_4 = customtkinter.CTkButton(frame_4) +button_4 = customtkinter.CTkButton(frame_4, text="ttk.Frame") button_4.pack(pady=20, padx=20) -frame_5 = ttk.Notebook(master=root_tk) +frame_5 = ttk.LabelFrame(master=root_tk, text="TTk LabelFrame") frame_5.grid(padx=20, pady=20, row=0, column=5, sticky="nsew") -button_5 = customtkinter.CTkButton(frame_5, text="ttk.Notebook") +button_5 = customtkinter.CTkButton(frame_5) button_5.pack(pady=20, padx=20) +frame_6 = ttk.Notebook(master=root_tk) +frame_6.grid(padx=20, pady=20, row=0, column=6, sticky="nsew") +button_6 = customtkinter.CTkButton(frame_6, text="ttk.Notebook") +button_6.pack(pady=20, padx=20) + ttk_style = ttk.Style() ttk_style.configure(frame_3.winfo_class(), background='red')