
二次开发 tcl
dzh_lin
这个作者很懒,什么都没留下…
展开
-
make a package for tcl << Tcl/Tk
It is very funny. Making a package for tcl is so easy! I am using tcl/tk 8.5 on FreeBSD 9.0. To make a hello world package, it only needs to create two files. One file is the source code, another is p转载 2014-04-22 21:35:32 · 1627 阅读 · 0 评论 -
使用Tcl操作Excel文件的方法
来源:Excel提供了通过COM接口进行访问的方法,下面这段Tcl脚本就是演示使用tcom扩展包操作Excel文件,给文件中的一个单元格赋值,并修改背景色,当然还可以进行其他各种复杂操作,使用tcom操作COM接口的关键问题就是如何知道要访问的COM接口都有哪些方法和参数,以及含义,有多种方法可以获取到这些信息,一种方法是到微软的msdn上搜索相关API说明,像office等应该都能查到,转载 2014-11-25 16:24:47 · 8544 阅读 · 2 评论 -
tk progressbar更新问题
代码在执行过程中,都是进程独占的。下面的例子,演示了使用progressBar中需要更新显示的问题;重点:进程的独占;解决方法:1,多进程,2,等待更新updatepackage require Tkgrid [ttk::progressbar .tkbar -mode determinate -variable var -maximum 10000 ]for {原创 2015-08-04 07:55:08 · 832 阅读 · 1 评论 -
win7下后台运行BAT
bat文件运行时会有一个黑黑的cmd.exe窗口,很吓人,就算用start/min命令去运行bat文件,电脑的任务栏下仍然会有相关的图标,怎么让bat文件在后台无声无息无影无形地运行呢?以下的办法可以达到你的目的。方法一 bat里有隐藏窗口的命令,很简单,只需要在代码头部加一段代码就可以了。 @echo off if "%1" == "h" goto begin转载 2016-06-17 16:24:02 · 3425 阅读 · 0 评论 -
tcltk打开应用程序exe对比
使用rtcltk打开应用程序,有两种方法:1、直接使用exec命令exec $theExxlFilePath2、使用如下格式命令模拟双击时间exec {*}[auto_execok start] "" [file nativename [file normalize $theExxlFilePath]]两者区别在于:1、直接使用exec,没有后台启动的dos窗口原创 2017-03-22 16:48:42 · 1984 阅读 · 0 评论 -
tk借助Thread包实现多线程实例
对于有需求进行多线程操作,或者有界面相关操作的运算以及后台处理情况,可以通过多现场操作。一下例子:Creating a separate thread to perform a lengthy operationpackage require Thread# Create a separate thread to search the current directory# and原创 2017-04-01 13:57:55 · 2233 阅读 · 0 评论 -
tcltk安装package方法
tcltk安装package方法原创 2017-06-05 18:15:52 · 5345 阅读 · 1 评论 -
Tcltk 使用twapi小结
The Tcl Windows API (TWAPI) extension provides Tcl bindings to the Windows API.The extension provides access to the Windows API at two levels. A direct interface to the supported Windows API is provided where the Tcl commands directly map to Windows func原创 2017-06-13 17:11:48 · 3401 阅读 · 0 评论 -
attempt to provide package Plotchart 2.1.0 failed: package Plotchart 2.0.1 provided instead
看起来tklib0.6中的plotchart pkgIndex.tcl版本与plotchart.tcl提供的版本不同。 如果您只是不想看到此消息, 检查以下文件: /usr/share/tcltk/tklib0.6/plotchart/pkgIndex.tcl 将版本2.1.0更改为2.0.1 ...翻译 2018-08-17 15:16:58 · 312 阅读 · 0 评论