Ahhh.  Not comparing apples to apples.  That does make
a difference.

I need to get me a good Tk book and learn it proper, heh?


Mike


> Mike,
>
> That is because you are mixing threads.  You pggybacked your issue on a thread 
> initiated by
> Vinesh Vargese, concerning the Tk::Text widget, as specified in the title bar.  The 
> sample
> code you tried had do with getting standard output redirected to a Tk widget, though
> Zentara chose a Listbox rather than a Text widget to display the text.  The Listbox 
> widget
> does not have built-in copy-and-paste functionality.  Such functionality would be 
> much more
> dificult to define in a generic sense for a listbox.
>
> This is actualy the question I posed at the end of my post.  I corrected your 
> top-posting
> above so you could see in context.  No, this is not a Text widget.  I think this is 
> by
> design.  Zentara provided sample code to demonstrate the difference between Tk 
> display text
> and standard output.  I don't think he had any intention of handing anyone a 
> completed
> assignment.
>
> A simpler example, which does not deal with the original question, but which does 
> show the
> functionality you are interested in:
>
> Greetings! E:\d_drive\perlStuff>perl -w
> use Tk;
>
> my $win = MainWindow->new(-title => 'This Text Copies Right');
> my $text = $win->Text->pack(-expand => 'both');
> MainLoop;
> ^Z
>
> Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to