上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 82 下一页
摘要: itk_component add menu { menu $itk_interior.menu \# -label "aa" \ wrong -tearoff 0 \ -borderwidth 1 }itk_component a class, add a subclass menuitk_component do not have option "lable"=========$itk_component(menu) add cascade \ -label "Session" \ -menu $itk_component(ses 阅读全文
posted @ 2011-07-26 03:03 greencolor 阅读(145) 评论(0) 推荐(0) 编辑
摘要: [winfo toplevel $itk_component(hull)] configure \ -menu $itk_component(menu)add a menu bar into the toplevel window which containing $itk_component(hull). toplevel.c toplevel new class c.d widigets 阅读全文
posted @ 2011-07-26 02:19 greencolor 阅读(280) 评论(0) 推荐(0) 编辑
摘要: itk_component add dismiss { button $itk_interior.dismiss -text "Dismiss" -command "destroy $itk_component(hull)" }the array ofitk_component get a new member as dismissnew itk_component as arraylistitk_componet add dismiss === itk_component.add(dismiss)itk_component(dismiss)button 阅读全文
posted @ 2011-07-26 01:48 greencolor 阅读(129) 评论(0) 推荐(0) 编辑
摘要: itk_option add hull.width hull.height$itk_component(hull) configure -width 1050 -height 868wm minsize [winfo toplevel $itk_component(hull)] 1050 868pack propagate $itk_interior 0 阅读全文
posted @ 2011-07-24 22:42 greencolor 阅读(167) 评论(1) 推荐(0) 编辑
摘要: class classname{public method shutdownconstructor { args } {}}body classname::constructor { args } {# Prevent killing of main windowwm protocol [winfo toplevel $itk_component(hull)] WM_DELETE_WINDOW [code $this shutdown]}proc classname::shutdown{ if {![closeSession]} {# If the user didn't cancel 阅读全文
posted @ 2011-07-24 15:24 greencolor 阅读(178) 评论(0) 推荐(0) 编辑
摘要: package require Img set image [image create photo -file /home/name/Desktop/Untitled.bmp] label .txt -text 'aaa'label .l -image $image pack .lpack .txt 阅读全文
posted @ 2011-07-22 15:46 greencolor 阅读(294) 评论(0) 推荐(0) 编辑
摘要: •abs - determine the absolute configuration (hand) of the heavy atom substructure •acorn - Molecular Replacement, Sayre Equation and Dynamic Density Modification for the determination of a protein structure •act - analyse coordinates •afro - multivariate substructure factor amplitude estimation for 阅读全文
posted @ 2011-07-21 23:12 greencolor 阅读(948) 评论(0) 推荐(0) 编辑
摘要: PROGRAM <name> <declarations>C define the program version CALL CCP4_PROG_VERSION('7.2',0)C call the pre-processor: CALL CCPFYPC advertise the version: CALL CCPRCS(LUNSTO(1), '<name>', '$Date: 2005/05/17 12:44:59 $')C open an input file: CALL CCPDPN(IN1, ' 阅读全文
posted @ 2011-07-18 21:53 greencolor 阅读(301) 评论(0) 推荐(0) 编辑
摘要: $1在shell中称为“位置参数”,表示传入的第1个参数(第1个入参)。用在shell脚本主体中,表示shell脚本的第1个入参。用在shell脚本函数里,表示函数的第1个入参。test -z $1 是一个判断表达式,用于判断$1的值是否为空字符串。若为空,则结果为true;否则为false。UNAME_OS=`(uname -s) 2>/dev/null` if test -z "$system" ; then case $UNAME_OS in IRIX ) system=irix ;; IRIX64 ) system=irix64 ;; HP-UX ) syst 阅读全文
posted @ 2011-07-18 12:25 greencolor 阅读(169) 评论(0) 推荐(0) 编辑
摘要: OBJS = foo.o bar.o CC = gcc CFLAGS = -Wall -O -g myprog : $(OBJS) $(CC) $^ -o $@ foo.o : foo.c foo.h bar.h $(CC) $(CFLAGS) -c $ < -o $@ bar.o : bar.c bar.h $(CC) $(CFLAGS) -c $ < -o $@ 阅读全文
posted @ 2011-07-16 22:40 greencolor 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 82 下一页