Wed Feb 17 16:02:58 2016: Request 112107 was acted upon.
Transaction: Ticket created by carstengrohm...@gmx.de
       Queue: Wx
     Subject: Please add wxDefaultDateTime
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: carstengrohm...@gmx.de
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=112107 >


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

Reply via email to