摘要:
#include <stdio.h>#include <tcl.h>main (int argc, char *argv[]) { Tcl_Interp *myinterp; int status; printf ("Your Tcl Program will run ... \n"); myinterp = Tcl_CreateInterp(); status = Tcl_EvalFile(myinterp,argv[1]); printf ("Your Tcl Program has completed\n");} 阅读全文
摘要:
proc resizeImageMagick {sourceFile destFile} { exec convert -resize 480x360 $sourceFile $destFile return ""} 阅读全文
摘要:
proc autoscroll { scrollbar first last} { if {$first <= 0 && $last >= 1} {grid remove $scrollbar } else {grid $scrollbar } $scrollbar set $first $last}itk_component add viewcryst_scroll {scrollbar $itk_interior.iscroll \ -command [code $this component treectrlcom yview] \ -orient verti 阅读全文
摘要:
.t element create.t style create .t style element.t style layout.t column configure C0.t item create.t item element configure $I C0 .t item lastchild root $I 阅读全文
摘要:
=>file tail $fileimovie-05.gif=>file root [file tail $file]imovie-05 阅读全文
摘要:
glob *.tclFind all the Tcl files in the user's home directory, irrespective of what the current directory is:glob -directory ~ *.tclFind all subdirectories of the current directory:glob -type d *Find all files whose name contains an "a", a "b" or the sequence "cde": 阅读全文
摘要:
namespace eval DemoIMovie {}treectrl .t -height 900 -width 900pack .tset ScriptDir [file normalize [file dirname [info script]]]set ::thisPlatform unixproc Path {args} { return [file normalize [eval [list file join $::ScriptDir] $args]]}proc DemoIMovie::Button1 {T x y} { focus $T set id [$T identify 阅读全文
摘要:
namespace eval test {}proc test::aa {args} {puts "hello world $args"}test::aa yous 阅读全文
摘要:
catch { if {[ttk::style layout TreeCtrl] ne ""} {set tile 1set tileFull 1 }} 阅读全文
摘要:
set pattern libtreectrl*[info sharedlibextension]*libtreectrl*.so* 阅读全文