Commit Graph

26 Commits

Author SHA1 Message Date
Alexandre Detiste
0257f755cf remove most of Python2 compatibility code 2025-02-02 20:17:45 -05:00
Kazuya O'moto
ba0e6b0e32 Fix InspectionTool crashes due to bad perspective string errros
To ensure backward compatibility from version 4.2.3* to 4.2.2,
use the config key 'perspective1' for version 4.2.3 and later.

LoadPerspective => LoadPaneInfo raises an Exception, not a wx.PyAssertionError.
Therefore, change it to catch only Exception.
2024-11-06 02:48:19 +09:00
Scott Talbert
37ba9563b6 Update unittests to work with wxWidgets 3.1.6 2022-05-02 22:35:18 -04: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
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
e0366971fb Fix probable copy/paste error 2019-07-08 14:01:47 -07:00
Robin Dunn
e74c9b2c10 Use an overlay to highlight widgets when running on GTK3 2019-05-29 19:18:50 -07:00
Robin Dunn
b77c88a280 Merge tag 'wxPython-4.0.2' into wxPy-4.0.x
(cherry picked from commit 4c56c39e52)
2018-06-17 22:04:22 -07:00
Robin Dunn
c9e99b54b0 Update copyright in wx/lib 2017-02-13 17:06:07 -08:00
Metallicow
a8452dd575 Trim Whitespace lib directory 2016-10-12 22:21:38 -05:00
Mesalu
062ecec846 Added check for mgr in close procedure
Added to resolve the following error:
Traceback (most recent call last):
  File "/users/dunnsa/lib/python3.5/site-packages/wx/lib/inspection.py", line 278, in OnClose
    self.SaveSettings(self.config)
  File "/users/dunnsa/lib/python3.5/site-packages/wx/lib/inspection.py", line 431, in SaveSettings
    perspective = self.mgr.SavePerspective()
AttributeError: 'InspectionFrame' object has no attribute 'mgr'


Still not sure why this happening, and I'm more inclined to believe it a fault in my TLW's close process. 
However it has happened on two different machines (both wxGTK) under a normal user close event.
2016-10-06 22:41:09 -07:00
Robin Dunn
6758e3870a Slight improvement for the impl of the Borg design pattern. 2016-08-24 14:16:02 -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
wernerfb
d89745e761 fix doc links in wx.lib 2015-04-13 18:42:45 +02:00
Robin Dunn
2fb6f00867 PR 42 from Metallicow. Py3 and Phoenix updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-01-11 23:13:15 +00:00
Robin Dunn
68ea7237ce Py3 and Phoenix fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-04 16:10:17 +00:00
Robin Dunn
f8e549f767 Workaround to avoid problem possibly due to Unbind() not working.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-10 00:05:50 +00:00
Robin Dunn
b85f0fd8e6 Phoenix patch from Werner for the inspection modules.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-10 00:05:41 +00:00
Robin Dunn
4d5de5dcf6 Some phoenix-port work for the WIT.
Probably more still needs to be done, but this is enough to get simple tests working.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-04-03 02:12:06 +00:00
Robin Dunn
3a5ce237de Fix wx.FindWindowAtPointer wrapper to return the point parameter in addition to the window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-03-07 05:22:27 +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