I changed it this way :

my $pageValidation = $fenetre3->new_ttk__frame(-padding => "20 30 5 5" +); $pageValidation->g_grid(-column => 0, -row => 0, -sticky => "news"); $pageValidation->configure(-height => 300, -width => 300); 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,); my $s = $pageValidation->new_ttk__scrollbar(-orient => 'vertical', -co +mmand => [$logfrm, 'yview']); $logfrm->configure(-yscrollcommand => [$s, 'set']); my $boutConfirmation = $pageValidation->new_ttk__button( -text => "La +ncer Conversion", -command => sub {lancerApplication(\$logcontent,\%g +eneraloptions)}); $boutConfirmation->g_grid( -column => 1, -row => 3, -sticky => "sw", - +pady => 7); sub lancerApplication{ my %generaloptions = %{$_[1]}; my $optionsfile='generalOptions.txt'; my $paramsfile='parametersForTEICorpus.txt'; my $refgeneraloptions= \%generaloptions; if ($generaloptions{'externaloptions'}){ $optionsfile=$generaloptions{'filename'}; } else{ ecrireoptgen ($_[1]); } &ma_fonction::main($optionsfile,$paramsfile,\$_[0]); }

I have got no more the precedent error. The program opens correctly, but I still can't see the scrollbar.

Any suggestion? BTW, thanks for your answers!


In reply to Re^4: [Tkx] Scrolled frame problem by sebapabst
in thread [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.