Commit Graph

777 Commits

Author SHA1 Message Date
Robin Dunn
1b725ef4ca Tweak PGEditor.GetValueFromControl.variant to be an output parameter,
and also modify the virtual handler code so it works the same way
2017-06-02 15:29:17 -07:00
Robin Dunn
d3dc961f84 Add some missing constants 2017-06-02 13:52:54 -07:00
Robin Dunn
105642c6c5 Also transfer ownership of the editor arg for RegisterEditorClass 2017-06-02 13:31:46 -07:00
Robin Dunn
dc8f1a87eb Add AddButton and AddBitmapButton to PGMultiButton 2017-06-02 13:00:28 -07:00
Robin Dunn
6e5f3546c2 Add call to wxPGInitResourceModule so propgrid globals are initialized
when the module is imported.
2017-06-02 12:33:36 -07:00
Robin Dunn
5e45f0ad56 Merge pull request #377 from RobinD42/fix-issue373
Fix TreeItemId.__[n]eq__ implementation to not crash when compared to None
2017-05-31 20:20:19 -07:00
Robin Dunn
e5df1da408 A better fix. Use reference params so a None won't get far enough to cause a problem. 2017-05-31 20:16:49 -07:00
Robin Dunn
279f17b964 Ensure that the other item being compared to this one is not NULL,
which could happen when comparing to None in Python.
2017-05-31 19:49:19 -07:00
Robin Dunn
c2a905e27b Add wrappers for wxPrintData::[GS]etPaperSize 2017-05-31 19:06:14 -07:00
Robin Dunn
f277412ad4 wxpy_api updates:
shift a couple inline helpers into the exported API, add and use a couple new ones.
2017-05-25 13:53:16 -07:00
Robin Dunn
48326c93aa Merge pull request #370 from RobinD42/fix-issue369
Add Wizard.ShowPage and IsRunning
2017-05-25 10:01:50 -07:00
Robin Dunn
be3ec6d2ba Add ShowPage and IsRunning methods 2017-05-24 10:54:02 -07:00
Robin Dunn
2e706e7aba Set wx.RefCounter objects to be owned by C++.
Set the /Transfer/ annotation on the ctors, because the C++ objects will always own themselves and will delete themselves when their C++ refcount drops to zero.
2017-05-23 13:18:53 -07:00
Robin Dunn
c4a5b9fa0a Merge pull request #367 from RobinD42/hashable-treeitemid
Make TreeItemId hashable
2017-05-18 11:48:25 -07:00
Robin Dunn
a1bafc04df Make TreeItemId hashable using the internal ID for the hash value,
so IDs pointing to the same item will compare as equal and have the same hash values. This enables TreeItemIDs to be dictionary keys in Py3.
2017-05-18 08:19:08 -07:00
Robin Dunn
b4e4f48f8d Switch the other old GetHandle-like aliases to wxUIntPtr too 2017-05-11 14:29:36 -07:00
Robin Dunn
6a2a7aab9b Return an integer from wx.DC.GetHandle instead of a voidptr.
In some cases due to unsigned values greater than signed max, converting the voidptr back to a handle overflows the receiving variable so it is not allowed.
2017-05-11 13:40:29 -07:00
Robin Dunn
ddc11eef44 Fix typo 2017-05-09 20:01:35 -07:00
Robin Dunn
c8b3ccc44c Ensure we have the GIL in GraphicsContext.GetTextExtent 2017-05-09 19:47:57 -07:00
Robin Dunn
bae2b7f046 Acquire the GIL in the value type Get() methods 2017-05-09 19:29:14 -07:00
Robin Dunn
f12c9bc1a5 Merge branch 'master' into release-prep 2017-05-05 21:01:59 -07:00
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
d440c824e8 typo 2017-05-05 16:47:18 -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