Hi everybody. It's my first post here. I hope I'm gonna do it in the right way.
I'm working on a GUI for a pre-extistent perl program. The program is supposed to automatically adapt a .txt or XML corpus to the TEI standards. I've created tree consecutive windows. In the first two user inserts the parameters for the conversion and source folder containing the texts. The last window contains a button to start the conversion and a frame where I print the log file.
The problem is: I can't place a scrollbar on the frame containin the log. I've tried the following code :
my $logcontent; my $logfrm = $pageValidation->new_ttk__frame(-padding => "5 5 5 5"); $logfrm->g_grid(-column => 1, -row => 1, -sticky => "news"); $logfrm->configure(-borderwidth => 2, -relief => "sunken", -height => +300, -width => 605); $logfrm->g_grid_propagate(0); my $loglbl = $logfrm->new_ttk__label(-textvariable => \$logcontent, -w +raplength=>590); $loglbl->g_grid( -column => 0, -row => 0, -sticky => "new",-padx=>0, - +pady=>0, ); $loglbl->configure(-width=>98,); #=begin my $s = $logfrm->new_ttk__scrollbar(-orient => 'vertical', -command => + [$loglbl, 'yview']); $loglbl->configure(-scrollcommand => [$s, 'set']);
But i get the following error:
unknown option "-scrollcommand" at C:\Users\Seba\Desktop\Nuova cartella (2)\succ essione_3.2.0.pl line 249.
I can't find what's wrong. Many sites propose this syntax. I've found it on : http://www.tkdocs.com/tutorial/morewidgets.html
Thanks for helping
Sebastian
In reply to [Tkx] Scrolled frame problem by sebapabst
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |