31 Commits

Author SHA1 Message Date
Alexandre Detiste
323e78c085 remove more Python2 hybridation 2025-02-02 20:29:49 -05:00
Alexandre Detiste
0257f755cf remove most of Python2 compatibility code 2025-02-02 20:17:45 -05:00
komoto
85466c87b8 Revert "Override SetSelection as a temporary patch"
Better to override editwindow
2022-05-20 13:09:07 +09:00
komoto
3381f5bfb4 Override SetSelection as a temporary patch
Patch for miss-insertion position when from_ > to_.
    This is needed until the stc.StyledText.SetSelection bug is fixed.
2022-05-12 23:47:22 +09:00
komoto
efa85f1798 Fix OnHistorySearch range+ error
Fix TypeError: unsupported operand type(s) for +: 'range' and 'range'
2022-05-12 23:24:25 +09:00
Scott Talbert
2871c46d33 Fix a bunch of DeprecationWarnings due to invalid escape sequences
Fixes #1454.
2022-01-11 11:23:06 -05:00
Robin Dunn
cbe539efd9 Merge pull request #2047 from swt2c/df_unicode
Use wx.DF_UNICODETEXT instead of wx.DF_TEXT
2021-12-13 20:46:14 -08:00
Scott Talbert
2791fd7016 Use wx.DF_UNICODETEXT instead of wx.DF_TEXT
wx.DF_TEXT doesn't work on macOS and Unicode should be available under
all platforms.
2021-12-06 19:56:04 -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
426258b7b7 Adding missing close for open and replaced "fid=open(filename) fid.close()"
statements with the safer "with open(filename) as fid:" blocks.

Also removed unnecessary "try: ... finally: pass" statements
and refactored code from img2py function into _write_image and _replace_non_alphanumeric_with_underscore

Fixes #1574
2020-03-25 10:36:38 +01: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
Paul Kienzle
37a575c1fb python 2/3 compatible file handling. Refs #1193. 2019-04-13 02:19:52 -04:00
David N. Mashburn
12aed76e6b Fixes save/ load bugs Pyslices 2018-08-26 11:25:15 -04: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
Tianzhu Qiao
587c24957f Add option to not use stock IDs in context-menu of pyshell.
Otherwise, the context-menu may not work on Mac without adding the proper IDs
to the menu bar.
2018-05-01 23:02:37 -07:00
Robin Dunn
bbb19777b3 QnD fix for missing self.shell attribute 2018-03-27 19:30:36 -07:00
Bob White
7b41a3e58f Using functools.cmp_to_key for old style sorts. 2017-09-07 12:15:38 -05:00
Bob White
251f9d7d5a Fix for list.sort requiring keywords in python3.5
Python3.5 changed the parameters in list.sort to be keyword only
arguments.

This fixes all the instances I could find.
2017-09-07 09:35:33 -05:00
Metallicow
6e0ec5421f Trim Whitespace py directory 2016-10-12 22:12:43 -05: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
Robin Dunn
2c3b7a813d wx.YieldIfNeeded doesn't exist in Phoenix.
This fixes going into help mode in PyShell.
2015-03-12 13:51:51 -07:00
Robin Dunn
801682c786 Some Py3 fixes for PyCrust
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-03-02 07:48:20 +00: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
Robin Dunn
c1beea6cfa PR 39 from Metallicow. Py3 and Phoenix updates, Pen and Brush style updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-11 23:12:35 +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
Robin Dunn
ede298e62e Modified patch from Maxim Kolosov for Py3 fixes in wx.py
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-04 02:00:13 +00:00
Robin Dunn
c5bcdfe844 Various changes for PyCrust and other py classes to get them working with Phoenix and also avoid deprecation warnings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72797 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-27 03:16:59 +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