我有一堆这样的框架:
+--+
| |
+-+--+-+
| |
+-+------+-+
| |
+----------+
但我希望他们是这样的:
+--+
| |
+---+--+
| |
+---+------+
| |
+----------+
做这个的最好方式是什么?
正在使用 pack 并且无法让他们行为正确。出于某种原因,使用网格根本没有显示它们,我的程序挂起
# Main script
root = Tk()
root.geometry('500x500')
for task in TaskList:
GuiTools.TaskBox.TaskBox(root, task)
root.mainloop() # program hangs from this line, to the point of having to use kill to close it
# Taskbox class
class Taskbox(master, task):
__init__(self)
self.TaskFrame = Frame(master, borderwidth=3, relief=RAISED)
. . .
Putting stuff in frame
. . .
self.TaskFrame.pack() # Gives result 1
#self.TaskFrame.grid(column=1, sticky='ne') # no display, causes hang