schnell18 has asked for the wisdom of the Perl Monks concerning the following question:
However, I don't want "use Wx qw/:allclasses/" as it will load too many controls than necessary. Please help figure out how to fix this problem. Thank you very much!#!/usr/bin/perl -w use strict; package MyApp; #use Wx qw[:allclasses]; use Wx qw[:misc :frame :datepicker]; use Wx::DateTime; use base qw(Wx::App); sub OnInit { my $self = @_; my $frame = Wx::Frame->new( undef, -1, 'A wxPerl App', wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE | wxMAXIMIZE_BOX | wxCLOSE_BOX ); Wx::DatePickerCtrl->new($frame, -1, new Wx::DateTime(), wxDefaultP +osition, wxDefaultSize, wxDP_DROPDOWN); $frame->Center(); $frame->Show(); } MyApp->new()->MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: wxDP_DROPDOWN constant autoload issue
by Anonymous Monk on Sep 22, 2012 at 21:22 UTC | |
by Anonymous Monk on Mar 09, 2013 at 09:00 UTC | |
|
Re: wxDP_DROPDOWN constant autoload issue
by stefbv (Priest) on Sep 22, 2012 at 19:07 UTC | |
by schnell18 (Novice) on Sep 24, 2012 at 01:35 UTC |