incr-tcl

    0熱度

    2回答

    說我有以下結構: package require Itcl itcl::class AAA { private variable m_list {} constructor {} { fill m_list list } } 如何獲得爲了寫 foreach elem $reference {.......} 考慮該名單是非常大的,我不希望複製它在m_list參

    0熱度

    1回答

    首先,這是前一個問題mine的後續操作。 我想在Tcl中使用線程,但與Itcl協作。 這裏有一個例子: package require Itcl package require Thread ::itcl::class ThreadTest { variable thread [thread::create {thread::wait}] variable isRunni

    0熱度

    3回答

    假設以下代碼聲明: itcl::class ObjectA { private variable m_ownedObject private variable m_someVariable constructor {} \ { set m_ownedObject [ObjectA #auto] } protected me

    0熱度

    1回答

    考慮下面的代碼。 package require Itcl ::itcl::class A \ { private { constructor { } { } { puts "==== at A::constructor" } method f { } { puts "==== at A::f" } } } A a ;# PASSES a f ;# fai

    0熱度

    1回答

    有沒有辦法在incr Tcl之間取得班級之間的友誼? 考慮下面的代碼。 package require Itcl ::itcl::class A { private { proc f { } { puts "==== A::f" } } } ::itcl::class B { public { proc g {

    2熱度

    1回答

    我想擁有一個數組作爲私有類成員。我使用Itcl包。 對於列表和其他簡單的變量,我在寫: itcl::class MyClass { private variable m_myVar "" private variable m_myListVar {} .......... 現在我能爲數組成員嗎?

    1熱度

    1回答

    在TCL的Itcl包中,有一種方法可以使用通用關鍵字爲該類定義類和靜態成員。但我從來沒有見過這個共同變量被宣佈爲私人或公共?我們能做到嗎?如果不是,那爲什麼?

    0熱度

    2回答

    我試圖在一些GUI中使用iwidgets,我想讓組合框不可編輯。根據activetcl文檔,-editable選項被稱爲組合框,但它不起作用。 combobox $frm_sat1.c2 \ -textvariable [itcl::scope type] \ -state normal -entries {"1 opt" "2 opt"} -editable 0;