Robin Dunn
727f3aff2a
Merge pull request #2158 from komoto48g/shell-stc
...
Fix issue #2157 : wx.py.shell.Shell.OnHistorySearch
2022-05-22 23:01:11 -07: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
komoto
ab6ec5b9fd
Fix shell getMultilineCommand
...
Add limitation to avoid an infinite loop at EOF,
when programmatically called on the current prompt.
2022-04-26 22:30:49 +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
komoto
d8a0f0e639
Remove comments and cleanup
2021-12-14 14:42:04 +09:00
Kazuya O'moto
0d6031df60
Merge branch 'wxWidgets:master' into feature-shell
2021-12-14 14:24:43 +09: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
komoto
fd0560f256
Add Shell EVT_UPDATE_UI handler for each id
...
(revert)
self.Bind(wx.EVT_UPDATE_UI, self.OnUpdateContextMenu) without specifing id
triggers EVT_UPDATE_UI frequently.
2021-07-29 16:09:56 +09:00
komoto
5d1b6e0d28
Fix Shell update event handler
...
Rename the handler so that it does not override the base class EditWindow.OnUpdateUI.
2021-07-29 16:09:56 +09:00
komoto
7ff7d46a7e
Add Shell missing keywords
...
Add the keyword 'finally' in Execute, to fix miss-indentation
when pasting the following code:
try:
1
finally: <-- indent error
0
Add the keyword 'with' to fix mis-indentation when typing:
with xxx:
| <-- incorrect auto-indentation in the next line
2021-07-29 16:01:10 +09: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
Metallicow
6e681835a6
Remove exception in py shell wrap() method
...
This exists in Scintilla when wxPython 4.0 Phoenix came out, so remove it as cruft.
2020-06-09 22:14:18 -05: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
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
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
Robin Dunn
96adef7c60
Fix some Py3 compatibility issues
2017-05-17 17:46:33 -07: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
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