bobuillean has asked for the wisdom of the Perl Monks concerning the following question:
Folks,
I have a Padre plugin under construction that needs to get some user input. Is it as easy as:use Wx::Perl::Dialog::Simple; my $response = entry( 'title' => "What's yer poison");
?
If so why wouldn't this work?sub menu_plugins_simple { my ($self) = @_; return $self->plugin_name() => [ 'Add' => sub { my $name = entry(title => "Cad an sceal?"); }, ]; }
The menu comes up OK in the Plugins menu but the 'Add' option does nothing.
Thanks in advance for any tips.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Padre User Interaction in plugin
by Corion (Patriarch) on Jan 22, 2010 at 17:32 UTC | |
by bobuillean (Novice) on Jan 22, 2010 at 17:48 UTC |