laziness, impatience, and hubris | |
PerlMonks |
Re: wxPerl fails with a cryptic message: "variable is not of type Wx::Point"by kcott (Archbishop) |
on Mar 08, 2013 at 20:49 UTC ( [id://1022490]=note: print w/replies, xml ) | Need Help?? |
G'day Helen, I'm not a Wx user; however, the documentation seems to indicate that the value you've used for position (i.e. [20,30]) needs to be a Wx::Point instance. See Update below for an issue with the argument list. I agree that the documentation is not optimal. Here's the links I followed to glean the above information: I also found Wx::Perl::ListCtrl which you may be interested in: its description claims it provides "a sane api for Wx::ListCtrl". Update: Your Wx::ListCtrl->new() call contains an additional argument ('Report', # label) which is throwing position, and subsequent arguments, off by one. Accordingly, the error message you received refers to 'Report' not being a Wx::Point. -- Ken
In Section
Seekers of Perl Wisdom
|
|