Commit Graph

1300 Commits

Author SHA1 Message Date
Kazuya O'moto
636dab57b8 Add a few more dunders
Clean up comments
2025-03-30 02:53:06 +09:00
Kazuya O'moto
fbd25d56fc Change special_attrs from PY2 to PY3
Change deprecated variables in PY2 to new ones in PY3
2025-03-30 02:53:06 +09:00
Kazuya O'moto
d6b6c3c0fd Add NL token type check to getRoot
little tweaks to if statements.
2025-03-30 02:52:48 +09:00
Kazuya O'moto
39045d9fe8 Fix assert_ to assertTrue
The unittest `assert_` has been deprecated since 3.12
2025-03-15 00:51:32 +09:00
Scott Talbert
f49f0b446d Merge pull request #2695 from neofelis2X/docs_sphinx_latest
Some checks failed
ci-build / build-source-dist (push) Has been cancelled
ci-build / Build wxPython documentation (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.10) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.11) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.12) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.13) (push) Has been cancelled
ci-build / build-wheels (arm64, macos-14, 3.9) (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
Add support for building documentation with latest sphinx
2025-03-02 19:50:39 -05:00
Scott Talbert
9b901a6a09 Merge pull request #1950 from seanbudd/fix-scrolledpanel-tabbing
Some checks are pending
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) (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) (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) (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) (push) Blocked by required conditions
ci-build / build-wheels (x86, windows-2022, 3.9) (push) Blocked by required conditions
ci-build / Build wxPython documentation (push) Waiting to run
ci-build / Publish Python distribution to PyPI (push) Blocked by required conditions
ci-build / Create GitHub Release and upload source (push) Blocked by required conditions
ci-build / Upload wheels to snapshot-builds on wxpython.org (push) Blocked by required conditions
Calculate Scroll based on Childs relative position to ScrolledPanel
2025-02-26 22:35:21 -05:00
neofelis2X
6f2ca2b5e5 Docs: fix various minor sphinx parsing issues 2025-02-24 23:03:37 +01:00
Scott Talbert
5a13d13c31 Fix float -> int conversion issues in wx.lib.fancytext
Some checks failed
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/2703
2025-02-12 22:48:55 -05:00
Scott Talbert
6575e53c35 Merge pull request #2696 from arigit/patch-1
Update hyperlink.py, fixes #2686
2025-02-09 13:22:27 -05:00
Ari
a7bc011277 Update hyperlink.py, fixes #2686
Uses StaticText instead of GenStaticText

Tested in linux (fedora, ubuntu), windows 11, MacOS sequoia
2025-02-08 18:58:21 -05:00
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
Some checks failed
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
Some checks failed
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
Some checks are pending
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