在listbox里如何禁止选中,只能观看里面的内容

在listbox里如何禁止选中,只能观看里面的内容,禁止其他操作。

Jason990420
最佳答案

You can do it by

  • Remove all the default bindings, or

    listbox.bindtags((listbox, root, "all"))
  • Adding binding that override the default one

    listbox.bind("<Button-1>", lambda event:"break")
3个月前 评论
讨论数量: 1
Jason990420

You can do it by

  • Remove all the default bindings, or

    listbox.bindtags((listbox, root, "all"))
  • Adding binding that override the default one

    listbox.bind("<Button-1>", lambda event:"break")
3个月前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!