Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

threads, file handles and wxPerl

by sdetweil (Sexton)
on Feb 13, 2013 at 16:10 UTC ( #1018567=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
            Wx::Event::EVT_COMMAND($panel, -1, $ID_OUR_EVENT, \&ourHandler
    sub ourHandler 
       my $textvalue =  Wx::GetTextFromUser($text, "some header", wxOK | w
    +xCANCEL,$self ) ;
       #---> what to do here with the dialog text.
  2. or download this
    share (my $clientline);  # in the main code, referenced here for clari
              my $event = new Wx::PlThreadEvent( -1, $ID_OUR_EVENT, $clien
               Wx::PostEvent($panel, $event );
  3. or download this
     local (*HIS_IN ,*HIS_OUT, *HIS_ERR, $childpid);
     use IPC::Open3;   
     $childpid=open3( *HIS_IN, *HIS_OUT, *HIS_OUT,$command);
  4. or download this
      print HIS_IN $clientline . "\n";
  5. or download this
    use Wx::Perl::ProcessStream qw( :everything );
    the startup (this replaces all the thread goo)
            my $proc1 = Wx::Perl::ProcessStream::Process->new($command, 's
    +omelabel', wxperl_window)->Run;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1018567]
Approved by Corion
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2018-12-13 08:38 GMT
Find Nodes?
    Voting Booth?
    How many stories does it take before you've heard them all?

    Results (62 votes). Check out past polls.