Python 制作一个按钮,使其大小适应tkinter中包含的文本

Python 制作一个按钮,使其大小适应tkinter中包含的文本,python,user-interface,button,tkinter,size,Python,User Interface,Button,Tkinter,Size,我需要以下代码中的按钮来调整大小,以便正确地适应文本。怎么可能呢?当前是文本“所有定义”列表[0]比按钮宽,然后文本被裁剪 choice1=Button(newWindow, text=all_definitions_list[0], height=5, width=50, command=lambda:wut(choice1, choice2, choice3, choice4, wordLabel)) choice1.place(relx=0.5, rely=y_list[0], anch

我需要以下代码中的按钮来调整大小,以便正确地适应文本。怎么可能呢?当前是文本“所有定义”列表[0]比按钮宽,然后文本被裁剪

choice1=Button(newWindow, text=all_definitions_list[0], height=5, width=50, 
command=lambda:wut(choice1, choice2, choice3, choice4, wordLabel))
choice1.place(relx=0.5, rely=y_list[0], anchor=N)

不要使用参数width=50

“调整大小以正确插入文本”:不要使用参数width=50