Commit Graph

755 Commits

Author SHA1 Message Date
Robin Dunn
e6c6116f5b Fix GridTableBase.GetValue and related methods to work more like they did in Classic. 2017-05-05 17:19:01 -07:00
Robin Dunn
0272dab5fb Mark wxXmlSubclassFactory::Create as a factory function 2017-04-28 15:26:29 -07:00
Robin Dunn
8376744f66 Add wrapper for wxNotebook::DeleteAllPages 2017-04-26 16:18:39 -07:00
Robin Dunn
5b26416ecb Fix the virtual catcher code, and some cleanup. 2017-04-25 17:40:24 -07:00
Robin Dunn
b50b321d0e Fix some virtual method signatures 2017-04-25 14:37:50 -07:00
Robin Dunn
5a14acd54d Merge pull request #327 from RobinD42/fix-issue324
Fix the [G|S]etClientData methods in wx.CommandEvent
2017-04-24 18:40:16 -07:00
Robin Dunn
c073d1be58 Fix the SetFonts in HtmlEasyPrinting and HtmlPrintout too 2017-04-24 12:36:29 -07:00
Robin Dunn
99c7e500b1 Fix the [G|S]etClientData methods in wx.CommandEvent
to be tweaked the same way they are in wx.ClientDataContainer, and add a ClientData property for each class. Update the unittests accordingly.
2017-04-24 10:19:35 -07:00
Robin Dunn
efa81882e3 Also allow numpy arrays for sequence conversions to value types 2017-04-17 17:22:50 -07:00
Robin Dunn
0b57a79ab0 Merge branch 'master' into release-prep 2017-04-15 10:30:48 -07:00
Robin Dunn
be47177b34 Add a TODO for wxMessageDialog::ButtonLabel 2017-04-15 10:26:12 -07:00
Robin Dunn
435084297f Merge pull request #278 from RobinD42/treelistitem-__eq__
Give dataview.TreeListItem hash and equality operators.
2017-04-15 10:21:27 -07:00
Robin Dunn
05626ef850 Give dataview.TreeListItem hash and equality operators.
Remove non equality operators from DataViewItem, as there is no implicit ordering of the items that makes sense
2017-04-14 21:28:54 -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
Robin Dunn
a79cd3254c Add wx.YieldIfNeeded 2017-04-13 21:27:15 -07:00
Robin Dunn
a4e226c7fd Merge branch 'master' into release-prep 2017-04-13 20:51:26 -07:00
Robin Dunn
708e2487dc Since we know it is a Tuple or List we can use PySequence_Fast_GET_ITEM 2017-04-12 14:32:50 -07:00
Robin Dunn
b01729f4ef Tighten up allowed types in auto sequence conversions
Instead of allowing generic sequences to be convertible to wxPoint, wxSize, and others, explicitly allow only tuples and lists.  This is needed because these types also have methods that make them look like sequences, which meant that you could pass a wxSize where a wxPoint is expected, and so on.

Even worse is nonsense stuff like:

    wx.Point(10,20) == wx.Size(10,20)

