added CTkFont support for checkbox, combobox. Added padding to entry in combobox, combined grid commands for combobox in configure_grid_system method

This commit is contained in:
Tom Schimansky
2022-10-21 21:54:42 +02:00
parent 42fb7f2186
commit 2288c255ac
3 changed files with 57 additions and 18 deletions

View File

@ -51,12 +51,14 @@ b2.configure(font=customtkinter._CTkFont(family="Times"))
label_font = customtkinter._CTkFont(size=5)
for i in range(30):
l = customtkinter.CTkLabel(frame_2, font=label_font, height=0)
l.grid(row=i, column=0)
l.grid(row=i, column=0, pady=1)
b = customtkinter.CTkButton(frame_2, font=label_font, height=5)
b.grid(row=i, column=1, pady=2)
b.grid(row=i, column=1, pady=1)
c = customtkinter.CTkCheckBox(frame_2, font=label_font)
c.grid(row=i, column=2, pady=2)
frame_2.grid_columnconfigure((0, 1, 2), weight=1)
c.grid(row=i, column=2, pady=1)
c = customtkinter.CTkComboBox(frame_2, font=label_font, height=15)
c.grid(row=i, column=3, pady=1)
frame_2.grid_columnconfigure((0, 1, 2, 3), weight=1)
app.after(1500, lambda: label_font.configure(size=10))
# app.after(1500, lambda: l.configure(text="dshgfldjskhfjdslafhdjsgkkjdaslö"))