in reply to Re: How to put text on the canvas for a keyboard STDIN
in thread How to put text on the canvas for a keyboard STDIN
my ($what) = @_; my $what_val = $what->get; # use get to access contents + of entry $canvas ->createText($range[0],$range[1], -text=>"$what_val\n");
without needing to call the sub, that would be great!elsif ($drawItem eq "text"){ my $main = MainWindow->new; $main->Label(-text => 'Annotation Entry')->pack; # create an annot +ation label and pack it my $say = $main->Entry(-width => 100); $say->pack; $main->Button(-text => 'Enter', -command => sub{do_say($say)} )->pack;
|
|---|