我有4个项目在我的画布(画布12)。我试着把2个拖动按钮(frame1_drag/frame2_drag)放在窗口前面(frame2can/frame1can)。但我不能让tag嫒raise()或lift()做任何事情。现在拖动按钮卡在窗户后面。是的,必须是这样的,因为拖动按钮在canvas12中为它们各自的framexcan窗口设置动画。在
frame2can = canvas12.create_window(0, 0, anchor='nw', width=sf(768), height=sf(fr1h),window=frame2)
frame1can = canvas12.create_window(0, sf(fr1h), anchor='nw', width=sf(768), height=sf(fr1h),window=frame1)
# Drag Buttons
frame1_drag = canvas12.create_rectangle(0, 0, sf(fr0h), sf(fr0h), outline="blue", fill="green", tags="token")
frame2_drag = canvas12.create_rectangle(0, sf(fr1h), sf(fr0h), sf(fr0h+fr1h), outline="blue", fill="green", tags="token")
canvas12.tag_raise(frame1_drag)
canvas12.tag_raise(frame2_drag)
不能将绘制的项目放置在窗对象的顶部。在
根据官方的tk文件:
相关问题 更多 >
编程相关推荐