I think you found a really stupid bug :)

You could try escaping the string as per the trace from http://www.tkdocs.com/tutorial/onepage.html

#!/usr/bin/perl -- use Tkx; $Tkx::TRACE = 64; Tkx::package_require('tile'); my $mw = Tkx::widget->new("."); # example bug : new_tk__listbox ( $lb = $mw->new_listbox( -height => 5 ) ) ->g_grid( -column => 0, -row => 0, -sticky => "nwes" ); ( $s = $mw->new_ttk__scrollbar( -command => [ $lb, "yview" ], -orient => "vertical" ) )->g_grid( -column => 1, -row => 0, -sticky => "ns" ); $lb->configure( -yscrollcommand => [ $s, "set" ] ); ( $mw->new_ttk__label( -text => "Status message here", -anchor => "w" ) )->g_grid( -column => 0, -row => 1, -sticky => "we" ); ( $mw->new_ttk__sizegrip )->g_grid( -column => 1, -row => 1, -sticky = +> "se" ); $mw->g_grid_columnconfigure( 0, -weight => 1 ); $mw->g_grid_rowconfigure( 0, -weight => 1 ); for ( $i = 0 ; $i < 100 ; $i++ ) { #~ $lb->insert( "end", "Line " . $i . " of 100" ); $lb->insert( "end", "Line " . $i . " of {100}" ); } Tkx::MainLoop();

Watch the trace

... Tkx-114-0.1s-tkx.listbox.pl-30: .l insert end {Line 97 of \{100\}} Tkx-115-0.1s-tkx.listbox.pl-30: .l insert end {Line 98 of \{100\}}

In reply to Re: TCL list via TKx by Anonymous Monk
in thread TCL list via TKx by gallagher118

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.