1
我看不到我的裏面一個按鈕(我使用的是使用TKinter)左框。這是我的代碼:使用TKinter:我看不到我的左邊框採用了按鈕內
#create window & frames
root = Tk()
root.title("Medical Visualization")
rootFrame = Frame(root)
rootFrame.pack(fill=BOTH, expand=1, side=TOP)
leftframe = Frame(root, width=100, bg="blue")
leftframe.pack(fill=X, expand=True)
button = Button(leftframe, text="Add Isosurface", fg="red")
button.pack(side = LEFT)
root.mainloop()
感謝
對不起,我忘了複製粘貼它。我擁有它。問題已更新 – aneuryzm 2010-10-12 14:15:42
@Patrick:你是否確定*以上代碼對你無效? (你也缺少一個導入語句,所以我想知道是否有其他代碼丟失或可能導致問題)。當我添加缺少的導入語句時,我可以看到按鈕。 – 2010-10-12 14:19:54
是導入聲明:「從Tkinter導入*」? – aneuryzm 2010-10-12 14:25:29