Commit Graph

22 Commits

Author SHA1 Message Date
neofelis2X
6f2ca2b5e5 Docs: fix various minor sphinx parsing issues 2025-02-24 23:03:37 +01:00
Alexandre Detiste
0257f755cf remove most of Python2 compatibility code 2025-02-02 20:17:45 -05:00
Scott Talbert
2871c46d33 Fix a bunch of DeprecationWarnings due to invalid escape sequences
Fixes #1454.
2022-01-11 11:23:06 -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
Robin Dunn
c00b8950da Spelling fixes in wx.lib 2020-07-14 12:53:31 -07:00
Per A. Brodtkorb
033c18fd9f Fixes issue #1556
Replaced XXX.keys() calls with idiomatic python 3 calls that are compatible with python 2 such as eg:
 * replaced "y = xxx.keys()" or "y = list(xxx.keys())" with just "y = list(xxx)"
 * replaced "sorted(xxx.keys())" or "sorted(list(xxx.keys()))" with just "sorted(xxx)"
 * replaced "if not A in B.keys():" with "if A not in B:"
 * replaced "for A in B.keys():"  with "for A in B:"

See also https://python-future.org/compatible_idioms.html
https://python-future.org/compatible_idioms.html#dict-keys-values-items-as-a-list
2020-03-20 18:51:19 +01:00
Robin Dunn
b1b0c9e297 wx.NewId() --> wx.ID_ANY or wx.Window.NewControlId() as appropriate 2018-06-19 10:31:56 -07:00
tizytissy
a00017f1c7 use floordiv instead of truediv to get _groupSpace
Actual code use truediv ('/') to calculate _groupSpace, but in python 3.x this leads to a float result, instead of an integer as one would expect.
Using floordiv ('//') instead, resolve the problem.
2018-05-28 09:25:58 +02:00
Metallicow
fff39a2a67 Trim Whitespace masked directory 2016-10-12 22:39:44 -05:00
Robin Dunn
cc3190e240 Lots more docstring refs fixed 2016-07-06 20:20:10 -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
Werner F Bruhin
a24a07de0e - grouping default should be 'False' as per documentation and to enable small int of e.g. size 3 2014-07-10 09:47:18 +02:00
Robin Dunn
bbeef1173c Fix wxPython.lib —> wx.lib in file header comments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-14 05:55:14 +00:00
Robin Dunn
2e30a88173 Some Py3 and various other fixes from wxGuru.
Merged and squashed from https://github.com/RobinD42/Phoenix/pull/15,
with additional edits.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-05 20:54:22 +00:00
Robin Dunn
01d0da517b Patch to fix several Py3 issues with wx.lib.masked.
- string manipulation (string.* methods)
- type instance checking (types.StringType)
- unicode vs str comparisions
- string decoding not needed in py3k
- static methods: Validator_IsSilent()
- remove has_key and fixed + with list(dict.keys())

Closes #15163

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-26 06:40:43 +00:00
Robin Dunn
495d42fe27 Patch for wx.lib.masked from Werner.
- added progress tags
- changed wx calls which are no longer valid in Phoenix
- changed public method documentation to Sphinx/Phoenix format
- created tests

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-17 02:52:09 +00:00
Robin Dunn
5302d40852 Patch from Ramin Sabet to update masked modules for Phoenix and Py3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-02-16 03:24:37 +00:00
Robin Dunn
53d0c8de00 default for useFixedWidthFont is now False for NumCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-03 05:40:54 +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