Commit Graph

1175 Commits

Author SHA1 Message Date
Robin Dunn
f3f2356f53 Merge pull request #2269 from CarstenGrohmann/fix_pyArgsString_for_HitTestSubItem
Fix arguments in docstring of wx.ListCtrl.HitTestSubItem()
2022-10-18 17:21:56 -07:00
Robin Dunn
847659ad2f Add wrapper for wxGenericStaticBitmap 2022-10-17 14:32:43 -07:00
Carsten Grohmann
32e80758c7 Fix arguments in docstring of wx.ListCtrl.HitTestSubItem() 2022-09-07 18:08:12 +02:00
Robin Dunn
2c5bf90721 GetNextAvailableScale's parameter is InOut 2022-08-06 11:39:13 -07:00
Tim Stahlhut
6e6f2effd4 Fix weird chars in etg/bitmap.py 2022-07-05 17:35:14 -04:00
Robin Dunn
b0a75a5bba Fix for wxBitmap::UseAlpha on MSW 2022-06-28 21:26:01 -07:00
Robin Dunn
4c993c1b1a Updates needed to switch to wx master branch (3.2.0) 2022-06-28 20:27:42 -07:00
Robin Dunn
9781f584cd Expose some protected methods in wxBitmapBundleImpl 2022-06-08 18:25:40 -07:00
Robin Dunn
f993afa723 Change wx.FileDialogCustomize.AddChoice to accept a list of strings 2022-06-08 18:08:20 -07:00
Scott Talbert
46f1c1759f Update wxWidgets to 3.1.7 2022-06-08 14:44:47 -07:00
DietmarSchwertberger
b33ede2106 support EVT_GRID_ROW_MOVE 2022-06-08 21:04:37 +02:00
Robin Dunn
0a771ad404 Transfer ownership in wx.BitmapBundle.FromImpl
Add unittest for wx.BitmapBundleImpl
2022-05-17 18:48:46 -07:00
Robin Dunn
f8d7cad72b Ignore wx.App.GetGUIInstance 2022-05-17 18:47:24 -07:00
Robin Dunn
42c0da6d86 Merge pull request #2163 from wxWidgets/bmp-bundle
Autoconvert to wx.BitmapBundle
2022-05-17 17:26:42 -07:00
Robin Dunn
323129f449 Adjust all the custom wx.MenuItem methods. Return new instances, mark them as factories, etc. 2022-05-17 17:23:58 -07:00
Robin Dunn
70c767282c Add a TODO 2022-05-16 15:56:03 -07:00
Robin Dunn
192109386d Add convertFromPyObject code for wxBitmapBundle so we can autoconvert wxBitmaps from Python 2022-05-16 15:27:16 -07:00
Tim Stahlhut
d37686d201 Return new wxBitmap for GetDisabledBitmap()
This issue was detected by the clang64 compiler; but, it likely needs
fixed for all compilers.
2022-05-15 17:11:19 -04:00
Robin Dunn
3e6be81d6d Add forgotten class scope 2022-05-09 23:12:14 -07:00
Robin Dunn
d7711acce3 Fix wrappers for platform-specific GTKSuppressDiagnostics and OSXEnableNewLineReplacement
They need to be generated for all platforms, even if they do not do anything on some.
2022-05-09 21:49:11 -07:00
Randy Döring
61cb3244d4 Fix CheckListBox GetSelections() 2022-05-06 12:30:03 +02:00
Scott Talbert
37ba9563b6 Update unittests to work with wxWidgets 3.1.6 2022-05-02 22:35:18 -04:00
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
099c0c1e3d Avoid compile warnings for no return statement on non-MSW 2022-01-11 18:00:16 -05:00
Scott Talbert
6da0064551 Replace deprecated PyEval_CallObject with PyObject_CallObject 2022-01-11 17:35:31 -05:00
Scott Talbert
43ad05af4f Merge pull request #2071 from swt2c/test_fixes_2021
Fix a bunch of test issues on GTK and OSX, plus a few non-test bugs
2022-01-09 10:11:07 -05:00
Scott Talbert
2b2bdddb47 Unignore TaskBarIcon.GetPopupMenu
Fixes #2067
2022-01-01 17:23:24 -05:00
Scott Talbert
076b41103e Fix a few wx.Grid event issues / tests 2021-12-30 11:51:24 -05:00
Scott Talbert
da2fbf0930 Require wx.App for wx.NotificationMessage 2021-12-30 11:47:09 -05:00
Robin Dunn
5902ec3750 Add some default return values for the webview stubs 2021-12-15 19:06:36 -08: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
arjones6
efbea6a275 dc.DrawLinesFromBuffer demo and test to intc data type. Updated documentation. 2021-12-15 11:07:18 -05:00
Robin Dunn
9627bb8035 Merge branch 'master' into update-wx 2021-12-13 21:40:18 -08:00
Robin Dunn
c186191fb7 Merge pull request #1972 from jeremyd2019/handle-casts-to-long
WXMSW: use HandleToLong/LongToHandle functions.
2021-12-13 21:38:13 -08:00
Robin Dunn
3d45e62b0e Merge pull request #2029 from swt2c/fix_unbind_outorder
Fix unbinding of events in FIFO order
2021-12-13 20:44:03 -08:00
Robin Dunn
272990b131 Merge pull request #1997 from cclauss/codespell
Fix typos discovered by codespell
2021-12-13 20:16:39 -08:00
Robin Dunn
f95f3187ad Merge branch 'master' into update-wx 2021-11-23 17:00:06 -08:00
Scott Talbert
b143cff821 Fix unbinding of events in FIFO order
When binding events to multiple methods and then unbinding them later,
in the same order they were bound, the wrong method would get unbound.

