Kevin Schlosser
7dafb83729
Fixes floating point math in wx.lib.agw.aui
...
wx.lib.agw.aui was never converted to run on Python 3 and as a result the division operator forces a conversion of the used values to a float. Floats cannot be used in functions like `range`. This caused quite number of things to not function properly and produce tracebacks.
The other thing is when wx.lib.agw.aui was written pixels could not be rendered using coordinates that were floats so now passing floats could cause rendering alignment problems because the layout of the various bits were done so in a manner that would have the alignment correct using integers.
(cherry picked from commit 7afcc7fbc6 )
2022-03-08 16:07:20 -05:00
Scott Talbert
ad1d5234ab
Update macOS CI to use non-deprecated image and latest Pythons
...
(cherry picked from commit dcf7a8c2c2 )
2022-02-15 20:38:18 -05:00
Robin Dunn
7f1e32c150
Update ubuntu image used for Azure CI builds
...
(cherry picked from commit 56214584a3 )
2022-02-15 20:37:52 -05:00
Anna Petrasova
006110366c
Fix for Python 3.10
...
Fixes https://github.com/OSGeo/grass/issues/2045
(cherry picked from commit da4dbf1110 )
2022-02-15 20:22:59 -05:00
Scott Talbert
587f3418f2
Fix even more Python 3.10 issues with wx.lib classes
...
(cherry picked from commit f5a55e6bf3 )
2022-02-15 20:22:21 -05:00
Scott Talbert
37fd1be72f
Fix Python 3.10 issue with test_cmndata
...
(cherry picked from commit 032ea05d7f )
2022-02-15 20:21:50 -05:00
Anna Petrasova
62e9c7881e
Fix Python 3.10 in lib.plot
...
Fixes drawing lines
(cherry picked from commit 28b7ba5794 )
2022-02-15 20:21:08 -05:00
Scott Talbert
ca9c9165db
Fix additional Python 3.10 issues with AGW FlatNotebook
...
(cherry picked from commit aa3dca0e40 )
2022-02-15 20:17:54 -05:00
Scott Talbert
8c43b40baf
Fix a bunch of Python 3.10 issues with pure-Python classes and demos
...
In Python 3.10, a change[1] was implemented where extension functions
that take integer arguments will no longer silently accept non-integer
arguments (e.g., floats) that can only be converted to integers with a
loss of precision. This PR fixes most of these issues in the pure-Python
classes and demos by explicitly converting the parameters to int before
passing them to wxWidgets. There is loss of precision, but this was
happening before (automatically) anyway as most wxWidgets DeviceContext
functions operate using integers.
Additionally, the PR fixes a few sizing issues, mostly with SpinCtrls being
too small on GTK3.
This is an example of the relevant exception:
Traceback (most recent call last):
File "/usr/lib64/python3.10/site-packages/wx/lib/agw/pygauge.py", line 355, in OnPaint
r.width = w
TypeError: 'float' object cannot be interpreted as an integer
Fixes #2038 .
[1] https://bugs.python.org/issue37999
(cherry picked from commit 173d079681 )
2022-02-15 20:16:53 -05:00
Carolina Feher da Silva
a6d9f71cc3
Fixed integer division in Python 3
...
(cherry picked from commit 0d449626d6 )
2022-02-15 19:28:59 -05:00
Robin Dunn
d453e92a73
Add __index__ to wx.WindowID, and __bool__ to wx.Region
...
(cherry picked from commit 9096426603 )
2022-02-15 19:27:58 -05:00
Glen Whitney
7c43dd1ab6
fix: Correct types of arguments to ScrolledWindow.SetScrollbars
...
(cherry picked from commit 3eb9eb32dc )
2022-02-15 19:24:58 -05:00
Robin Dunn
400b7761fd
Add Config.SIP_TRACE flag
...
(cherry picked from commit 224630cf64 )
2021-01-31 15:15:09 -05:00
Robin Dunn
8b5956e006
Add SIP_ABI to the config object
...
(cherry picked from commit c385873d70 )
2021-01-31 15:10:58 -05:00
Robin Dunn
f39c7bb7a7
Run SIP via its Python interface rather than as a separate subprocess
...
(cherry picked from commit c8e25b79e1 )
2021-01-31 15:08:30 -05:00
Robin Dunn
c150102ffb
Update siplib
...
(cherry picked from commit f07c09c293 )
2021-01-31 14:51:14 -05:00
Robin Dunn
e217151256
Add requirement for sip5
...
(cherry picked from commit ffd7a02ac4 )
2021-01-31 14:44:46 -05:00
Scott Talbert
41836ec179
Update changelog
2021-01-31 13:42:03 -05:00
Scott Talbert
d67909abeb
Update wxWidgets reference to 0c3e581
2021-01-31 11:35:18 -05:00
Scott Talbert
1f345b3144
Start a Changelog entry for 4.0.8
2021-01-31 11:23:15 -05:00
Robin Dunn
b7f23e3742
i_wxPyMakeBuffer needs to acquire the GIL
...
(cherry picked from commit 6885cf4226 )
2021-01-24 12:42:40 -05:00
Robin Dunn
b6883ef19c
Restore GIL acquisition in wxPseudoDC::FindObjects*
...
(cherry picked from commit 5cace47aae )
2021-01-24 12:41:54 -05:00
Scott Talbert
6489bd907c
Add some missing private assignment operators
...
This is needed as part of fixing #1636 as a new version of SIP is required,
which makes these changes necessary.
(cherry picked from commit 676b95ad17 )
2021-01-24 12:40:08 -05:00
Robin Dunn
43928b9c16
Also check for msvc_version 14.2
...
(cherry picked from commit a4ae17284e )
2021-01-22 21:31:23 -05:00
Robin Dunn
fe61eec093
Update waf to version 2.0.19
...
(cherry picked from commit b17906cf89 )
2021-01-20 22:53:33 -05:00
Scott Talbert
f4982db0fe
Update CI configuration to match master
2021-01-20 20:02:48 -05:00
Robin Dunn
95c3c7db94
Merge pull request #1449 from swt2c/backport_syntaxwarnings
...
Backport syntaxwarnings
2019-12-10 12:47:15 -08:00
Scott Talbert
a41f6454b4
Fix SyntaxWarning in wx.lib.masked.maskededit
2019-11-23 14:02:20 -05:00
Robin Dunn
a85a94231b
Fix SyntaxWarnings
2019-11-23 14:02:00 -05:00
Robin Dunn
6bf9f07a7b
fix typo
2019-11-12 11:39:37 -08:00
Robin Dunn
c81324d4f8
Merge branch 'release-post2' into wxPy-4.0.x
2019-11-12 09:43:42 -08:00
Robin Dunn
e1a8d579ca
Restore 4.0.8a1 version number
2019-11-12 09:43:07 -08:00
Robin Dunn
e8d8294fbb
Use the --disable-qtkit configure option on Darwin builds
wxPython-4.0.7.post2
2019-11-11 18:54:31 -08:00
Robin Dunn
f14cf8c06e
Use the target python to run sphinx. Fix div.document-no-sidebar style
2019-10-30 11:20:05 -07:00
Robin Dunn
a3d90b5e41
Merge branch 'release-post1' into wxPy-4.0.x
2019-10-29 10:34:46 -07:00
Robin Dunn
753dfb9a91
Forgot a '.'
wxPython-4.0.7.post1
2019-10-28 16:37:23 -07:00
Robin Dunn
5a587281b3
Add changelog item
2019-10-28 14:49:33 -07:00
Robin Dunn
fbc0443afd
Change the Python 2.7 requirement for numpy to be < 1.17, not ==1.16.1
...
(cherry picked from commit 27812f3a7f )
2019-10-28 14:47:44 -07:00
Robin Dunn
b171d768b7
Set version number for a post-release
2019-10-28 14:24:22 -07:00
Robin Dunn
f67de5ff9c
Merge branch 'release-prep' into wxPy-4.0.x
2019-10-25 14:23:54 -07:00
Robin Dunn
1a0f233952
Bump version number in case there will be a 4.0.8
2019-10-25 12:22:30 -07:00
Robin Dunn
89b383fdda
Update announcement
wxPython-4.0.7
2019-10-25 12:19:41 -07:00
Robin Dunn
51b99a57c3
Drop remaining Py3.4 builds
2019-10-25 12:19:14 -07:00
Robin Dunn
2c926493b4
Pillow is now available for Py38, restore the dependency.
...
(cherry picked from commit 581f61ea58 )
2019-10-24 10:42:40 -07:00
Robin Dunn
67f99ad2c0
Set the permissions for the docs and demo tarballs too
...
(cherry picked from commit 941d3c1ad2 )
2019-10-24 10:36:21 -07:00
Robin Dunn
d3fc050f60
Drop the alpha tag, update change log
2019-10-23 19:01:18 -07:00
Robin Dunn
7f2e86a72c
Show and Destroy the test dialogs on Macs, yield after update, and more test fixes
2019-10-23 18:56:25 -07:00
Robin Dunn
c284a0a92a
Switch to a sizer in the superdoodle about box
...
(cherry picked from commit d79d9859cb )
2019-10-23 18:21:28 -07:00
Robin Dunn
11a78971d4
Update wxWidgets submodule
2019-10-23 18:19:18 -07:00
Robin Dunn
a08a9e73e4
Merge pull request #1357 from wxWidgets/backports
...
Backports
2019-10-23 18:15:47 -07:00