擅长:python、mysql、java
<p>我想你应该用粘性选项。</p>
<blockquote>
<p>sticky= Defines how to expand the widget if the resulting cell is
larger than the widget itself. This can be any combination of the
constants S, N, E, and W, or NW, NE, SW, and SE.</p>
<p>For example, W (west) means that the widget should be aligned to the
left cell border. W+E means that the widget should be stretched
horizontally to fill the whole cell. W+E+N+S means that the widget
should be expanded in both directions. Default is to center the widget
in the cell.</p>
</blockquote>
<pre><code>import Tkinter
master = Tkinter.Tk()
Tkinter.Button(master, text='ONE').grid(row=0, column=0, sticky='NW')
Tkinter.Button(master, text='TWO').grid(row=0, column=1, sticky='NW')
Tkinter.Button(master, text='THR').grid(row=0, column=2, sticky='NW')
Tkinter.Button(master, text='FOU').grid(row=1, column=2)
Tkinter.Text(master).grid(row=1, column=0, columnspan=2)
master.mainloop()
</code></pre>
<h3>编辑</h3>
<p>它看起来像什么。我的看起来是等距的,只是文本小部件按指定的方式占据了两列。</p>
<p><img src="https://i.stack.imgur.com/q1ROi.png" alt="Does it look like this"/></p>