2012-03-22 1 views
0

저는 TK에 익숙하지 않습니다. 나는 TK와 함께한다는 오류 메시지를 생각합니다.TCL/TK 오류 메시지가 도움이되지 않습니다. 좀 도와 주시겠습니까

unknown option "-state"; must be one of -background, -bd, -bg, -borderwidth, -columnbd, -columnborderwidth, -columnrelief, -cursor, -exportselection, -fg, -fillcolumn, -font, -foreground, -height, -highlightbackground, -highlightcolor, -highlightthickness, -labelanchor, -labelbackground, -labelbd, -labelbg, -labelborderwidth, -labelfg, -labelfont, -labelforeground, -labelheight, -labelimage, -labelrelief, -labels, -relief, -resizablecolumns, -selectbackground, -selectborderwidth, -selectcommand, -selectforeground, -selectmode, -setgrid, -takefocus, -width, -xscrollcommand or -yscrollcommand

ERRORINFO 추적 : 다음은 오류 메시지입니다

unknown option "-state"; must be one of -background, -bd, -bg, -borderwidth, -columnbd, -columnborderwidth, -columnrelief, -cursor, -exportselection, -fg, -fillcolumn, -font, -foreground, -height, -highlightbackground, -highlightcolor, -highlightthickness, -labelanchor, -labelbackground, -labelbd, -labelbg, -labelborderwidth, -labelfg, -labelfont, -labelforeground, -labelheight, -labelimage, -labelrelief, -labels, -relief, -resizablecolumns, -selectbackground, -selectborderwidth, -selectcommand, -selectforeground, -selectmode, -setgrid, -takefocus, -width, -xscrollcommand or -yscrollcommand 
    while executing 
"::mclistbox::Canonize $w option [lindex $args 0]" 
    (procedure "::mclistbox::WidgetProc" line 211) 
    invoked from within 
"::mclistbox::WidgetProc .autoQuote.reportInfoTab.f.tit76.f.mcl84 cget -state" 
    ("eval" body line 1) 
    invoked from within 
"eval ::mclistbox::WidgetProc {.autoQuote.reportInfoTab.f.tit76.f.mcl84} $command $args" 
    (procedure ".autoQuote.reportInfoTab.f.tit76.f.mcl84" line 1) 
    invoked from within 
"$w cget -state" 
    (procedure "tk::ListboxBeginSelect" line 18) 
    invoked from within 
"tk::ListboxBeginSelect [::mclistbox::convert .autoQuote.reportInfoTab.f.tit76.f.mcl84.framecol1.listbox -W] [[::mclistbox::convert .autoQuote.reportIn..." 
    invoked from within 
"if {[winfo exists [::mclistbox::convert .autoQuote.reportInfoTab.f.tit76.f.mcl84.framecol1.listbox -W]]} { 
    tk::ListboxBeginSelect [::mclistbox::conve..." 
    (command bound to event) 

이 내 코드는 아니지만이 위젯 라이브러리를가는 것 같습니다. 루틴 'widgetProc'을 발견했으며 '상태'스위치가있는 것으로 보입니다. 나는 지금 빈 그림을 그리는 중이다.

  • 윈도우 7 엔터프라이즈 SP1 :

    여기 내 환경입니다.

  • TCL 버전 : 8.5.11.1
  • bwidgets 1.95
  • iWidgets를 4.0.1
  • 1.14

답변

0

오류가 widgetProc에 의해 발생한 것이 tcllib 아니라 :: mclistbox로 :: Canonize. 불행히도, 나는 익숙하지 않다. 그러나 빠른 구글 검색은 해상도가 비슷하지 않은 this 결과를 보여준다. 그러나 게시 날짜를 통해 가능하면 최신 버전으로 업그레이드 할 것이라는 낙관적 인 제안을하게됩니다. 그렇게 할 수 없다면 사용중인 코드를 표시 할 수 있습니다. 호출하는 방식에 따라 오류가 발생할 가능성이 있습니다.

+1

mclistbox에 대한 소스는 http://tcllib.cvs.sourceforge.net/viewvc/tcllib/mclistbox/mclistbox.tcl?revision=1.34&view=markup –

+0

입니다. 또한 알 수있는 한 ' 상태. 흠. –

+0

@DonalFellows 감사합니다! OP가 돌아 오지 않은 것처럼 보입니다. 그래서 수수께끼는 조금 더 오래 지속될 것입니다. :-) – TrojanName

0

빠른 대안을 찾았습니다. 그것이 완전히 정확하거나 그렇지 않은지 확실하지 않지만 그것은 나를 위해 일했습니다. 는 A DIFF를 제공 할

-state  {State   State} \ 

("배열 세트 widgetOptions [목록 \"이어야 함) 라인 77에서 다음을 추가하지만, 내가 그것을 보증한다고 생각하지 않습니다 같은 간단한 수정합니다.