Main > Programming > Libraries >

Wx::WidgetMaker 0.11

Wx::WidgetMaker 0.11

Sponsored Links

Wx::WidgetMaker 0.11 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.011 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 907
Date added: 2007-05-10
Publisher: Scott Lanning

Wx::WidgetMaker 0.11 description

Wx::WidgetMaker is a CGI.pm-like library for wxPerl.

SYNOPSIS

use Wx::WidgetMaker;

$dialog = Wx::Dialog->new(...);
$q = Wx::WidgetMaker->new(-parent => $dialog);

# The dialog "page"
$pagesizer = Wx::BoxSizer->new(wxVERTICAL);

# A "row" in the page
$rowsizer = Wx::BoxSizer->new(wxHORIZONTAL);

# "print" a control to a row
$ctrl = $q->h1(H1 text);
$q->print($ctrl, $rowsizer);

# Add the row to the page
$q->print($rowsizer, $pagesizer);

# A new row
$rowsizer = Wx::BoxSizer->new(wxHORIZONTAL);

# print a label and textfield in an array
$ctrl2 = $q->password_field(
-name => password,
-default => blue,
-size => 50, # window width, not number of chars
-maxlength => 30,
);
$q->print([$q->print(Password: ), $ctrl2], $rowsizer);

# Add the row to the page
$q->print($rowsizer, $pagesizer);

# Add some buttons
$rowsizer = Wx::BoxSizer->new(wxHORIZONTAL);

$okbutton = $q->submit(ok, OK, wxID_OK);
$cancelbutton = $q->submit(cancel, Cancel, wxID_CANCEL);
$q->print([$okbutton, $cancelbutton], $rowsizer);

$q->print($rowsizer, $pagesizer);

# Put widgets in the dialog as normal
$dialog->SetAutoLayout(1);
$dialog->SetSizer($pagesizer);
$pagesizer->Fit($dialog);

# Get dialog data
if ($dialog->ShowModal() == wxID_OK) {
$password = $q->param(password);
}
$dialog->Destroy();

When starting to learn wxPerl, it can be frustrating trying to figure out which widgets handle what functionality. If youve ever done CGI development, you soon realize why its not a bad idea to leverage the web browser as a graphical user interface: it can be complicated to implement functionality that you take for granted as an HTML/CGI developer.

This module tries to make implementing wxPerl dialogs friendlier to a Perl CGI programmer by using an API similar to CGI.pm. (Specifically, it supports what I consider to be a useful/relevant subset of CGI.pms :standard export tags.) It tries to adhere as faithfully as reasonable to the CGI API where applicable, and otherwise to try to do something intuitive.

Every form-related method (popup_menu, textfield, etc.) requires a -name parameter. It serves the same purpose as in CGI.pm. The values the user has entered/selected on the form are accessible through $q->param(somename) where somename was given as a -name argument.

Wx::WidgetMaker 0.11 Screenshot

Advertisements

Wx::WidgetMaker 0.11 Keywords

Bookmark Wx::WidgetMaker 0.11

Hyperlink code:
Link for forum:

Wx::WidgetMaker 0.11 Copyright

WareSeeker periodically updates pricing and software information of Wx::WidgetMaker 0.11 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Wx::WidgetMaker 0.11 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Wx::build::MakeMaker is a Perl module with ExtUtils::MakeMaker specialization for wxPerl modules. Free Download
Tasks project is a simple to do list application that uses libecal, part of Embedded Evolution Data Server. Free Download
XML::Bare is a minimal XML parser implemented via a C state engine. Free Download
dtRdr::User.pm is a user class as a Perl module. Free Download
Wx::Perl::Packager provides a module to assist packaging Wx based applications with PAR, ActiveState PerlApp / PDK and Perl Free Download
wxPerl is a Perl wrapper for the awesome wxWidgets cross-platform GUI toolkit with native look and feel. Free Download
mChess is a simple cross-platform email chess program. Free Download
Kurush aims to be an easy to use personal finance tool for GNOME Desktop. Free Download