Commit Graph

1179 Commits

Author SHA1 Message Date
Scott Talbert
d8c8e9e4c7 Implement wrapping for wx.ThreadEvent
Fixes #2338.
2023-02-04 20:41:53 -05:00
Mark Roszko
3812a286c4 Patch out GTK specific function from wx 3.2.1 2022-11-08 21:57:48 -05:00
Robin Dunn
0f9dd33cbf Merge pull request #2282 from ncotrb/master
Added EVT_WEBVIEW_SCRIPT_RESULT event binder
2022-10-18 17:29:55 -07:00
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
Nico
380f8337da Added EVT_WEBVIEW_SCRIPT_RESULT event binder
Adds the missing EVT_WEBVIEW_SCRIPT_RESULT event binder for the webview widget.
Please have a look here: https://github.com/wxWidgets/Phoenix/issues/2099#issuecomment-1239722129

This is my very first pull request. I hope that I have done it right =)
2022-09-14 22:38:44 +02: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