18 Commits

Author SHA1 Message Date
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
Metallicow
8d4f8e733c Reduce flicker in throbber. Use BufferedPaintDC 2020-10-27 19:03:10 -05:00
Robin Dunn
cd3de22068 Merge pull request #946 from RobinD42/throbber-issue924
Ensure the sequence attribute is a list by default
(cherry picked from commit c706dfacd9)
2018-07-30 21:36:06 -07: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
Andrew Murray
2cfe4ad989 Fixed typos 2017-02-26 14:15:49 +11:00
Metallicow
a8452dd575 Trim Whitespace lib directory 2016-10-12 22:21:38 -05: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
wernerfb
5491c0de5a Event handler doc update 2015-04-08 11:46:25 +02:00
wernerfb
583c8ebdfd documentation update 2015-04-07 10:43:19 +02:00
wernerfb
8a3a2fa829 small doc update 2015-04-05 12:28:56 +02:00
wernerfb
6c8bb12312 tags and a bit of documentation update 2015-04-05 12:03:03 +02:00
Robin Dunn
571668a23f Remove the old CVS $Id: tags.
They don't work in git, and don't work by default in SVN either.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-09 02:39:35 +00:00
Robin Dunn
980dc4d905 throbber and imagebrowser small Phoenix Fixes
imagebrowser wont complain when clicking on checkered background now.
throbber small PyPanel to Panel fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-13 07:14:32 +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
Robin Dunn
a30dfe91e2 I wasn't ready to add this yet.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-22 21:29:15 +00:00
Robin Dunn
c8c2e1d97b set svn:eol-style to native
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-22 21:02:42 +00:00