这显示了我拥有和想要的:
所以是的,正如你所看到的,我想要一个正好在红线位置的段落。按钮应出现在 2 个文本框下方。
当前的代码位:
window = Tk()
window.title("Taschenrechner")
window.label_zahl1 = Label(window, text = 'Zahl 1:', anchor = W, justify = LEFT)
window.label_zahl1.pack(side=LEFT)
window.entry_zahl1 = Entry()
window.entry_zahl1.pack(side=LEFT)
window.label = Label(window, text = '\n')
window.label.pack(side=LEFT)
window.label_zahl2 = Label(window, text = 'Zahl 2:')
window.label_zahl2.pack(side=LEFT)
window.entry_zahl2 = Entry()
window.entry_zahl2.pack(side=LEFT)
window.button_plus = Button(window, text = "+")
window.button_plus.pack(side=LEFT)
window.button_minus = Button(window, text = "-")
window.button_minus.pack(side=LEFT)
window.button_divi = Button(window, text = "/")
window.button_divi.pack(side=RIGHT)
window.button_mal = Button(window, text = "*")
window.button_mal.pack(side=RIGHT)
window.ausgabe = Label(master = window, text = "")
window.ausgabe.pack()
window.mainloop()