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
Jorge Moraleda
0cf08c27fd
Explicitly convert float to int when calling to wx.Size in pure python pdfviewer
2023-10-27 18:45:16 -04:00
1marc1
f773bb444d
Update typo in persist_handlers.py
...
This should fix a typo in the return statement.
2023-10-27 23:45:17 +11:00
Tomas Zigo
53574e37ad
wx.agw.aui: don't uninitialize the AuiManager if the window close event is vetoed
2023-09-22 08:07:21 +02:00
Stefan Brüns
5dceaa3ebe
Make pip usage in wxget optional
...
As the code states, using pip to download is abusing it, and it is
just a fallback in case neither wget nor urllib works.
2023-09-11 17:33:51 +02:00
Tianzhu Qiao
4eb797e8ed
Fix AuiManager pane minimizing issue.
2023-08-17 10:59:16 -07:00
Scott Talbert
e5c92b3056
Use new tarfile.extractall() filter for safer tarfile extraction
...
The tarfile.extractall() filter argument was introduced in the most
recent CPython releases (e.g., 3.11.4) to avoid potential security
issues when extracting from potentially hostile tarballs. Let's use
this option if it is available and provide a warning if it is now.
2023-08-03 16:25:07 -04:00
Scott Talbert
aeb557d01e
Fix compatibility with Cython 3.0.0
...
Remove unused import which seems to be removed in Cython 3.
2023-07-25 12:42:32 -04:00
Scott Talbert
dac1e86423
Merge pull request #2018 from pauldmccarthy/mnt/wx-lib-agw-aui-mac-theme
...
MNT: Remove legacy macOS logic, and use wx.SystemSettings to select default colours
2023-07-19 12:22:02 -04:00
Scott Talbert
04029bf6f1
Merge pull request #2436 from jmoraleda/freezeto-gridlabelrenderer
...
Bugfix. Display correct labels in GridWithLabelRenderersMixin when the grid contains frozen rows or columns
2023-07-11 19:15:29 -04:00
Scott Talbert
289a2fa509
Merge pull request #2360 from tianzhuqiao/agw_auinotebook_blurry_tab
...
Fix blurry text in AuiNotebook tab.
2023-07-11 15:26:17 -04:00
Jorge Moraleda
40f8595a0c
Add support for frozen rows and columns to GridWithLabelRenderersMixin
2023-07-09 21:50:38 -04:00