lilphil has asked for the wisdom of the Perl Monks concerning the following question:
however when I put that into practice, I get the error "Usage: Wx::Font::newNativeInfo(CLASS, info) at ./localetest.pl line 13."my $font = Wx::Font->new(..)
#!/usr/bin/perl use warnings; use Wx qw(wxDEFAULT wxNORMAL wxFONTENCODING_DEFAULT); package TestApp; use base 'Wx::App'; sub OnInit { my $this = shift; my $font = Wx::Font->new( 14, wxDEFAULT, wxNORMAL, wxNORMAL, 0, "", wxFONTENCODING_DEFAULT); } package main; my $app = TestApp->new();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using Wx::Font (wxPerl question)
by PodMaster (Abbot) on Dec 05, 2003 at 15:05 UTC | |
by lilphil (Scribe) on Dec 05, 2003 at 21:29 UTC |