Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 112107
Status: new
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: carstengrohmann [...] gmx.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Please add wxDefaultDateTime
Date: Wed, 17 Feb 2016 22:00:28 +0100
To: bug-Wx [...] rt.cpan.org
From: Carsten Grohmann <carstengrohmann [...] gmx.de>
Dear wxPerl Developer, I'm the developer of wxGlade a GUI designer and code generator written in Python. Currently I improved the support for wxDatePickerCtrl. Unfortunately the variable wxDefaultDateTime isn't defined in the current wxPerl release. This triggers errors like: --8<---------------cut here---------------start------------->8--- Bareword "wxDefaultDateTime" not allowed while "strict subs" in use at AllWidgets_28.pl --8<---------------cut here---------------end--------------->8--- Workaround: =========== A current workaround is to replace "wxDefaultDateTime" by "Wx::DateTime->new()" in the used perl code. For example: --8<---------------cut here---------------start------------->8--- - dp_ctl = Wx::DatePickerCtrl->new(nb1, wxID_ANY, wxDefaultDateTime, wxDefaultPosition, wxDefaultSize, wxDP_SHOWCENTURY); + dp_ctl = Wx::DatePickerCtrl->new(nb1, wxID_ANY, Wx::DateTime->new(), wxDefaultPosition, wxDefaultSize, wxDP_SHOWCENTURY); --8<---------------cut here---------------end--------------->8--- Installed version: ================== # perl -MWx -E 'say $Wx::VERSION' 0.9928 It would be really great if you could add wxDefaultDateTime to wxPerl. Thanks, Carsten