Python: removing a TKinter frame

前端 未结 4 1202
走了就别回头了
走了就别回头了 2021-02-06 07:35

I want to remove a frame from my interface when a specific button is clicked.

This is the invoked callback function

def removeMyself(self):
    del self
         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 08:33

    wont this help : self.destroy()

    chk this out : PY cookbook the last para

提交回复
热议问题