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
Scott Talbert
3901d05d40
Fixup flatmenu memory fix
2024-07-11 20:20:49 -04:00
arjones6
dae19056a8
Update flatmenu.py
...
flatmenu memory usage improvements
2023-04-11 11:55:54 -04:00
arjones6
937a9b31e9
Update flatmenu.py
...
FlatMenu fix for passing ids to Remove and DestroyItem
2022-08-02 14:42:52 -04: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
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
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
Christian Clauss
25ba122168
Fix typos discovered by codespell
2021-08-07 18:55:49 +02:00
Robin Dunn
732ff6752b
Revert "Spelling fixes in wx.lib"
...
This reverts commit c00b8950da .
The spelling changes were a bit too aggressive.
2020-08-31 13:01:31 -07:00
Metallicow
542a32c17d
Optimize Colour Brush Pen
...
Use builtin Colours, Brushes, Pens where needed. They are faster.
2020-07-19 23:48:39 -05:00
Robin Dunn
c00b8950da
Spelling fixes in wx.lib
2020-07-14 12:53:31 -07:00
Per A. Brodtkorb
fc1823315b
Fixes issue # 1554:
...
Replaced "== None" and "!= None" with "is None" and "is not None", respectively, because the former is slower and error-prone.
2020-03-23 11:53:36 +01:00
Robin Dunn
705aa63d75
Merge branch 'more-windowidref' into wxPy-4.0.x
...
(cherry picked from commit ada7b2fc51 )
2018-06-25 19:12:00 -07:00
Robin Dunn
b1b0c9e297
wx.NewId() --> wx.ID_ANY or wx.Window.NewControlId() as appropriate
2018-06-19 10:31:56 -07:00
Metallicow
4738f107a8
Trim Whitespace agw directory
2016-10-12 22:27:46 -05:00
Robin Dunn
ffcc23cb60
Change "~lib" --> "~wx.lib" in agw
2016-08-12 14:57:10 -07:00
Robin Dunn
cc3190e240
Lots more docstring refs fixed
2016-07-06 20:20:10 -07:00
Robin Dunn
488f29b05a
Fix docstring references to wx.Bitmap
2016-07-06 18:45:16 -07:00
Robin Dunn
4175d35105
Fix docstring references to wx.Colour
2016-07-06 18:40:04 -07:00
Robin Dunn
ed4756b902
Remove wx.lib.six and use the stock six module instead,
...
and add it as an installation dependency.
2016-06-30 20:07:57 -07:00
wernerfb
f9d88b1df6
fix doc links in wx.lib.agw
2015-04-14 08:17:32 +02:00
Robin Dunn
fc8a5ee480
Merge branch 'june_flatmenu' of https://github.com/wernerfb/Phoenix into wernerfb-june_flatmenu
2015-02-16 16:29:47 -08:00
Robin Dunn
7b24c883ba
Avoid warning when there is no accelerator in the menu item text, or use GetAccelString if it has been set.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@78298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-12-23 00:27:41 +00:00
Robin Dunn
5e3f4f0cd1
Don't hide the base class Destroy method.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@78206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-11-28 04:48:25 +00:00
Werner F Bruhin
6fbc2e6ab3
- add a flatmenu unittest to show crash when one does e.g. a flatmenu.Popup
...
- in lib.agw.flatmenu needed to test GetMainLoop as it returns None during test
2014-06-10 16:56:53 +02:00
Robin Dunn
b58599433d
PR #73 : a few wx.lib things for Py33
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-04-19 21:24:58 +00:00
Andrea Gavana
5c33e560c8
AGW on Phoenix: more fixes and porting to Phoenix; added unittest for aquabutton.py, flatnotebook.py, gradientbutton.py and infobar.py; minor modifications to wx.lib.masked.maskededit.py and wx.lib.colourutils.py.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-28 22:08:07 +00:00
Andrea Gavana
8225935187
Phoenix: More conversions in AGW to improve compatibility. Fixed wrong Sphinx interlinks in various AGW modules. Tagged wx.lib.scrolledpanel.py and ported to Phoenix, documented and added a unittest. Small change in the Sizer ReST table.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-21 21:08:53 +00:00
Robin Dunn
6ffb7c6737
Port some changes from Classic
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-19 21:27:32 +00:00
Andrea Gavana
01483191b1
AGW in Phoenix (4): Many, many changes to almost all the AGW widgets to be able to run the AGW demos (although heavily modified). Add a unittest for LabelBook and FlatImageBook (which asserts on one test for still unknown reasons). Mention that wx.EmptyImage is now deprecated in the classic_vs_phoenix.txt file. Improved the documentation for many AGW widgets to avoid Sphinx missing links. Minor fixes to fancytext.py to allow it to run.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-19 21:06:03 +00:00
Robin Dunn
247673201b
Copy (branch) wx.lib, wx.py and wx.tools from Classic, and include subpackages branched from 3rdParty
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-13 01:36:07 +00:00