import customtkinter as ctk
ctk.set_appearance_mode("dark")
class App(ctk.CTk):
def __init__(self):
super().__init__()
self.title("Delta Search")
self.geometry("1050x630")
self.button_frame_1 = ctk.CTkFrame(self,
fg_color='#333333',
border_width=2,
corner_radius=10,
border_color='#f53333',
width=915,
height=50,
)
self.button_frame_1.grid(row=0, column=0, padx=50, pady=10)
self.button = ctk.CTkButton(self.button_frame_1,
fg_color='#454545',
text='Universal search',
width=150,
height=40,
border_color='#f53333',
corner_radius=10,
border_width=1
)
self.button.grid(row=0, column=0, padx=(20, 2), pady=10)
app=App()
app.mainloop()
import customtkinter as ctk
ctk.set_appearance_mode("dark")
class App(ctk.CTk):
def __init__(self):
super().__init__()
self.title("Delta Search")
self.geometry("1050x630")
self.button_frame_1 = ctk.CTkFrame(self,
fg_color='#333333',
border_width=2,
corner_radius=10,
border_color='#f53333',
width=915,
height=50,
)
self.button_frame_1.grid(row=0, column=0, padx=50, pady=10)
# тут и меняется тебе сам объект для шрифта
custom_font = ctk.CTkFont(family="Arial", size=20, weight="bold")
self.button = ctk.CTkButton(self.button_frame_1,
fg_color='#454545',
text='Universal search',
width=150,
height=40,
border_color='#f53333',
corner_radius=10,
border_width=1,
font=custom_font # Применить тут шрифт
)
self.button.grid(row=0, column=0, padx=(20, 2), pady=10)
app = App()
app.mainloop()