
二次开发 tcltk
dzh_lin
这个作者很懒,什么都没留下…
展开
-
text组件添加行标代码注解
在创建text组件的时候,在每行的还是位置添加数字行号,初始代码如下:proc linenums {w} { if [llength [$w tag ranges linenum]] { foreach {from to} [$w tag ranges linenum] { $w delete $from $to }原创 2013-08-15 13:57:05 · 992 阅读 · 0 评论 -
tcltk创建scrollbar在treeview中
实例创建scrollbar在treeview中ttk::treeview .tree -yscrollcommand {.vsb set}pack .tree -side left#ttk::scrollbar .tree.hsb -orient horizontal -command {}.tree insert {} end -id "Metal" -text "Met原创 2017-03-23 16:27:45 · 1341 阅读 · 2 评论 -
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 评论 -
基于tcl tk 的HyperGraph二次开发
HyperGraph的二次开发与HyperView 的开发相同。HyperGraph的结构形式如下:显示例子如下:hwi GetSessionHandle mySessionNamemySessionName GetProjectHandle myProjectNamemyProjectName GetPageHandle myPageName [myProjectName原创 2016-08-07 11:07:25 · 2907 阅读 · 0 评论 -
基于tcl tk 的HyperView二次开发实例【3】
下面用例子说明在HyperView中获取节点的ID# 首先获取模型的Handle::post::GetActiveModelHandle m# 创建一个单元的集合,并将ID为100的单元添加到集合中,#然后增加与该单元相连接的单元m GetSelectionSetHandle eset [m AddSelectionSet element]eset Add "id ==原创 2016-08-08 10:15:42 · 5318 阅读 · 2 评论 -
基于tcl tk 的HyperView二次开发
HyperView是一款非常优秀的后处理软件。通过HyperView可以,可是读取大多数有限元求解器的计算结果,并对结果进行数据处理以及分析。通过HyperView的二次开发接口,可是让用户有更大的柔度去实现自动化的后处理问题。使用HyperView的二次开发,需要区别于HyperMesh的二次接口应用,HyperView的借口,类似于Itcl接口,使用面向对象的方式,实现各个模块的数原创 2016-08-06 13:40:17 · 7954 阅读 · 0 评论 -
基于tcl tk 的HyperView二次开发实例【2】
基于tcl tk 的HyperView二次开发原创 2016-08-07 10:55:37 · 4565 阅读 · 0 评论 -
HyperView二次开发实例【1】
以下实例演示HyperView中获取结果中的平均化方法hwi OpenStackhwi GetSessionHandle session_handlesession_handle GetProjectHandle project_handleproject_handle GetPageHandle page_handle [project_handle GetActivePage]原创 2016-08-06 19:50:57 · 6685 阅读 · 0 评论 -
Finding the type of a Tk widget
The winfo class command will tell you the class of a widget, which is usually good enough (see this interactive session):% label .tklabel; puts [winfo class .tklabel]Label% ttk::label .ttk转载 2016-06-07 11:28:55 · 401 阅读 · 0 评论 -
HyperWorks14.0 API 更新说明
Blocks to Sets and BoxesThe RADIOSS keywords /GRBEAM/BOX/, /GRBEAM/BOX/, /GRBRIC/BOX/, /GRNOD/BOX/, /GRQUAD/BOX/, /GRSH3N/BOX/, /GRSHEL/BOX/, /GRSPRI/BOX/, /GRTRUS/BOX/, /LINE/BOX/ and /SURF/BOX/翻译 2016-05-28 17:47:41 · 4954 阅读 · 0 评论 -
关于TCL加载TCOM报错不能加载的问题
This appears to be a 32-bit/64-bit issue. You can't mix different bit-sizes within the same process† and you may well have installed a 64-bit build of ActiveTcl 8.6.0.0 under the belief that matching翻译 2016-03-04 23:12:24 · 3206 阅读 · 32 评论 -
在windows下把tcl编译为exe程序
详见网页:http://wiki.tcl.tk/11861 使用的第二种方法,简单描述下。第一步:下载freewrap.exe , 从 http://sourceforge.net/projects/freewrap/放到和tcl程序相同目录,如D:\tcl目录下有两个主要文件:test.tcl 和 freewrap.exe 第二步:在cmd界面切换到D:转载 2014-06-04 07:45:33 · 4485 阅读 · 1 评论 -
TCL与c/c++的互相调用
http://lauwd.blog.163.com/blog/static/7605696920107429017/ TCL是一个解释型的语言,但是功能相当强大,一个重要原因就在于它的扩展性,现有的诸如http,socket,xml,oratcl等等,使得tcl可以轻松处理字符串、文件、通信以及数据库等等多方面的工作,甚至支持多线程。 TCL的扩展可以通过调用tcl libr转载 2014-04-12 20:57:40 · 3576 阅读 · 0 评论 -
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 评论 -
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 评论