Commit Graph

296 Commits

Author SHA1 Message Date
Robin Dunn
fac5ce6963 Merge pull request #1387 from wxWidgets/sphinx-update
Sphinx update

(cherry picked from commit 8261b58e87)
2019-10-10 12:51:23 -07:00
Robin Dunn
fc14b8ecc4 Give char pointers a value in stubbed code 2019-05-21 16:09:00 -07:00
Robin Dunn
9823b387dd Add support for NoSetter annotation and GetCode, SetCode directives 2019-04-13 13:55:22 -07:00
Robin Dunn
877c4f7642 Better implementation to ensure all window classes have a GetClassDefaultAttributes and that they are marked mustHaveApp 2019-04-13 13:54:34 -07:00
Robin Dunn
02c06475f5 Generate optional stubs for the wxFileSystemWatcher* classes 2019-01-03 21:57:06 -08:00
Robin Dunn
0dec6dfe26 Forward declare all classes, enable writing stubs to the header and globals to the C++ file 2018-10-10 15:25:26 -07:00
Robin Dunn
024846b3a3 Enable inserting a global string at an index position 2018-10-10 15:22:44 -07:00
Robin Dunn
9e635b4171 Add some more std types --> return values 2018-10-10 13:30:02 -07:00
Robin Dunn
3e37ca2344 raise NotImplemented from static methods too 2018-10-10 10:37:35 -07:00
Robin Dunn
9327e74980 We already have method.argsString, no need to regenerate from the ParamDefs 2018-10-09 20:48:11 -07:00
Robin Dunn
3154aea34b Add a tweaker tool to generate stub code for optional features 2018-10-09 20:35:28 -07:00
Robin Dunn
4fd95b39b1 Declare DeleteAllPages in the notebook subclasses, so the proper C++
implementation will be called.
2018-09-27 20:43:56 -07:00
Robin Dunn
8f07ca5c28 wxRealPoint::operator* truncates to int before assigning to the new point
object, which seems dumb. So let's make our own implementation which
preserves the floating point result.
2018-09-25 12:42:22 -07:00
Robin Dunn
4cb781e410 Merge pull request #955 from mesalu/fix_954
Fix 954
(cherry picked from commit 848b43b96d)
2018-08-07 19:40:50 -07:00
Robin Dunn
7394f1458b Fix typo 2018-06-24 20:40:58 -07:00
Robin Dunn
36fa818f2f Replace the deprecation text for wx.NewId 2018-06-24 20:40:36 -07:00
Robin Dunn
b410f5e570 Update copyright years --> 2018 2018-06-06 10:59:51 -07:00
Robin Dunn
d54f43a7f6 Copy MethodDefs for Start and GetNext from base class 2018-04-30 21:11:05 -07:00
Robin Dunn
fb8a380814 Merge pull request #762 from mesalu/admonish_deprecation
Admonish deprecations
2018-02-22 22:03:11 -08:00
Mesalu
5dc799e48c Fix double-deprecation issue on tweaked-deprecations 2018-02-22 15:30:25 -08:00
Mesalu
f0b6cbdae4 Remove the version from deprecations from doxygen, fix helper method between multiple classes. 2018-02-21 15:28:32 -08:00
Mesalu
bd1cd5a52b Create custom deprecation admonition and use it for all deprecation instances 2018-02-21 15:12:47 -08:00
Robin Dunn
086967a6b0 Merge branch 'mesalu-auto_deprecate' 2018-02-19 20:57:59 -08:00
Robin Dunn
8c4dffb091 Add virtual dtor for DC classes 2018-01-29 14:11:00 -08:00
Metallicow
c76384d458 Trim trailing whitespace *.py files 2018-01-16 08:47:07 -06:00
Robin Dunn
92468c7a87 Merge branch 'master' into port-gizmos 2018-01-08 20:32:33 -08:00
Mesalu
24a6db6cd9 Add similar tactics to wxArray (and variants)
According to RobinD42, use cases in wxPython should be limited to Arrays that are full (no gaps)
2018-01-06 11:36:39 -08:00
Mesalu
af084599a6 Allow Py-like reverse indexing of wxList 2018-01-06 02:04:41 -08:00
Robin Dunn
deb21aa2ed Merge branch 'master' into port-gizmos 2017-12-06 13:15:14 -08:00
Robin Dunn
03d1e1559c Add MappedType for wxMessageDialog::ButtonLabel,
so MessageDialog methods can take either string or stock IDs.
2017-11-18 19:26:42 -08:00
Robin Dunn
4120f3b56c fix typo 2017-11-01 16:04:58 -07: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
Robin Dunn
fc2c6cda57 Add support for using the /Constrained/ annotation 2017-09-14 19:53:17 -07:00
Robin Dunn
c76880a6c3 Ensure all window classes declare GetClassDefaultAttributes.
Many do not actually have it, but the docs only declare it in wx.Window so we will miss the ones that really do have one unless we let sip know about them.
2017-09-12 16:07:44 -07:00
Robin Dunn
678d6d897f Ensure wx.Notebook (and other bookctrls) declare all the base virtual methods 2017-09-05 16:38:27 -07:00
Robin Dunn
6bf050289f Virtualize Get/SetProperty 2017-07-21 13:23:09 -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
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
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
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
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
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
479d5b9db6 typos 2017-03-13 19:44:48 -07: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
18bbfac7f9 Fixes for things exposed by the new .pyi files tests. 2017-02-14 18:32:15 -08:00
Robin Dunn
9c87092819 Turn off the generation of the .pi files. The new official standard is .pyi files. 2017-02-13 21:24:54 -08:00