我正在使用一个简单的代码:
frame_bottom = Frame(root)
frame_bottom.pack(fill='x')
button1 = Button(frame_bottom, text = 'One', command = visualize)
button2 = Button(frame_bottom, text = 'Two', state = DISABLED)
label_rango1 = Label(frame_bottom, text = 'Sigma value:')
e_sigma = Entry(root, borderwidth = 2)
label_rango1.pack(side='left', expand=True)
e_sigma.pack(side='left')
button1.pack(side='left', expand=True)
button2.pack(side='left', expand=True)
然而,尽管使用side='left',该条目仍位于其余按钮下方。关于如何将所有内容打包在同一行中的任何想法?
谢谢!