Scott Talbert
37ba9563b6
Update unittests to work with wxWidgets 3.1.6
2022-05-02 22:35:18 -04:00
Paul McCarthy
7f2e5b41ba
MNT: Coerce argument types in call to DC.DrawText
2022-02-24 19:14:11 +00:00
Scott Talbert
7c8318e849
Merge pull request #2078 from swt2c/pyplot_point_labels
...
Fix PlotCanvas point label drawing on Linux
2022-01-24 19:57:51 -05:00
Scott Talbert
eb1c2f9c4b
Merge pull request #2076 from swt2c/deprecated_escape_sequences
...
Fix a bunch of DeprecationWarnings due to invalid escape sequences
2022-01-24 19:56:28 -05:00
Scott Talbert
f729eef492
Fix PlotCanvas point label drawing on Linux
...
Switch to using the same point label drawing method as darwin.
2022-01-11 20:14:04 -05:00
Scott Talbert
b2199e299a
plotcanvas: avoid trying to adjust scrollbars if nothing drawn
...
For example, if Clear() is called on a plotcanvas, _adjustScrollbars()
will not work, so avoid trying to do it if nothing is drawn currently.
2022-01-11 19:56:28 -05:00
Scott Talbert
2871c46d33
Fix a bunch of DeprecationWarnings due to invalid escape sequences
...
Fixes #1454 .
2022-01-11 11:23:06 -05:00
Scott Talbert
77fa6cf8cc
Merge pull request #2074 from petrasovaa/patch-4
...
Fix for Python 3.10
2022-01-09 10:12:50 -05:00
Scott Talbert
43ad05af4f
Merge pull request #2071 from swt2c/test_fixes_2021
...
Fix a bunch of test issues on GTK and OSX, plus a few non-test bugs
2022-01-09 10:11:07 -05:00
Anna Petrasova
da4dbf1110
Fix for Python 3.10
...
Fixes https://github.com/OSGeo/grass/issues/2045
2022-01-08 22:30:04 -05:00
Scott Talbert
d6beca15ab
Avoid redefining wx.PopupWindow globally on macOS
...
It's unclear whether mcPopupWindow is even needed any more as wx.PopupWindow
seems to be implemented on macOS.
2022-01-03 16:45:38 -05:00
Scott Talbert
f5a55e6bf3
Fix even more Python 3.10 issues with wx.lib classes
2021-12-30 15:47:07 -05:00
Scott Talbert
b5ffe91c74
wx.lib.floatcanvas: replace deprecated use of numpy float
2021-12-30 14:59:30 -05:00
Scott Talbert
fcf49322b6
Merge pull request #2066 from petrasovaa/patch-3
...
Fix invisible text in lib.plot with dark theme
2021-12-30 09:03:21 -05:00
Anna Petrasova
92ca5c55a6
Fix invisible text in lib.plot with dark theme
...
This fixes invisible white text on white background with dark themes.
2021-12-29 23:29:44 -05:00
Anna Petrasova
28b7ba5794
Fix Python 3.10 in lib.plot
...
Fixes drawing lines
2021-12-29 23:23:33 -05:00
Robin Dunn
40e612923d
More Py3.10 integer fixes
2021-12-28 22:25:21 -08:00
Scott Talbert
aa3dca0e40
Fix additional Python 3.10 issues with AGW FlatNotebook
2021-12-27 19:48:55 -05:00
Robin Dunn
454ef9b2cd
Clean it up
2021-12-17 15:00:24 -08:00
komoto
d8a0f0e639
Remove comments and cleanup
2021-12-14 14:42:04 +09:00
Kazuya O'moto
0d6031df60
Merge branch 'wxWidgets:master' into feature-shell
2021-12-14 14:24:43 +09:00
Robin Dunn
de0a4415c0
Merge pull request #2048 from komoto48g/feature-scrpnl
...
Add self-guard in scrolledpanel:_SetupAfter
2021-12-13 21:03:49 -08:00
Robin Dunn
d9725119d7
Merge pull request #2039 from swt2c/pygauge_py3.10
...
Fix a bunch of Python 3.10 issues with pure-Python classes and demos
2021-12-13 20:54:44 -08:00
Robin Dunn
cbe539efd9
Merge pull request #2047 from swt2c/df_unicode
...
Use wx.DF_UNICODETEXT instead of wx.DF_TEXT
2021-12-13 20:46:14 -08:00
Robin Dunn
74e5be8b2f
Merge pull request #2033 from jmoraleda/customizable_pdf_button_panel
...
Enable customization of layout of pdfviewer button panel
2021-12-13 20:39:58 -08:00
Robin Dunn
272990b131
Merge pull request #1997 from cclauss/codespell
...
Fix typos discovered by codespell
2021-12-13 20:16:39 -08:00
komoto
b699b2823c
Add self-guard in scrolledpanel:_SetupAfter
2021-12-08 00:08:28 +09:00
Scott Talbert
2791fd7016
Use wx.DF_UNICODETEXT instead of wx.DF_TEXT
...
wx.DF_TEXT doesn't work on macOS and Unicode should be available under
all platforms.
2021-12-06 19:56:04 -05: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
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
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
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
b40ab0f806
Update Cython version to fix NanoSVG issues with Python 3.10
2021-11-18 15:23:00 -05:00
Carolina Feher da Silva
0d449626d6
Fixed integer division in Python 3
2021-11-16 01:24:31 +00: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
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
Jorge Moraleda
d1325de5a0
Fix regression in aui framemanager introduced in commit 2760cbe0 which mistakenly reverted the fix introduced in commit d0577746
2021-04-22 19:12:18 -07:00
Lollixzc
381d32ce8c
Correct typo in eventwatcher.py
...
I noticed a typo when using the bundled eventwatcher the demos. I think this should be correct
2021-03-27 22:24:16 +01:00
Jorge Moraleda
3d05abea47
Fix regression in auibar introduced in commit e32ba711 which mistakenly reverted the fix introduced in commit e059ec1a
2021-03-07 15:10:05 -08:00
Robin Dunn
c3d4881bfd
Fix an invalid escape sequence warning
2021-01-20 13:10:33 -08:00