📅  最后修改于: 2022-03-11 14:46:18.942000             🧑  作者: Mango
import tkinter
from tkinter_custom_button import TkinterCustomButton
app = tkinter.Tk()
app.geometry("300x200")
app.title("TkinterCustomButton")
def button_function():
print("Button pressed")
button_1 = TkinterCustomButton(text="My Button", corner_radius=10, command=button_function)
button_1.place(relx=0.5, rely=0.5, anchor=tkinter.CENTER)
app.mainloop()