Catalyst::Helper::View::WxApp - Helper for Wx view which builds a skeleton wxPerl application
# use the helper to create the view module and templates
$ script/myapp_create.pl view Wx WxApp
# add something like the following to your main application module
sub hello_world : Global { my ( $self, $c ) = @_; $c->stash->{class} = 'Hello'; $c->stash->{message} ||= $c->req->param('message') || 'No message'; } sub default : Private { my ( $self, $c ) = @_; $c->stash->{class} = 'Default'; } sub end : Private { my ( $self, $c ) = @_; $c->forward('MyApp::View::Wx'); }
If you have a RenderView make sure it does not try to render other views before the Wx one.
Then after simply do a
perl script/myapp_wx.pl
and you should get started.
Have fun !
This helper module creates a Wx View module. It creates also a sample window with some controls to get you started.
You can also use other helpers to get other applications skeletons.
It also build
Generates the component class.
Generates the templates.
Catalyst, Catalyst::View::Wx, Catalyst::Helper, Catalyst::Helper::View::TT, Catalyst::Engine::Wx
Eriam Schaffter <eriam@cpan.org> and with code inspired by Catalyst::Helper::View::TTSite by Andy Wardley <abw@cpan.org>
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
[% class %] - Catalyst wxPerl View
See "[% app %]"
Catalyst wxPerl View.
[% author %]
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Engine::Wx, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Engine::Wx
CPAN shell
perl -MCPAN -e shell install Catalyst::Engine::Wx
For more information on module installation, please visit the detailed CPAN module installation guide.