Catalyst::Helper::View::WxSDI - Helper for Wx view which builds a skeleton for a SDI wxPerl application
# use the helper to create the view module and templates
$ script/myapp_create.pl view Wx WxSDI
# 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 goes further than Catalyst::Helper::View::WxApp in that it creates for you a window with a menu, status bar and a few other things to get you started.
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.