Commit Graph

235 Commits

Author SHA1 Message Date
Scott Talbert
aa1ef7bd75 Update ETG scripts to support wxWidgets 3.1.6 functionality
Fixes #2136.
2022-05-02 22:33:58 -04:00
Scott Talbert
6da0064551 Replace deprecated PyEval_CallObject with PyObject_CallObject 2022-01-11 17:35:31 -05:00
Robin Dunn
66ec80bd21 Merge branch 'master' into update-wx 2021-12-15 18:59:03 -08:00
Robin Dunn
a843ed14f2 Merge pull request #2014 from arjones6/master
Add wxDC.DrawLinesFromBuffer to draw directly from numpy array memory using the Buffer protocol
2021-12-15 18:55:41 -08:00
Robin Dunn
9627bb8035 Merge branch 'master' into update-wx 2021-12-13 21:40:18 -08:00
arjones6
cd94afce06 dc.DrawLinesFromBuffer - add element size check, rename 2021-10-05 14:09:55 -04:00
arjones6
88612ceba2 Added wxDC.DrawLinesBuffer 2021-10-01 16:42:08 -04:00
Christian Clauss
25ba122168 Fix typos discovered by codespell 2021-08-07 18:55:49 +02:00
Robin Dunn
af2c2b63c6 Add wx.FullScreenEvent 2021-07-24 16:01:37 -07:00
Robin Dunn
5cace47aae Restore GIL acquisition in wxPseudoDC::FindObjects* 2020-11-18 10:52:53 -08:00
jeremyd2019
357a350837 Try both old and new buffer protocols on python2.7
While some objects on 2.7 might only implement the old buffer protocol,
some (notably memoryview) only implement the new buffer protocol, so
both need to be tried.
2020-07-02 22:41:12 -07:00
Stefan Brüns
b45ec07194 Use explicit wxString::c_str conversion for sipFindType(const char*) 2020-07-01 15:13:07 +02:00
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
346fe89ce8 minor typos and tweaks 2020-06-16 19:51:09 -07:00
Scott Talbert
0c18353adb Add support for longlong and ulonglong in wxVariant out helper
Fixes #1299
2020-06-10 14:25:45 -04:00
Robin Dunn
a00c8ff447 AllowNone for wxDVCVariant, like wxVariant 2020-05-14 16:48:53 -07:00
Robin Dunn
6885cf4226 i_wxPyMakeBuffer needs to acquire the GIL 2020-05-14 16:32:56 -07:00
Robin Dunn
7de301c105 Use different typecheck code for wxArrayInt and wxArrayString in variant conversions 2020-04-07 18:30:07 -07:00
Robin Dunn
d9ab273d2a Revert last change, it was done that way for a reason 2020-04-07 18:18:28 -07:00
Robin Dunn
bf0d0fc027 Be more strict about what is acceptable input for the wxArray* mapped types 2020-04-07 16:29:03 -07:00
Per A. Brodtkorb
b525fbb037 Fixes #1577
Allocated array should be deallocated with delete [].
Deallocating it with delete can cause memory leaks.
2020-03-25 10:49:44 +01:00
Robin Dunn
4444d63c1f Add missing clipboard event type and binder 2020-03-17 15:57:10 -07:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
55d3fd4e70 Explain why wxCHMHelpController is in src instead of etg. 2020-03-02 16:01:42 -08:00
Robin Dunn
434365ec00 Add CHMHelpController, and a wx.HelpController factory function 2020-03-02 15:13:34 -08:00
Robin Dunn
eb2a6e0962 Provide an empty wxPyApp::OSXEnableAutomaticTabbing for the other platforms 2019-12-11 19:10:19 -08:00
Robin Dunn
c106daa179 Add TODO about use of deprecated APIs 2019-12-11 12:10:22 -08:00
Robin Dunn
afcd5f2d97 Keep a reference to the stream passed to wx.FSFile 2019-10-22 16:07:06 -07:00
Robin Dunn
ada50c248f Merge pull request #1355 from wxWidgets/array-mappedtypes-issue1346
Update array MappedTypes
2019-09-12 19:20:01 -07:00
Robin Dunn
2226577f9a Defer checking the contents of the sequences in order to get better exceptions 2019-09-12 16:45:39 -07:00
Robin Dunn
c1d25d0e16 Remove tracking of application instance in wxPyApp, and just use the one already in wxAppConsole instead. This will enable wx.GetApp to still do the right thing when the wxApp is created outside of Python. 2019-09-12 13:42:31 -07:00
Robin Dunn
3bce916e34 Update wxWidgets, add wxDPIChangedEvent, adapt to some propgrid api changes 2019-09-04 14:18:12 -07:00
Robin Dunn
96c41be226 Merge pull request #1199 from RobinD42/sip-4.19.16
Update sip to version 4.19.16

(cherry picked from commit 7383d34fce)
2019-04-15 16:57:04 -07:00
Robin Dunn
e9e3736fa0 Merge pull request #1035 from RobinD42/fix-issue961
include wxpy_api.h

(cherry picked from commit 7300aa4718)
2018-10-11 21:15:10 -07:00
Robin Dunn
ac1a323144 Merge pull request #1026 from RobinD42/sip-4.19.13
Switch to SIP 4.19.13

(cherry picked from commit a268da9b84)
2018-10-03 19:25:45 -07:00
Robin Dunn
b5bb587145 Merge pull request #897 from RobinD42/add-windowidref
Add wx.WindowIDRef and wx.NewIdRef
2018-06-24 21:37:54 -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
09de554e1b Merge branch 'this-n-that' into wxPy-4.0.x
(cherry picked from commit 2e5430d57f)
2018-05-07 11:24:24 -07:00
Robin Dunn
f1a24d4978 Add classes that have been added to existing interface headers 2018-02-09 15:03:58 -08:00
Robin Dunn
9a8dd85665 Use wxApp::GetInstance in i_wxPyCheckForApp instead of wxTheApp 2018-02-01 20:23:16 -08:00
Robin Dunn
8ddac86fd2 Don't CleanUpModules when reinitializing. 2018-01-29 19:48:29 -08:00
Robin Dunn
bb275cb617 Switch gizmos.TreeListCtrl to be essentially just HyperTreeList with a new name. 2018-01-05 19:46:50 -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
51b39e65b5 Starting to add TreeListCtrl 2017-11-17 14:39:16 -08:00
Robin Dunn
17643e9cd1 Port the LEDNumberCtrl from wxCode/gizmos in Classic 2017-10-27 17:21:59 -07:00
Robin Dunn
a5eeca0a5c Return None when trying to make a memoryview buffer with a NULL pointer 2017-09-27 19:17:19 -07:00
Robin Dunn
541c4882da Add an item to wx.PlatformInfo and wx.__version__ indicating build type:
Development, snapshot or release
2017-09-27 17:25:37 -07:00
Robin Dunn
c8a82c0601 Clear potential prior error state 2017-09-23 19:17:23 -07:00
Robin Dunn
07c2302d9b Record LONG_MAX and LONG_MIN values too 2017-08-15 18:42:15 -07:00