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
Robin Dunn
c8141c9cfe
Save info about the size of some C types
2017-08-15 17:46:09 -07:00
Robin Dunn
b8260ea7f1
Also error-check wxArrayInt conversion
2017-06-27 20:21:36 -07:00
Robin Dunn
9a8a5ee545
relocate the sip directives to fix earlier premature commit
2017-06-27 20:21:26 -07:00
Robin Dunn
5295e4eba8
Clear possible exception from PyBytes_Check before converting from Unicode
2017-06-27 20:21:13 -07:00
Robin Dunn
3b0d3c18a0
Add support for some PyDate_ APIs in our API,
...
so we only have to worry about PyDateTime_IMPORT being needed in one compilation unit.
2017-06-27 20:20:23 -07:00
Robin Dunn
b91c4e396c
Reinit image handlers after clearing and reloading wxModules
2017-06-16 20:34:44 -07:00
Robin Dunn
e5bf8ac1fe
Add code to reinitialize the wxModules into an API function
2017-06-08 17:00:19 -07:00
Robin Dunn
c655fd5f5a
Allow wxPyCheckForApp to not raise an exception if one isn't wanted
2017-06-08 12:05:30 -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