Commit Graph

1300 Commits

Author SHA1 Message Date
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
Ailothaen
ee185422c6 Added initialValue argument to DirBrowseButton constructor and improved documentation 2023-06-29 21:56:30 +02:00
richardt
54981636c5 Fix arg TypeError when moving to item with variable row height not set 2023-06-29 14:39:47 +01:00
richardt
a1779b3ad1 Fix arg type error when drawing image in column header 2023-06-13 18:46:13 +01:00
richardt
e5fe26ab1f Fix floor division so floats are not passed to wx.Rect() 2023-06-11 16:11:30 +01:00
arjones6
5ad1e922af Merge branch 'wxWidgets:master' into master 2023-06-02 17:04:59 -04:00
Scott Talbert
7f35fb72ff Update Cython to 0.29.34 for Python 3.12 support
(cherry picked from commit 757de9d23a)
2023-05-31 16:34:56 -07:00
Scott Talbert
10ceae2278 Merge pull request #2403 from mprosperi/fi-TypeError-in-wx.lib-ogl
wx.lib.ogl: fix float->int compatibility for py3.10+ (also fixes #2349)
2023-05-31 09:53:26 -04:00
mprosperi
1d2eb2e39d fix float->int compatibility for py3.10+ (also fixes #2349) 2023-05-31 15:39:33 +02:00
mprosperi
6e36ffa377 fix TypeError in wx.lib.agw.flatnotebook for py3.10+ (included #2210) (#2395)
* fix TypError in wx.lib.agw.flatnotebook for py3.10+ (included #2210)

* replaced round() with int()

---------

Co-authored-by: mprosperi <m.prosperi@paneido.com>
2023-05-24 16:00:38 -04:00
mprosperi
25b0e2139e fixes #2208 2023-05-23 21:31:14 +02:00
Maxim Cournoyer
5d9f7aa185 agw: Fix TypeError caused by floats with Python 3.10 extensions.
This fixes the following error:

   File "/lib/python3.10/site-packages/wx/lib/agw/pygauge.py", line 380, in OnPaint
       dc.DrawText(drawString, textXPos, textYPos)
   TypeError: DC.DrawText(): arguments did not match any overloaded call:
     overload 1: argument 2 has unexpected type 'float'
     overload 2: argument 2 has unexpected type 'float'
   TimeLeft: 3.0

Visible when using Python 3.10 or newer.
2023-05-01 13:53:55 -04:00
arjones6
dae19056a8 Update flatmenu.py
flatmenu memory usage improvements
2023-04-11 11:55:54 -04:00
Kazuya O'moto
1563d3e1f0 Don't watch DropTarget
Windows bug fix
    https://github.com/wxWidgets/Phoenix/issues/2043
2023-03-06 22:07:12 +09:00
Tianzhu Qiao
86bd21007a Fix blurry text in AuiNotebook tab. 2023-03-03 17:34:51 -08:00
Scott Talbert
2f2624b17d Merge pull request #2354 from komoto48g/introspection
Fix wx.py.shell.Shell calltip
2023-03-03 17:30:13 -05:00
Scott Talbert
986d79b94e Merge pull request #2355 from komoto48g/agw-pyprog
Fix `agw.ProgressGauge` pen colour
2023-02-28 17:03:48 -05:00
Tim Riddermann
516539a7a0 Since numpy 1.20 the aliases np.int and np.float are deprecated (see https://numpy.org/devdocs/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated). The buildin types should be used instead. Since numpy 1.24 an AttributeError exception is thrown when np.int or np.float is used. 2023-02-28 16:07:02 +01:00
Kazuya O'moto
d5b7788592 Fix pen color type 2023-02-25 01:56:05 +09:00
Kazuya O'moto
e0a71625e2 Extract argspec inside paren using re
ex.
argspec = '(x, /, y, z=3, *args, value: int = 0, **kwargs) -> int'
      --> 'x, /, y, z=3, *args, value: int = 0, **kwargs'
2023-02-24 23:21:59 +09:00
Kazuya O'moto
8e98e8b442 Use inspect.signature instead of formatargspec
inspect.formatargspec has been deprecated since Python 3.5,
and removed in Python 3.11.
2023-02-24 23:02:48 +09:00
Paul McCarthy
12d8462bc2 RF: Don't hard code inactive text colour, use wx.SystemSettings.GetColour instead 2023-01-26 12:30:53 +00:00
Paul McCarthy
ad6864aa46 MNT: Remove legacy macOS logic, and use wx.SystemSettings to select default
theme colours
2023-01-26 12:30:53 +00:00
Scott Talbert
a3b6cfec77 Merge pull request #2220 from jmoraleda/aligment_popupctl
Enable configuration of whether popup dialog should align center, right or left
2022-12-21 14:32:22 -05:00
Jorge Moraleda
1936c09a35 Enable configuration of whether popup dialog should align center, right or left with respect to parent ctl. Default is center which is the old behavior. 2022-12-08 23:25:02 -06:00
Kazuya O'moto
f514770942 Fix TypeError float to int
TypeError: ProgressDialog(): argument 'maximum' has unexpected type 'float'
TypeError: ProgressDialog.Update(): argument 1 has unexpected type 'float'
TypeError: Sleep(): argument 1 has unexpected type 'float'
2022-12-07 01:19:23 +09:00
Robin Dunn
3ee614e0e8 Merge pull request #2284 from pchemguy/lib-agw-aui-dockart
Changed float division to integer division in lib-agw-aui-dockart.py
2022-10-18 17:30:56 -07:00
Robin Dunn
9b3e4d3431 Merge pull request #2277 from komoto48g/textedit-mixin
listctrl TextEditMixin
2022-10-18 17:27:57 -07:00
Robin Dunn
363fdcde74 Merge pull request #2264 from pchemguy/wxlib-wxcairo-wx_pycairo
Added sip.voidptr->int type casting in wx_pycairo.py
2022-10-18 17:20:18 -07:00
Robin Dunn
1814ca813b Merge pull request #2262 from pchemguy/wxlib-printout-draw-typecasting
Making explicit float->int type casting for DC.DrawXXX
2022-10-18 17:18:54 -07:00