* Added wrappers for the OSXEnableAutomaticQuoteSubstitution, * Many of the deprecated items in wxWidgets and wxPython are being or have been removed. Be sure to test your code in a recent 4.0.x release with warnings enabled so you can see which class, method or function calls * Bug fixes in wx.lib.calendar: key navigation across month boundaries is * Switch to using a wx.Overlay in the Widget Inspection Tool to highlight * Fixed issue in wx.lib.agw.customtreectrl where the label editor could widgets like wx.ListCtrl, wx.TreeCtrl and wx.dataview.DataViewCtrl. * The wx.WS_EX_VALIDATE_RECURSIVELY extended style flag is obsolete, as it is now the default (and only) behavior. The style flag has been added back into wxPython for compatibility, but with a zero value. You can just * Fix a sometimes crash when using a wx.Overlay by letting the wx.DCOverlay * Replaced the Vagrant VMs used for building wxPython for various Linux distros * Added the wx.svg package which contains code for parsing SVG (Scalable Vector Graphics) files, and also code for integrating with wxPython. It can rasterize the SVG to a wx.Bitmap of any size with no loss of quality, and it can also render the SVG directly to a * Fixed wx.GetApp() to use wxWidgets' global wxApp instance instead of maintaining its own pointer. This way, if the wxApp is created by C++ * Added wx.adv.GenericAnimationCtrl so the generic version of the animation classes can be used even on the platforms that have a native version. Note that due to internal changes to support both types of animations, some API changes in how the Animation objects are created. See the * Added wrappers for the wx.grid.GridBlockCoords, wx.grid.GridBlocks, and wx.grid.GridBlockDiffResult classes, as well as associated new methods in the wx.grid.Grid class. These provide a new way to interact with blocks which should be a more efficient (time and memory) way to process large * Fixed issue when sys.prefix is not unicode (Python2) and when its contents OBS-URL: https://build.opensuse.org/package/show/X11:wxWidgets/python-wxPython?expand=0&rev=55
34 lines
920 B
Diff
34 lines
920 B
Diff
From 371101db7a010d679d214fde617dae9de02008d9 Mon Sep 17 00:00:00 2001
|
|
From: Scott Talbert <swt@techie.net>
|
|
Date: Fri, 14 Jul 2023 13:23:03 -0400
|
|
Subject: [PATCH] Handle wxGLCanvas::CreateSurface which is only available on
|
|
EGL
|
|
|
|
---
|
|
etg/_glcanvas.py | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/etg/_glcanvas.py b/etg/_glcanvas.py
|
|
index 52992ed8..2e578645 100644
|
|
--- a/etg/_glcanvas.py
|
|
+++ b/etg/_glcanvas.py
|
|
@@ -125,6 +125,15 @@ def run():
|
|
sipRes = wxGLCanvas::IsDisplaySupported(attribPtr);
|
|
""")
|
|
|
|
+ c.find('CreateSurface').setCppCode("""\
|
|
+ #if wxUSE_GLCANVAS_EGL
|
|
+ return self->CreateSurface();
|
|
+ #else
|
|
+ wxPyRaiseNotImplemented();
|
|
+ return false;
|
|
+ #endif
|
|
+ """)
|
|
+
|
|
#-----------------------------------------------------------------
|
|
tools.doCommonTweaks(module)
|
|
tools.runGenerators(module)
|
|
--
|
|
2.43.0
|
|
|