Ttk thêm style cho widget chuẩn Tkinter cấu hình qua thuộc tính/hàm. Đổi chiều cao ttk button bằng grid(options). Phương thức chứa thuộc tính/tùy chọn khác nhau. Muốn resize ttk button, chỉ định internal padding ipadx và ipady.
Ví dụ
#Import tkinter library
from tkinter import *
from tkinter import ttk
#Tạo instance tkinter frame
win = Tk()
#Đặt geometry
win.geometry("750x250")
#Tạo nút dùng ttk themed widget
button = ttk.Button(win, text = "Button")
button.grid(ipadx=10, ipady=30 )
win.mainloop()
Kết quả
Mã thêm padding nội bộ nút. Chạy chương trình hiển thị kết quả,
