Commit Graph

5280 Commits

Author SHA1 Message Date
Robin Dunn
b528e68ead Force use of builtin libs on macOS, rather than any that might be found on the system 2021-12-03 08:42:17 -08:00
Robin Dunn
4488663deb A little cleanup and add 3.10 to list for runtime DLL selection 2021-12-02 16:15:39 -08:00
Robin Dunn
f1bc116047 fix indentation 2021-12-02 16:07:04 -08:00
Scott Talbert
173d079681 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
2021-12-01 14:19:00 -05:00
Robin Dunn
7725f466e5 Some tweaks to fix multi-architecture builds on maxOS 2021-11-30 15:58:38 -08:00
Robin Dunn
1846e5c7e6 Set the minimum python to 3.6.0 2021-11-30 15:54:15 -08:00
Robin Dunn
f47014b2b7 Preset some complier flags for when waf does its test build in the configure stage 2021-11-30 15:49:58 -08:00
Robin Dunn
577e8d4714 Handle Python versions that have more than one digit in the minor component 2021-11-30 15:44:44 -08:00
Robin Dunn
9484fe66f1 update waf 2021-11-30 15:42:29 -08:00
Robin Dunn
332a70cc34 traverse flags in the reverse order so they end up in the same relative order when done 2021-11-30 15:41:04 -08:00
Kazuya O'moto
c0824947cf Merge branch 'wxWidgets:master' into feature-shell 2021-11-30 17:24:40 +09:00
Scott Talbert
9a8a9b019c Merge pull request #2026 from carolfs/master
Fixed integer division in Python 3
2021-11-29 21:22:26 -05:00
Scott Talbert
f42bea0927 Merge pull request #2005 from gwhitney/setscrollbar_types
fix: Correct types of arguments to ScrolledWindow.SetScrollbars
2021-11-29 21:20:30 -05:00
Robin Dunn
acaa5b41a0 Add note about the extended time since the last release 2021-11-23 17:12:56 -08:00
Robin Dunn
f95f3187ad Merge branch 'master' into update-wx 2021-11-23 17:00:06 -08:00
Jorge Moraleda
672ec886b8 Enable customization of layout of pdfviewer button panel 2021-11-21 18:11:14 -08:00
Scott Talbert
2bbf0cc423 Merge pull request #1953 from jmoraleda/fix_auiframemanager_regression
Fix regression in aui framemanager introduced in last commit
2021-11-21 16:28:46 -05:00
Scott Talbert
7776c773da Merge pull request #1931 from jmoraleda/fix_auibar_regression
Fix regression in auibar introduced in last commit
2021-11-21 16:26:28 -05:00
Scott Talbert
1c1540ff44 Merge pull request #1940 from Lollixzc/patch-1
Correct typo in eventwatcher.py
2021-11-19 19:32:44 -05:00
Scott Talbert
316a69569c Add some changelog entries 2021-11-19 18:05:09 -05:00
Scott Talbert
34730f0e57 Merge pull request #1995 from cclauss/patch-3
Fix a typo discovered by codespell
2021-11-19 17:59:43 -05:00
Scott Talbert
71985d1258 Merge pull request #1955 from machawk1/master
Fix parameters for 'More Grid Features' constructor of Sizers demo
2021-11-19 17:59:13 -05:00
Scott Talbert
07f54c1f37 Merge pull request #2003 from swt2c/pyprogress_msw
Fix PyProgress on MSW by avoiding invalid sizer flags
2021-11-19 17:58:05 -05:00
Scott Talbert
456664481e Merge pull request #2032 from swt2c/macos_py310 2021-11-19 15:17:47 -05:00
Scott Talbert
440c1b018f Switch macOS CI to use Python from Azure images
Fixes Python 3.10 and should be faster not having to download & install
Python and pip.

This also removes Python 3.6 from macOS CI - the Azure hosted version of
Python 3.6 has a problem with linker flags (it is setting -stack_size) and
can't compile Python extensions.  Python 3.6 is going to be EOL in a month or
so, so it seems fine to just remove it from CI.
2021-11-19 13:44:25 -05:00
Scott Talbert
d572879c75 Merge pull request #2017 from swt2c/cython_0.29.24
Update Cython version to fix NanoSVG issues with Python 3.10
2021-11-18 18:30:27 -05:00
Scott Talbert
b40ab0f806 Update Cython version to fix NanoSVG issues with Python 3.10 2021-11-18 15:23:00 -05:00
Scott Talbert
c1ac9154e1 Merge pull request #2031 from swt2c/ci_updates
Ci updates
2021-11-18 15:19:49 -05:00
Scott Talbert
753c6bfcbd Add Python 3.10 CI builds 2021-11-18 10:29:39 -05:00
Scott Talbert
79b97fe3ce Update Windows CI to use non-deprecated Windows image 2021-11-18 10:29:03 -05:00
Scott Talbert
dcf7a8c2c2 Update macOS CI to use non-deprecated image and latest Pythons 2021-11-18 10:28:59 -05:00
Scott Talbert
95578b4d01 Merge pull request #2030 from swt2c/ci_ubuntu
Update ubuntu image used for Azure CI builds
2021-11-18 00:02:39 -05:00
Robin Dunn
56214584a3 Update ubuntu image used for Azure CI builds 2021-11-17 22:43:40 -05: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
Carolina Feher da Silva
0d449626d6 Fixed integer division in Python 3 2021-11-16 01:24:31 +00:00
Robin Dunn
e9a1cc3d45 Update ubuntu image used for Azure CI builds 2021-10-28 21:00:50 -07:00
Robin Dunn
c0d0c65d01 Update wxWidgets reference 2021-10-26 12:38:02 -07:00
Robin Dunn
9235b00709 Fix a typo 2021-10-26 12:37:39 -07:00
Robin Dunn
014af4f8f1 Add Python snippets for AddScriptMessageHandler 2021-10-26 12:37:24 -07:00
Robin Dunn
1eef4d9390 Add InitLocale method 2021-10-26 12:35:04 -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
Glen Whitney
3eb9eb32dc fix: Correct types of arguments to ScrolledWindow.SetScrollbars 2021-08-31 11:06:27 -07:00
Scott Talbert
d2807efb45 Fix PyProgress on MSW by avoiding invalid sizer flags
Fixes #1985.
2021-08-20 21:06:44 -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
komoto
fd0560f256 Add Shell EVT_UPDATE_UI handler for each id
(revert)
self.Bind(wx.EVT_UPDATE_UI, self.OnUpdateContextMenu) without specifing id
triggers EVT_UPDATE_UI frequently.
2021-07-29 16:09:56 +09:00
komoto
5d1b6e0d28 Fix Shell update event handler
Rename the handler so that it does not override the base class EditWindow.OnUpdateUI.
2021-07-29 16:09:56 +09:00
komoto
3d0b1df287 Fix spelling error 2021-07-29 16:09:56 +09:00
komoto
7ff7d46a7e Add Shell missing keywords
Add the keyword 'finally' in Execute, to fix miss-indentation
when pasting the following code:
try:
    1
    finally: <-- indent error
        0

Add the keyword 'with' to fix mis-indentation when typing:
with xxx:
| <-- incorrect auto-indentation in the next line
2021-07-29 16:01:10 +09:00