Commit Graph

4274 Commits

Author SHA1 Message Date
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
Robin Dunn
177f180739 Merge pull request #1412 from wxWidgets/add-archivehandler-example
Add an example of viewing html pages from a .zip file

(cherry picked from commit a5a31c96ac)
2019-10-23 18:07:49 -07:00
Robin Dunn
03814de6b6 Merge pull request #1411 from wxWidgets/fix-locale-error
Handle a ValueError from locale.getlocale()

(cherry picked from commit 4353c7deb6)
2019-10-23 17:43:49 -07:00
Robin Dunn
dcef0c5209 Merge pull request #1410 from topic2k/fix-popupmenu-position
Fix PopupMenu position

(cherry picked from commit 64863b9a7b)
2019-10-23 17:43:15 -07:00
Robin Dunn
f9c9004909 Merge pull request #1409 from wxWidgets/fix-fsfile
Fix wx.FSFile

(cherry picked from commit c6a1bad4c5)
2019-10-22 22:33:44 -07:00
Robin Dunn
39cbdc7c48 Merge pull request #1265 from mesalu/address_1238
Attempts to enforce system settings in the demo page panel.

(cherry picked from commit 3ceead8b81)
2019-10-22 20:11:59 -07:00