Commit Graph

16 Commits

Author SHA1 Message Date
Robin Dunn
fea9c980f8 Remove use of some constants that no longer exist in 4.1 2019-09-12 13:13:34 -07:00
Robin Dunn
cff5cfa6e9 Fixes for some unittests 2018-02-18 22:05:45 -08:00
Robin Dunn
66b4a7966d Enable wxArray wrappers to return copy from __getitem__.
This solves problems where an array that is the return value of some method call is indexed immediately and a reference to the array is not held, which could result in garbage values for the indexed item. Currently this is turned on for just GridCellCoordsArray, but others can be switched in the future if needed.
2017-10-12 14:33:15 -07:00
Scott Talbert
af936b17ad Fix test_grid42 failure
Fixes:
____________________________ grid_Tests.test_grid42 ____________________________
self = <unittests.test_grid.grid_Tests testMethod=test_grid42>

    def test_grid42(self):
        # old names
>       wx.grid.Grid.GridSelectCells
E       AttributeError: type object 'Grid' has no attribute 'GridSelectCells'

unittests/test_grid.py:319: AttributeError
2017-08-31 22:06:18 -04:00
Robin Dunn
ae60e1b064 Restore the renames done in Classic for the wxGridSelectionModes enum 2017-06-12 13:27:30 -07:00
Robin Dunn
44d2b5d309 Add a missing constant and enum for wx.grid 2017-04-27 09:35:48 -07:00
Robin Dunn
52facb4d7f Add a GetIM() method to Colour, Point, Size, Rect and other ‘value’ types.
GetIM() returns a replicant of the original object that is immutable, so it can be used as a dictionary key, or etc., but still gives access to the properties by name, which using the Get() method to get a tuple of the values does not do.
2017-04-14 19:19:26 -07:00
Metallicow
9568103974 Trim trailing space unittests directory 2016-12-05 16:19:11 -06:00
Robin Dunn
baa26c88d4 Add missing methods in wxGridCellAttr, update etg and tests too. 2016-09-02 21:01:40 -07:00
Robin Dunn
bb01dc0d7f Use absolute import of wtc in the unittest modules, instead of depending on them being run as __main__ and getting the folder on the sys.path by default. 2016-06-30 16:49:19 -07:00
Robin Dunn
4f38ee259d Remove imp_unittest 2016-05-07 19:16:28 -07:00
Robin Dunn
55c21ec895 Add test for wx.grid.Grid.SetCellHighlightPenWidth
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-03-02 00:13:53 +00:00
Robin Dunn
ad00674de2 Fix virtual catcher for EndEdit.
Fix ownership transfer for wxGridCellAttr.SetEditor and SetRenderer.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-14 02:34:41 +00:00
Robin Dunn
d9f802f384 Fix EndEdit to use the newvalue/None as the return value instead of bool and a parameter pass-through.
Add first grid sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-12 05:12:59 +00:00
Robin Dunn
31a7a477b3 More tweaks and unittests for the wx.grid classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-12 05:12:48 +00:00
Robin Dunn
0784c3cc09 First pass at adding wxGrid and related classes. It all compiles, but there is still lots more to do.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-12 05:12:14 +00:00