treectrl scrollbar problem: "expected floiting point"



tktreectrl 2.3

I tried to make a scrollbars around a simple treectrl using an example in
"Understanding TkTreeCtrl.html". I got this error message:

expected floating-point number but got "0,616667"
while executing ".sv set 0 0,616667"

But tktreectrl 2.3 in itself runs without errors. - What is wrong with my
code?

My code is:

treectrl .t -showroot no -width 410 -height 300 \
-highlightthickness 0 -selectmode extended
..t configure -xscrollcommand ".sh set" -yscrollcommand ".sv set"

ttk::scrollbar .sh -orient horizontal -command ".t xview"
ttk::scrollbar .sv -orient vertical -command ".t yview"

pack .sv -side right -fill y
pack .sh -side bottom -fill x
pack .t -expand yes -fill both

set columnID [.t column create -itembackground linen]

..t element create elemBorder border \
-background #ece9d8 -filled yes -relief solid -thickness 1
..t element create elemText text

..t style create style1
..t style elements style1 {elemBorder elemText} .t style layout style1
elemBorder -union {elemText} -ipadx 4 -ipady 4 .t style layout style1
elemText

foreach n {5 15 20 10 10 5 15 10 20 15 15 25 10 5 15 5 10 20 15 25} {
set itemID [.t item create]
.t item style set $itemID $columnID style1 set text [string range
"abcdefghijklmnopqrstuvwxyz" 0 $n] .t item element configure $itemID
$columnID elemText -text $text .t item lastchild root $itemID
}

.



Relevant Pages

  • Re: treectrl scrollbar problem: "expected floiting point"
    ... I got this error message: ... pack .sh -side bottom -fill x ... set columnID ... ..t element create elemText text ...
    (comp.lang.tcl)
  • Re: Office 2007 converter pack errors
    ... installed all Office and Windows updates, and the Compatibility Pack, it ... and then the convert error message started ... Maybe the converter pack is getting confused with the beta and final ...
    (microsoft.public.word.application.errors)
  • Re: Office 2007 converter pack errors
    ... The converter pack supports document but not template ... "This is a pre-release version of the compatibility pack and can open ... 2007 files and open them without this error message? ...
    (microsoft.public.word.application.errors)
  • Re: high cpu with wish
    ... for me it looks like a bug. ... error message. ... pack .create -side bottom -fill x ...
    (comp.lang.tcl)
  • Word 97 Converter
    ... from the Value Pack, but Word will not open a Word 97 file. ... I get the following error message. ... The file can open fine on a Windows computer. ... Karl ...
    (microsoft.public.mac.office.word)