Robin Dunn
de0a4415c0
Merge pull request #2048 from komoto48g/feature-scrpnl
...
Add self-guard in scrolledpanel:_SetupAfter
2021-12-13 21:03:49 -08:00
komoto
b699b2823c
Add self-guard in scrolledpanel:_SetupAfter
2021-12-08 00:08:28 +09: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
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
wernerfb
d89745e761
fix doc links in wx.lib
2015-04-13 18:42:45 +02:00
Robin Dunn
6fb49ce820
Remove SetAutoLayout from the example.
2015-04-11 16:32:35 -07:00
Werner F Bruhin
94eb2b65f7
- sphinx didn't like the text formatting
2014-06-17 14:04:03 +02:00
Robin Dunn
bcbdcd9631
Remove more CVS $Id$ and $Revision$ tags, and a bit of code that uses them.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-11 03:35:32 +00:00
Andrea Gavana
299b2925cf
Phoenix docs: adjust the demo code in scrolledpanel.py docstrings to avoid Sphinx warnings (hopefully)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-09 13:38:04 +00:00
Robin Dunn
4895d5f47e
fix example in docstring
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-09-06 04:40:58 +00:00
Robin Dunn
9f24505715
Merge of PR 11 with the whitespace-only changes omitted.
...
See https://github.com/RobinD42/Phoenix/pull/11
Mostly phoenix-port changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-10 01:15:34 +00:00
Andrea Gavana
662e4c69f5
Phoenix: reformat the scrolledpanel.py sample in the docstrings so that (maybe) sphinx_generator.py will not eat it again...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-22 22:43:28 +00:00
Andrea Gavana
b5718b493f
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@73236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-21 21:09:33 +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