mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
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:
@ -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ö"))
|
||||
|
Reference in New Issue
Block a user