Tcl/Tk的拖放扩展 TkDND

码农软件 · 软件分类 · UI组件库 · 2019-08-03 15:14:01

软件介绍

Tk Drag and Drop 是 Tcl/Tk 的一个扩展,用来实现拖放功能,基于 Tk 8.3.3 或者更高版本。支持包括 Windows\Mac\Linux 内嵌的拖放操作。

DND也就是Drag and Drop,是一个很常用的UI组件,它不是显示的一种应用,而是用于在目标文件拖拽到应用程序界面时发生的一种响应行为,这个行为可以使打开文件或者进行某种进一步的计算。

tkdnd目前支持Unix,Windows(xp 、vista、7)以及OS X(Leopard),是比较好切易用的一种DND组件。

示例代码:

package require tkdnd

pack
[label .lb -text {drop files}]
tkdnd
::drop_target register .lb *

bind
.lb <<Drop>> "tk_messageBox -message %D"

本文地址:https://www.codercto.com/soft/d/11561.html

Sprint

Sprint

Jake Knapp、John Zeratsky、Braden Kowitz / Simon & Schuster / 2016-3-8 / GBP 14.60

媒体推荐 “Every business leader I know worries about the same thing: Are we moving fast enough? The genius of Jake Knapp’s Sprint is its step-by-step breakdown of what it takes to solve big problems an......一起来看看 《Sprint》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

URL 编码/解码
URL 编码/解码

URL 编码/解码