我遵循在线教程和文档,但是仍然无法在边框上添加边框。以下是我运行的代码
import tkinter as tk
root = tk.Tk()
frame1 = tk.Frame(root, borderwidth=2 )
frame2 = tk.Frame(root, borderwidth=2 )
frame1.grid(row = 0)
frame2.grid(row = 1)
tk.Label(frame1, text = 'frame1').grid(row = 0)
tk.Label(frame2, text = 'frame2').grid(row = 0)
root.mainloop()