evaluating to True.
2017-04-12 13:57:08 -07:00
Robin Dunn
01105def28 Add wx.YieldIfNeeded 2017-04-12 10:44:54 -07:00
Robin Dunn
637db6c4bf Change uses of FindWindowById to just FindWindow.
Also, clarify default value for parent arg in FindWindow* staticmethods.
2017-04-10 11:05:36 -07:00
Robin Dunn
6ae8a86d60 Rearrange some things in propgrid 2017-04-03 22:31:30 -07:00
Robin Dunn
74148faaa6 Merge branch 'master' into release-prep 2017-04-03 21:21:19 -07:00
Scott Talbert
fc5d3dfe2e Set piBases for RichTextFormattingDialog
Fixes:
======================================================================
FAIL: test_richtext_pi (__main__.PIImportTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "unittests/test_pi_import.py", line 60, in test_richtext_pi
    self.runPI('richtext.pi')
  File "unittests/test_pi_import.py", line 32, in runPI
    self.assertEqual(sp.returncode, 0, stdout)
AssertionError: 1 != 0 : b'Traceback (most recent call last):\n  File "richtext.pi", line 11292, in <module>\n    class RichTextFormattingDialog(PropertySheetDialog):\nNameError: name \'PropertySheetDialog\' is not defined\n'

----------------------------------------------------------------------
2017-03-28 20:33:04 -04:00
Robin Dunn
875c9677ac Revert auto-propagating the mustHaveAppFlag from classes to their static methods, if any, and explicitly set the flag on only those static methods that need it instead. 2017-03-21 19:21:07 -07:00
Robin Dunn
4ef2ce2bd5 Revert auto-propagating the mustHaveAppFlag from classes to their static methods, if any, and explicitly set the flag on only those static methods that need it instead. 2017-03-21 15:55:10 -07:00
Robin Dunn
8e46c3e9bb Merge branch 'master' into release-prep 2017-03-20 19:52:40 -07:00
Robin Dunn
632dcaba79 Need to transfer ownership on the Prepend methods too. 2017-03-20 16:35:21 -07:00
Robin Dunn
9b5f40caa4 Merge branch 'master' into release-prep
# Conflicts:
#	etg/_propgrid.py
#	etg/propgrid.py
#	etg/propgridproperty.py
#	ext/wxWidgets
2017-03-14 20:01:53 -07:00
Robin Dunn
a2d01de343 A few more iteritems —> items 2017-03-13 20:14:04 -07:00
Robin Dunn
3d0fb1927e Remove the MappedType for wxPGAttributeStorage 2017-03-13 19:59:54 -07:00
Robin Dunn
775d6da37a We can’t use the default SIP machinery got GetAttributes because wxPGAttributeStorage doesn’t have a copy-ctor and the default copy ctor won’t IncRef the variant values and so crashes happen. Just do the conversion directly here instead. 2017-03-13 19:48:58 -07:00
Robin Dunn
539f9d1f82 Rename Properties and Items methods so the same-named properties don’t cause a build warning 2017-03-13 15:47:42 -07:00
Robin Dunn
094ab1f710 Just convert wxPGAttributeStorage to a dictionary 2017-03-11 20:13:39 -08:00
Robin Dunn
c688fb0362 Port some Python code tweaks and extensions from Classic in propgrid 2017-03-11 19:05:13 -08:00
Robin Dunn
918a70f5a4 Add mapped type for wxPGVariant and switch all wxVariant in propgrid to this type. This allows the variant types only available in propgrid to be used the same as the core variant types. 2017-02-24 14:32:40 -08:00
Robin Dunn
265b7499eb Remove the auto-convert from wxArrayString to wxPGChoices 2017-02-21 17:29:07 -08:00
Robin Dunn
6908368174 More ease of use fixes for wxPGPropArgCls 2017-02-21 17:28:16 -08:00
Robin Dunn
e692b9f335 Fix the wxMultiChoiceProperty ctor taking a wxArrayString to make it easier and more compatible with Classic. 2017-02-21 17:26:58 -08:00
Robin Dunn
04cabce398 Add autoconvert code from wxArrayString to wxPGChoices 2017-02-21 12:46:11 -08:00
Robin Dunn
0d23d74d72 Add code to auto convert from string or wxPGProperty to wxPGPropArgCls 2017-02-21 12:45:10 -08:00
Robin Dunn
0fecb90eb1 Give wxPGChoices some sequence special methods 2017-02-21 12:43:10 -08:00
Robin Dunn
536e0e154a Transfer editor object ownership 2017-02-21 12:41:46 -08:00
Robin Dunn
e8ab2bfa0e Transfer ownership of the property objects to the propgrid 2017-02-20 20:50:39 -08:00
Robin Dunn
38029c973c Add some deprecated items for things in Classic that are no longer needed, and also some custom helpers, etc. 2017-02-20 19:30:30 -08:00
Robin Dunn
df3c93b7dc Add missing propgrid event related items. 2017-02-20 13:30:45 -08:00
Robin Dunn
1a3c28270f Add some missing enums and defines for propgrid 2017-02-20 13:30:05 -08:00
Robin Dunn
f59f6c30ad Add missing propgrid event related items. 2017-02-20 11:10:19 -08:00
Robin Dunn
08568a3651 Add some missing enums and defines for propgrid 2017-02-14 18:36:48 -08:00
Robin Dunn
18bbfac7f9 Fixes for things exposed by the new .pyi files tests. 2017-02-14 18:32:15 -08:00
Robin Dunn
c9b68566ee Merge branch 'master' into release-prep 2017-02-13 20:05:22 -08:00