私は学校で簡単なプロジェクトを行っており、クリックする 6 つの異なるボタンを作成する必要があります。ボタンのサイズは異なる必要がありますが、その方法がわかりません。以下を使用してボタンを作成しました。
def __init__(self, master):
super().__init__(master)
self.grid()
self.button1 = Button(self, text = "Send", command = self.response1)
self.button1.grid(row = 2, column = 0, sticky = W)
私は次のようなものを想像します:
self.button1.size(height=100, width=100)
うまくいきますが、うまくいかず、どこでもそれを行う方法が見つかりません。
Python 3.3 を使用しています。