For example:
    self.btn.Bind(wx.EVT_BUTTON, self.onButton1)
    self.btn.Bind(wx.EVT_BUTTON, self.onButton1)
followed by:
    self.btn.Unbind(wx.EVT_BUTTON, handler=self.onButton2)
    self.btn.Unbind(wx.EVT_BUTTON, handler=self.onButton1)
works, but the reverse fails:
    self.btn.Unbind(wx.EVT_BUTTON, handler=self.onButton1)
    self.btn.Unbind(wx.EVT_BUTTON, handler=self.onButton2)

The reason is that the wxPython Disconnect() method called the wxWidgets
Disconnect() method with the userData parameter set to NULL.  In this
case, wxWidgets performs no filtering based on the userData parameter
and this could result in the wrong handler getting disconnected.

Fix this by setting the userData to a known value before calling
wxWidgets Disconnect() method so that it will disconnect the correct
handler.

This commit also adds a test that verifies the fix.

Fixes #2027.
2021-11-17 19:28:54 -05:00
Robin Dunn
9235b00709 Fix a typo 2021-10-26 12:37:39 -07: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
Christian Clauss
b31d27ccfe Fix typo discovered by codespell
https://pypi.org/project/codespell
2021-08-07 08:55:41 +02:00
Robin Dunn
f321c561ad various tweaks and fixes for wxWidgets update 2021-07-24 16:03:21 -07:00
Robin Dunn
7d09024195 New WebView events 2021-07-24 16:02:14 -07:00
Robin Dunn
af2c2b63c6 Add wx.FullScreenEvent 2021-07-24 16:01:37 -07:00
Robin Dunn
70535a722b remove wx.webkit 2021-07-24 15:59:37 -07:00
Jeremy Drake
31e6c8ed34 WXMSW: use HandleToLong/LongToHandle functions.
On Clang++, casting from a pointer to an integer of a smaller size is
considered an error.  In cases where Windows HANDLEs are converted
to/from longs, use the Windows-provided conversion functions
HandleToLong and LongToHandle.

In a couple of cases, a pointer is being cast to long in a __hash__
function.  These don't seem Windows-specific so it is not safe to assume
the Windows conversion functions are present.  In those cases, fall back
to the (ugly) double-casting that the Windows functions contain.
2021-06-14 11:43:29 -07:00
Robin Dunn
040c59fd99 Change InitLocale to just do locale.setlocale(locale.LC_ALL, "C") to undo what Python (3.8+ on Windows) does. 2021-01-29 13:39:49 -08:00