【问题标题】:Make Tkinter Notebook be Draggable to Another View使 Tkinter Notebook 可拖动到另一个视图
【发布时间】:2015-11-14 18:07:25
【问题描述】:

我想知道是否有任何propertymethod 可以设置为使Tkinter Notebook 选项卡可作为另一个窗口拖动,例如Sublime Text。如果没有的话,我想我可以在标签被拖动时写一个函数,但我不知道如何绑定它。

【问题讨论】:

    标签: python tkinter


    【解决方案1】:

    我不知道 ttk.Notebook 小部件的任何原生属性,但您可以尝试 Tkdnd。

    这里有一些讨论: How to Install and Use TkDnD with Python 2.7 Tkinter on OSX? 其中还链接到: python drag and drop explorer files to tkinter entry widget

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多