in reply to Re^2: Perl: For Beginners
in thread Perl: For Beginners
How did you learn wxPerl? I really can't find a good book/tutorial anywhere.
Then you're not really looking :)
Wx says This module comes with extensive documentation in HTML format; you can download it from http://wxperl.sourceforge.net/
- http://wxperl.sourceforge.net/
- http://wxperl.sourceforge.net/manual/manual.html
- http://wxperl.sourceforge.net/tutorial/tutorial.html
- wxPerl: Another GUI for Perl
- http://wiki.wxperl.info/
- WxPerlTablet, a kind of WxPerl cheat sheet
- GUI development with wxGlade by Johan Vromans
- wxGlade: a GUI builder for wxWidgets/wxPython
- VisualWX Rad with Form Designer (wxWidgets)
- wxGlade Tutorial
- OrganizingYourCode - wxPyWiki
- wxGlade user manual
- wxGlade Tutorial
- Microsoft HTML Help (CHM) format
- ZIP file containing HTML documentation
- PPM binary packages built by Mark Dootson can be downloaded from the wxPerl Binary Oasis
- [irc://irc.perl.org/#wxperl] or #wxperl channel using Mibbit
- http://wxperl.sourceforge.net/tutorial/tutorial.html
- Tutorials: User Interfaces: wxPerl Tutorials
- wxPerl Tutorial one :: The basics by boo_radley
- wxPerl image handling (short & sweet). by boo_radley
- wxPerl tutorial 3 -- by boo_radley
- Wx ControlTutorial : Wx::ProgressDialog by boo_radley
- wxPerl image handling (short & sweet). by boo_radley
- Wx::Demo/wxperl_demo
- wxperl_demo --show wxTreeListCtrl
- Wx::App::Mastermind a nontrivial example of wxPerl threads
- ?node_id=3989;HIT=Wx;re=N
- Is wxPropertyGrid available under WxPerl?
- Re: problem with wxTextCtrl right alignment
#!/usr/bin/perl -- use strict; use warnings; use Wx; use Wx::Demo; my $app = Wx::SimpleApp->new; my $demo = Wx::Demo->new; $demo->show_module( 'Wx::DemoModules::wxRichTextCtrl'); $demo->show_demo_window; $app->MainLoop; exit( 0 );- RFC for Tutorials: Using BoxSizer Layout Manager in wxPerl
- Re^5: Packaging Perl Programs (is) Painful
and GTK2::GladeXML both fell into the category of unbuildable last time I tried on Win32
Yes, its a huge negative that there aren't ppms for the various Gtk2..., but there is hope, See Re: install Gtk2::GladeXML
I think Wx looks great and has the functionality I'd need, but all of the existing documentation is for the C++ version. You need to translate it to perl, and not all concepts map cleanly from one language to the other. And as the original poster pointed out, it's not trivial to deploy a WxPerl application.
They map well enough , honest. Start with http://wxperl.sourceforge.net/tutorial/tutorial1.html
Then download chm file here, Wx-Demo, and dont forget about the samples
Short version, wxFrame in perl is Wx::Frame, methods are called using arrow not dot.
For all other differences the documentaion contains notes like this
wxWindow::ClientToScreen
virtual void ClientToScreen(int* x, int* y) const
wxPerl note: In wxPerl this method returns a 2-element list instead of modifying its parameters.
virtual wxPoint ClientToScreen(const wxPoint& pt) const
Converts to screen coordinates from coordinates relative to this window.
x
-
A pointer to a integer value for the x coordinate. Pass the client coordinate in, and
a screen coordinate will be passed out.
y
-
A pointer to a integer value for the y coordinate. Pass the client coordinate in, and
a screen coordinate will be passed out.
pt
-
The client position for the second form of the function.
wxPython note: In place of a single overloaded method name, wxPython implements the following methods:
ClientToScreen(point) Accepts and returns a wxPoint ClientToScreenXY(x, y) Returns a 2-tuple, (x, y)
In perl [ -1, -1 ] is a shortcut for wxPoint or wxSize depending on context.$ perl -MWx -le"print for Wx::Window->new->ClientToScreen( 0,0 )" 0 0 $ perl -MWx -le"print for Wx::Window->new->ClientToScreen( [0,0] )" Wx::Point=SCALAR(0x98a3c4) $ perl -MWx -le"print for Wx::Window->new->ClientToScreen( Wx::Point-> +new( 0,0 ) )" Wx::Point=SCALAR(0xda76e4)Heres a hint to how wxPerl does overloading
So you could also write$ perl -MWx -le"print for grep /clienttoscreen/i, keys %Wx::Window::" ClientToScreenPoint ClientToScreen ClientToScreenXY$ perl -MWx -le"print for Wx::Window->new->ClientToScreenXY( 0,0 )" 0 0 $ perl -MWx -le"print for Wx::Window->new->ClientToScreenPoint( [0,0] + )" Wx::Point=SCALAR(0x3e8b64) $ perl -MWx -le"print for Wx::Window->new->ClientToScreenPoint( Wx::Po +int->new( 0,0 ) )" Wx::Point=SCALAR(0x9cf5c4)
- ...
- Re: problem with wxTextCtrl right alignment
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl: For Beginners
by Anonymous Monk on Jun 03, 2014 at 07:54 UTC |