Hello i'm a french newby in Perl.

What are the implications of this? I mean le implicationes?

update: I was right $lacolonne, its in like la french :)

update: pod lines newline after commands paragraphs, as in =head1 NAME\n\nNAME - the is le

If you use scriptdist it will insert a template pod of the right form, like

=head1 NAME $script_name - this script does something =head1 SYNOPSIS =head1 DESCRIPTION =head1 AUTHOR =head1 COPYRIGHT =cut

update: Oh, so it prompts for a csv file, i give a random one, then prompts something in french, and yes, i see the problem, can't write in the entries.

This works

#!/usr/bin/perl -- use strict; use warnings; use Tkx; local $Tkx::TRACE=64; my $the_shining = "Here's Johnny! 0"; my $mw = Tkx::widget->new("."); my $b = $mw->new_ttk__button( -text => 'Hello, world', -command => sub { $the_shining =~ s/(\d+)/$1+1/e; return; }, ); $b->g_pack; my $e = $mw->new_ttk__entry( -width => 9, -textvariable => \$the_shining, ); $e->g_pack( -expand => 1, -fill => 'both', ); Tkx::MainLoop(); __END__

For CSV, you should use one of Text::CSV// Text::CSV_XS/Text::xSV

See also tkx grid example and tutorial

update: the entries in your program can get focus if your program loses focus, then gains focus again. I have no idea what is at work here :/ but you can do this programatically

$mw->g_wm_withdraw(); $mw->g_wm_deiconify(); Tkx::MainLoop();

For future reference, esp GUI problems, its best to trim all file operations from your program :) See How do I post a question effectively?


In reply to Re: using Tkx new_ttk__entry AND tk___getOpenFile by Anonymous Monk
in thread using Tkx new_ttk__entry AND tk___getOpenFile by x-lours

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.