Edouard Choinière
95cafd1a3f
style: Normalise numpy imports with import numpy as np
...
The convention when importing numpy is to use `import numpy as np`
Fixes: unconventional-import-alias (ICN001)
Ruff rule: https://docs.astral.sh/ruff/rules/unconventional-import-alias/
2025-02-08 16:48:57 +00:00
Scott Talbert
bb35bcd9d9
Fix bugs in Python2 / six removal
2025-02-03 20:13:56 -05:00
Alexandre Detiste
66a9320917
finish removing six
2025-02-02 20:30:33 -05:00
Alexandre Detiste
323e78c085
remove more Python2 hybridation
2025-02-02 20:29:49 -05:00
Alexandre Detiste
0257f755cf
remove most of Python2 compatibility code
2025-02-02 20:17:45 -05:00
Alexandre Detiste
beb9932241
remove usage of six.print_()
2025-02-02 20:10:38 -05:00
Scott Talbert
e93b55882d
Fix more int conversions in FlatNotebook
...
ci-build / build-source-dist (push) Has been cancelled
ci-build / Build wxPython documentation (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.13) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Has been cancelled
ci-build / Publish Python distribution to PyPI (push) Has been cancelled
ci-build / Create GitHub Release and upload source (push) Has been cancelled
ci-build / Upload wheels to snapshot-builds on wxpython.org (push) Has been cancelled
Fixes: https://github.com/wxWidgets/Phoenix/issues/2682
2025-01-28 19:25:01 -05:00
Edouard Choinière
ff1cae7d56
Add typing annotations to methods returning self.
2025-01-21 21:38:18 -05:00
Edouard Choinière
b5e5cb419a
Add typing for context managers returning Self
...
`Self` was introduced in python 3.11. Use `Self` from typing_extensions for previous Python versions
2025-01-21 21:38:18 -05:00
belono
37dcdcad57
Fix rubberband not clearing DC on redraw
2025-01-06 20:00:26 -05:00
amarinoICEg
0f57ad4105
casting drawrectangle arguments to int as required
2024-12-04 12:01:00 +01:00
Lorenzo Nebolosi
ef42749294
float -> int
...
DrawRectangle and DrawRoundedRectangle requires ints instead of floats
2024-11-19 17:22:00 +01:00
Scott Talbert
31c996461e
Merge pull request #2365 from komoto48g/py-filling
...
Don't crush pie filling
2024-11-14 20:30:31 -05:00
Scott Talbert
6ec1db43b2
Merge pull request #2447 from tianzhuqiao/agw_aui_minimize_pane
...
Fix AuiManager pane minimizing issue.
2024-11-14 20:30:01 -05:00
sphh
44fe243935
Adds range field to wx.lib.agw.pygauge.PyGauge format string. ( #2583 )
...
* Adds range to wx.lib.awg.pygauge.PyGauge format string.
The format string can now have fields for `value` and `range`.
* Updates the desciption.
* Uses field names in default format string (as described).
* Removes dependency on the `copy` module.
2024-11-14 20:27:59 -05:00
Scott Talbert
862086874f
Avoid calling FlatMenu Destroy() in a finally block
...
Fixes: https://github.com/wxWidgets/Phoenix/issues/2630
2024-11-08 18:39:02 -05:00
Kazuya O'moto
ba0e6b0e32
Fix InspectionTool crashes due to bad perspective string errros
...
To ensure backward compatibility from version 4.2.3* to 4.2.2,
use the config key 'perspective1' for version 4.2.3 and later.
LoadPerspective => LoadPaneInfo raises an Exception, not a wx.PyAssertionError.
Therefore, change it to catch only Exception.
2024-11-06 02:48:19 +09:00
Scott Talbert
d226fa33ac
Merge pull request #2620 from AlessandroMattiazzi/Fix_AuiManager_missing_check
...
Added check condition to AuiManager LoadPerspective()
2024-10-14 20:38:12 -04:00
Kazuya O'moto
fac81a39b1
Fix RecursionError in platebtn bitmap getters
2024-10-12 16:06:13 +09:00
Alessandro Mattiazzi
3cd2c3b1e5
Added check_condition
...
Checking if self.notebooks is populated, if not call the function responsible for it
2024-10-08 15:06:48 +02:00
Scott Talbert
31b687fa9c
Merge pull request #2480 from jmoraleda/variable-page-size-pdfviewer
...
ci-build / build-source-dist (push) Has been cancelled
ci-build / Build wxPython documentation (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.13-dev) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.8) (push) Has been cancelled
ci-build / build-wheels (x64, macos-13, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.13-dev) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.8) (push) Has been cancelled
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.13-dev) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.8) (push) Has been cancelled
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.13-dev) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.8) (push) Has been cancelled
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Has been cancelled
ci-build / Publish Python distribution to PyPI (push) Has been cancelled
ci-build / Create GitHub Release and upload source (push) Has been cancelled
ci-build / Upload wheels to snapshot-builds on wxpython.org (push) Has been cancelled
Add support to python only pdfviewer for displaying pdf files where not all pages are the same size
2024-09-23 17:16:18 -06:00
Jorge Moraleda
4115dd8b06
Improve support when specifying a pre-existing toolbar as the target for the restore icon when minimizing a pane in agw.aui
2024-09-23 12:30:21 -04:00
Jorge Moraleda
e4cb183ff7
Multiple bugfixes in pure python aui
2024-09-22 15:11:30 -04:00
Jorge Moraleda
2dc886a480
Refactor python only pdfviewer to support displaying pdf files where not all pages have the same size
2024-09-21 18:55:33 -04:00
Infernio
6dd4312d84
pdfviewer: Add support for pymupdf renaming
...
The 'fitz' module got renamed to 'pymupdf' in 1.24.3 Prepare for an
eventual deprecation and removal by importing from pymupdf first and
falling back to fitz only if that fails.
I also got rid of the other 'fitz'es in the file via 'fitz as pymupdf',
since pymupdf.open is much easier to read than fitz.open.
2024-09-13 21:20:19 +02:00
Scott Talbert
5946f000ed
Merge pull request #2600 from infinity77/patch-4
...
ci-build / build-source-dist (push) Waiting to run
ci-build / build-wheels (x64, macos-13, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, macos-13, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, ubuntu-22.04, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x64, windows-2022, 3.9) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.10) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.11) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.12) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.13-dev) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.8) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Blocked by required conditions
ci-build / Publish Python distribution to PyPI (push) Blocked by required conditions
Possible fix for #2345
2024-09-05 09:16:06 -04:00
Scott Talbert
14b6e5df16
Merge pull request #2599 from infinity77/patch-3
...
Possible fix for #2364
2024-09-05 09:14:46 -04:00
Scott Talbert
85069e9e92
Merge pull request #2598 from infinity77/patch-2
...
Fix for #2410
2024-09-05 09:13:58 -04:00
Andrea Gavana
6580e5fdc2
Possible fix for #2345
...
Possible fix for #2345
2024-09-05 14:48:30 +02:00
Andrea Gavana
6ae09a2064
Should fix #2364
...
Possible fix for #2364
2024-09-05 14:42:07 +02:00
Andrea Gavana
7168de5a9f
Should fix #2410
...
This should fix #2410 - Widgets placed in the UltimateListControl are drawn in the wrong location
2024-09-05 14:29:09 +02:00
Andrea Gavana
0806188d68
Possible fix for #2549
...
This should fix #2549 - EditLabel on CustomTreeCtrl doesn't automatically select the entire text
2024-09-05 14:03:59 +02:00
Randy Döring
f7d1d8188c
Fix NumPy 2.0 deprecations via running ruff ( #2580 )
...
* Fix NumPy 2.0 deprecations via running `ruff check --select NPY201 --fix --exclude docs/sphinx/rest_substitutions/snippets/python/converted`
See https://numpy.org/devdocs/numpy_2_0_migration_guide.html#numpy-2-0-migration-guide
* Use `numpy.any` instead of `any` because the latter does not work for multidimensional arrays.
2024-08-21 19:53:57 -04:00
Scott Talbert
3901d05d40
Fixup flatmenu memory fix
2024-07-11 20:20:49 -04:00
Scott Talbert
fe5b6ec799
Update Cython to 3.0.10 and regenerate nanosvg wrapper
2024-07-08 20:40:57 -04:00
Scott Talbert
50ea75909a
Merge pull request #2373 from arjones6/master
...
flatmenu memory usage improvements
2024-07-08 09:43:45 -04:00
Alessandro Mattiazzi
4d29e7dd72
Bugfix Bar.py
...
Added int casting on RecalculateTabSizes function to fix error
2024-03-21 16:27:27 +01:00
decodeais
0205c7c1b9
speedmeter.py lost background color ( #2528 )
...
* Update speedmeter.py
missing typcast makes the backgraound of the speedmeter white
* Update wx/lib/agw/speedmeter.py
---------
Co-authored-by: Scott Talbert <swt@techie.net >
2024-02-17 10:44:03 -05:00
Scott Talbert
832f17260f
Merge pull request #2232 from StefanBruens/wxget_pip_optional
...
Make pip usage in wxget optional
2024-02-05 15:15:41 -05:00
richardt
1d06079da0
Add support for ULC_AUTO_CHECK_PARENT
2024-01-22 21:42:15 +00:00
rufuswilson
01ec11faca
Fixes DeleteButton function
...
cf https://github.com/wxWidgets/Phoenix/issues/2511
2024-01-11 11:29:59 +01:00
Scott Talbert
01787f43a5
Fix additional SyntaxWarnings with Python 3.12
...
It seems that Python 3.12 has started emitting additional SyntaxWarnings
in cases where there are backslashes used in strings, so change these
strings to raw strings to avoid the warnings.
2023-12-21 20:19:57 -05:00
Scott Talbert
26d1782514
Merge pull request #2500 from jmoraleda/AuiLayoutLastStepOfUpdate
...
wx.agw.aui. Do layout as the last step after all pane infos have recomputed their best sizes
2023-12-21 09:32:12 -05:00
Scott Talbert
a1755e8e65
Merge pull request #2501 from jmoraleda/CallAfterUpdateInAllPlatforms
...
wx.agw.aui: Make behavior in all platforms more equal
2023-12-21 09:31:06 -05:00
Jorge Moraleda
b683707909
wx.agw.aui. Do layout as the last step after all pane infos have recomputed their best sizes
2023-12-20 15:45:40 -05:00
Scott Talbert
525dd03245
Merge pull request #2460 from tmszi/fix-wx-agw-auimanager-bind-close-evt
...
wx.agw.aui: don't uninitialize the AuiManager if the window close event is vetoed
2023-12-18 16:28:59 -05:00
Scott Talbert
87674de980
Merge pull request #2494 from jmoraleda/agw-aui-preserve-icons-on-load-perspective
...
Preserve pane icons when loading a perspective in agw.aui
2023-12-07 22:59:22 -05:00
Jorge Moraleda
8a705cd066
Preserve pane icons when loading a perspective in agw.aui
2023-12-02 19:38:21 -05:00
Kazuya O'moto
1fb1e84012
Use unwrap before isbuiltin check
...
`inspect.isbuiltin` does not unwrap obj, but `inspect.signature` does,
which can result in a ValueError.
>>> wx.Bell
<built-in function Bell>
>>> bell #= dcor(wx.Bell)
<function Bell at 0x0000015E53D92B60>
>>> inspect.isbuiltin(bell)
False
>>> inspect.signature(bell)
... (snip) ...
ValueError: no signature found for builtin <built-in function Bell>
2023-11-26 16:32:57 +09:00
Jorge Moraleda
9084de5a6f
Pure python AUI: Make behavior in all platforms more equal. This also reduces flicker, reduces number of code lines by removing platform exception.
2023-11-11 19:22:03 -05:00