sebapabst has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [Tkx] Scrolled frame problem
by keszler (Priest) on Feb 16, 2010 at 20:16 UTC | |
by sebapabst (Acolyte) on Feb 16, 2010 at 21:03 UTC | |
by keszler (Priest) on Feb 16, 2010 at 21:50 UTC | |
by sebapabst (Acolyte) on Feb 16, 2010 at 22:16 UTC | |
by pobocks (Chaplain) on Feb 17, 2010 at 07:55 UTC | |
| |
|
Re: [Tkx] Scrolled frame problem
by zentara (Cardinal) on Feb 17, 2010 at 13:38 UTC | |
|
Re: [Tkx] Scrolled frame problem
by BaldManTom (Friar) on Feb 18, 2010 at 01:33 UTC |