Scott Talbert
b69a44006a
Include <wx/helpbase.h> instead of <wx/help.h> for wxHelpControllerBase
...
This hopefully resolves a link issue with GCC 16+ which performs more
aggressive devirtualization. We want to avoid linking wxHTML into the
core library, so we need to just include helpbase here so GCC doesn't
see the derived classes.
Fixes: https://github.com/wxWidgets/Phoenix/issues/2807
2025-10-28 11:56:25 -04:00
Scott Talbert
8ac8979369
Fix duplicated string constants in wx.propgrid
...
See: https://github.com/wxWidgets/Phoenix/issues/2790
2025-09-06 15:45:01 -04:00
Scott Talbert
54c398374e
Mark wx.SystemSettings.GetAppearance() as requiring wx.App
...
This avoids crashing when calling this method without a wx.App instance.
Fixes: https://github.com/wxWidgets/Phoenix/issues/2771
2025-07-11 09:51:37 -04:00
lojack5
fa2d1af340
Squash - cleanup imports
2025-03-13 18:35:14 -06:00
lojack5
bca7d10602
Implement hinting for types that are automatically converted
...
This handles any type with a defined `.convertFromPyObject` set in its
sip generator.
2025-03-13 18:35:13 -06:00
Scott Talbert
bf2a6554e2
Remove textwrap backport - textwrap added in Python 3.4
2025-02-03 20:27:43 -05:00
Alexandre Detiste
323e78c085
remove more Python2 hybridation
2025-02-02 20:29:49 -05:00
Alexandre Detiste
0257f755cf
remove most of Python2 compatibility code
2025-02-02 20:17:45 -05:00
Scott Talbert
c3092be458
Merge pull request #2468 from lojack5/lojack-typed-typestubs
...
ci-build / build-source-dist (push) Failing after 0s
ci-build / build-wheels (x64, macos-13, 3.10) (push) Has been skipped
ci-build / build-wheels (x64, macos-13, 3.11) (push) Has been skipped
ci-build / build-wheels (x64, macos-13, 3.12) (push) Has been skipped
ci-build / build-wheels (x64, macos-13, 3.13) (push) Has been skipped
ci-build / build-wheels (x64, macos-13, 3.9) (push) Has been skipped
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Has been skipped
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Has been skipped
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Has been skipped
ci-build / build-wheels (x64, ubuntu-22.04, 3.13) (push) Has been skipped
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Has been skipped
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Has been skipped
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Has been skipped
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Has been skipped
ci-build / build-wheels (x64, windows-2022, 3.13) (push) Has been skipped
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Has been skipped
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Has been skipped
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Has been skipped
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Has been skipped
ci-build / build-wheels (x86, windows-2022, 3.13) (push) Has been skipped
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Has been skipped
ci-build / Publish Python distribution to PyPI (push) Has been skipped
ci-build / Create GitHub Release and upload source (push) Has been skipped
ci-build / Upload wheels to snapshot-builds on wxpython.org (push) Has been skipped
ci-build / Build wxPython documentation (push) Has been cancelled
Improve Python type-stubs
2025-01-06 22:14:20 -05:00
jensgoe
92c178e8f9
support implementing CreateBitmapBundle for custom ArtProvider
2024-12-23 17:48:48 +01:00
Scott Talbert
f624b8a251
Fix pickling of wx.RealPoint
...
Fixes: https://github.com/wxWidgets/Phoenix/issues/2644
2024-11-13 23:19:51 -05:00
Scott Talbert
9a76a36536
Merge pull request #2624 from DietmarSchwertberger/ISS1944_DD_MULTIPLE
...
add Python implementation of GetPaths (fix issue #1944 )
2024-10-14 20:32:13 -04:00
DietmarSchwertberger
a49f199215
add Python implementation of GetPaths (fix issue #1944 )
2024-10-12 15:06:47 +02:00
unawarez
a7b3401ed5
support Wayland GTK backend in Window.GetHandle
...
This adds support for getting a Wayland `wl_surface` from
`Window.GetHandle`. The behavior of the function is now to return either
an X11 window ID or Wayland `wl_surface` if running a GTK build on those
backends, return 0 on any other GTK backend, or else return the C++
`GetHandle` result unmodified. This is the simplest fix for the Wayland
issue without worrying about breaking existing user code, as this
function already failed for any non-X11 GTK build. Returning 0 on
non-X11/Wayland GTK platforms sidesteps the issue of making sure e.g.
GTK Mac GetHandle returns the same type as native Cocoa Mac GetHandle.
2024-06-20 13:29:28 -05:00
Jorge Moraleda
a1c9554bbf
Update wxWidgets to v3.2.5. Add support for new, MSW-only Accessibility related methods.
2024-05-17 21:32:22 -04:00
Scott Talbert
2c6307142f
Update sip to v6.8.3 and fix deprecations
2024-02-12 23:20:17 -05:00
Scott Talbert
7a198b8cae
Update wxTextCtrl OSX overrides since they're now documented
2023-11-20 22:12:58 -05:00
lojack5
17cbd02543
fixup: Non-generated core.pyi code
...
Since this is used to not only generate the type-stubs, but also the actual
wx/core.py, we need to ensure TypeVar and ParamSpec are imported there as
well. So, move the imports to the wx/core.py generator definition, and
remove the imports from the type-stub generator (these imports are only
used by CallAfter and CallLater).
2023-10-18 22:46:32 -06:00
lojack5
1fa0df5db5
Add typing to handwritten code for core.pyi
2023-10-18 12:27:00 -06:00
Scott Talbert
74e34c7a2c
Merge pull request #2425 from konstantinbo/fix-dataviewcheckicontextrenderer
...
Fix dataviewcheckicontextrenderer
2023-07-14 17:09:41 -04:00
Scott Talbert
371101db7a
Handle wxGLCanvas::CreateSurface which is only available on EGL
2023-07-14 14:28:12 -04:00
Scott Talbert
db2cef94d0
Set missing pyInt on wxImage.Clear
...
Fixes #2433 .
2023-07-06 12:47:27 -04:00
Konstantin Bolshakov
1236562af5
Add proper support for DataViewCheckIconTextRenderer
2023-06-27 14:07:00 +02:00
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