in reply to TCL list via TKx
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\}}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: TCL list via TKx
by gallagher118 (Initiate) on Jul 07, 2012 at 23:41 UTC |