Commit Graph

13 Commits

Author SHA1 Message Date
Stefan Brüns
5990d44b5e Fix conversion of variant list members
Item() returns either a Node* or (with wxUSE_STL=1) a
compatibility_iterator. While the former is silently and erroneously
converted to a Variant using the Variant(void*) overload, the STL
flavor fortunately failed. Dereference the Node*/iterator before
passing it to wxVariant_out_helper(const Variant&).
2020-07-01 15:11:07 +02:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
b77c88a280 Merge tag 'wxPython-4.0.2' into wxPy-4.0.x
(cherry picked from commit 4c56c39e52)
2018-06-17 22:04:22 -07:00
Robin Dunn
19930c9bbd Add support for more variant data types available in core. 2017-02-24 14:10:04 -08:00
Robin Dunn
2b7ae84149 Allow None to be used with wxVariant 2017-02-22 13:32:59 -08:00
Robin Dunn
02d191cb7e Update copyright in src 2017-02-13 16:31:56 -08:00
Robin Dunn
75ba21e45c Add mapped type for wxVariantList 2015-03-04 17:14:26 -08:00
Robin Dunn
35fd2e16bf Update copyright year
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-21 02:13:03 +00:00
Robin Dunn
aacc033a6d Add the rest of the dataview classes, lots of unittests and supporting helpers and MappedTypes.
Update existing dataview and variant classes and MappedTypes to add missing features and such needed for Classic compatibility and full coverage of the API.

Add some samples ported from the Classic demo so the DVC and related classes can be seen in action.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:22:20 +00:00
Robin Dunn
8c0fb1c8f6 Move the wxVariant helpers to the API so they can be reused elsewhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:20:26 +00:00
Robin Dunn
26f513301e Expand the number of value types supported by the wxVariant mapped type, including plain PyObjects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:19:35 +00:00
Robin Dunn
b41df0b779 Many, many (many!) changes needed to build and run the Phoenix extension modules with Python 3. Where possible changes were made such that the code works with both Python 2.7 and 3.2 without conditionals. In general the following types of changes were made:
* Changed imports to use either absolute or explicit relative imports.  Implicit relative imports are no longer allowed.

 * Changes to accomodate standard library classes or modues moving to other locations, or being removed entirely.

 * Changes related to print becoming a function, execfile being removed, u'' no longer allowed, and other syntax related issues.

 * Working around C APIs that have changed or simply vanished. (PyInt, PyString, PyBytes, etc.)

 * Dealing with text file objects using strings vs binary file objects using bytes, auto-encoding, and etc.

 * Replacing the use of PyCObject with PyCapsule and dealing with an apparent bug where PyCapsule objects can't be imported from submodules within a package.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-24 23:28:02 +00:00
Kevin Ollivier
747eb463b6 Switch to using a typemap for wxVariant, and add impls for wxString, long, int and bool.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-20 17:30:23 +00:00