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

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.