上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 82 下一页
摘要: class Destroyer {inherit ::itk::Widget constructor {args} { } destructor {killFast} private method killFast {} { global errorInfo #check for an error message that is always there on clean shutdown if { [string first .help_shell $errorInfo] == -1 } { #print the last error puts $errorInfo } #kill this 阅读全文
posted @ 2011-05-16 22:04 greencolor 阅读(136) 评论(0) 推荐(0) 编辑
摘要: body createDataprocessTab {} { set childsite [$itk_component(notebook) add Dataprocess -label "Dataprocess"] itk_component add dataprocessTab { label $itk_interior.dataprocessTab } { keep -background keep -font }#$itk_component(hutchTab) addChildVisibilityControl $itk_component(notebook) a 阅读全文
posted @ 2011-05-15 22:53 greencolor 阅读(108) 评论(0) 推荐(0) 编辑
摘要: $itk_componentarray abort .sb.stop activeButton.sb.active clientStatusLabel.sb.cs destroyer .sb.destroyer hull .sb l_shutter .sb.l_shutter login .sb.login shutter .sb.shutter spear .sb.spear sys_status .sb.sysStatus time .sb.t 阅读全文
posted @ 2011-05-15 16:18 greencolor 阅读(124) 评论(0) 推荐(0) 编辑
摘要: class Singleton { private common _instance {} ;# static instance variable # # Define a "static method" Instance. # proc Instance {} { if { $_instance == {} } { set _instance [Singleton ABC] } return $_instance } # end of Instance constructor {} { set caller [info level [expr [info level] - 阅读全文
posted @ 2011-05-15 13:08 greencolor 阅读(202) 评论(0) 推荐(0) 编辑
摘要: BluIce classBluIce .pw.pane0.childsite.bluicehull .pw.pane0.childsite.bluicenotebook.pw.pane0.childsite.bluice.n /from the BluIce create a new childsite /named as: .pw.pane0.childsite.bluice.n.canvas.notebook.cs.page1.cs HutchTab class .pw.pane0.childsite.bluice.n.canvas.notebook.cs.page1.cs.hHutchO 阅读全文
posted @ 2011-05-11 23:14 greencolor 阅读(139) 评论(0) 推荐(0) 编辑
摘要: using System.Net;using System.Windows.Forms;string url = "http://www.com";string result = null;try{ WebClient client = new WebClient(); result = client.DownloadString( url );}catch (Exception ex){ // handle error MessageBox.Show( ex.Message );} 阅读全文
posted @ 2011-05-11 03:25 greencolor 阅读(195) 评论(0) 推荐(0) 编辑
摘要: configbody DCS::MotorViewEntry::extraDevice { if {$itk_option(-extraDevice) == $lastExtraDevice} { return } set m_extraDeviceReady 0 if {$lastExtraDevice != ""} {::mediator unregister $this $lastExtraDevice scaledPosition }if { $itk_option(-extraDevice) != "" } { set device $itk_ 阅读全文
posted @ 2011-05-10 15:38 greencolor 阅读(185) 评论(0) 推荐(0) 编辑
摘要: package require Itclitcl::class sampleconf { ;# a sample class with a single public variable public variable publicv ;# this var is adjusted using the configure -publicv... constructor {} { } method setpublicv {dn} { set publicv "$dn" puts $dn } method shwopublicv {} { puts $publicv } }# c 阅读全文
posted @ 2011-05-10 14:36 greencolor 阅读(213) 评论(0) 推荐(0) 编辑
摘要: deviceFactory0 cget -option deviceFactory0 configure ?-option? ?value -option value...? deviceFactory0 createCassetteOwnerString name ?arg arg ...? deviceFactory0 createCoreDevices deviceFactory0 createDefaultSignals deviceFactory0 createEncoder name ?arg arg ...? deviceFactory0 createHardwareContr. 阅读全文
posted @ 2011-05-06 12:03 greencolor 阅读(162) 评论(0) 推荐(0) 编辑
摘要: dcss abort dcss addAttribute attribute_ accessor_ dcss addLoginWidget widget_ dcss announceDestruction dcss announceExist dcss becomeActive dcss becomePassive dcss breakConnection dcss cget -option dcss configure ?-option? ?value -option value...? dcss connect dcss dcsConfigure dcss exportSubCompone 阅读全文
posted @ 2011-05-06 09:09 greencolor 阅读(462) 评论(0) 推荐(0) 编辑
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 82 下一页