Commit Graph

676 Commits

Author SHA1 Message Date
Stefan Brüns
ae237e7c45 Fix STC.StartStyling call in unittests
See https://github.com/wxWidgets/Phoenix/pull/1643
Fixes https://github.com/wxWidgets/Phoenix/issues/1748
2020-07-30 02:52:24 +02:00
Robin Dunn
ff6311cc06 Revert an incorrect part of the last change 2020-04-22 13:20:53 -07:00
Robin Dunn
c55a4450b6 Ensure sip sees that there is an implementation of DisplayEditorDialog in classes derived from wxEditorDialogProperty 2020-04-22 13:17:33 -07:00
Robin Dunn
e1b0435f8e Added wrappers for the wx.grid.GridBlockCoords, wx.grid.GridBlocks, and wx.grid.GridBlockDiffResult classes 2020-04-17 16:35:37 -07:00
Robin Dunn
7a05d20d82 Merge pull request #1572 from pbrod/Fix_issue1571
Fixes issue 1571:
2020-03-23 16:07:22 -07:00
Robin Dunn
41c5af9cde Merge pull request #1569 from pbrod/Fix_issue1554
Fixes issue # 1554:
2020-03-23 15:35:41 -07:00
Per A. Brodtkorb
e4e8bf8317 Fixes issue 1571:
Adding missing close for open.
If the "close()" call is missing after a "open(filename)" call, the filename isn't guaranteed to be closed before the interpreter exits.
This is generally a bad practice as explained here: https://stackoverflow.com/questions/7395542/is-explicitly-closing-files-important

Also replaced "fid=open(filename) fid.close()" statements for files with the safer
"with open(filename) as fid:" blocks. See https://www.python.org/dev/peps/pep-0343/
2020-03-23 17:16:44 +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
8e2627e8e3 Merge pull request #1564 from pbrod/Fix_issue1556
Fixes issue #1556
2020-03-20 15:19:40 -07:00
Robin Dunn
1eafa7e77d Merge pull request #1559 from pbrod/Fix_test_propgridprops2
Fixes issue #1549: test_propgridprops12 fails on windows
2020-03-20 14:49:10 -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
Per A. Brodtkorb
2830ccf783 Fixes issue #1549: test_propgridprops12 fails on windows 2020-03-20 12:40:36 +01:00
Robin Dunn
adf1a1522c Skip the pyi unittests for now.
It seems that ensuring that they are valid executable Python is not as important as it was in the past.
2020-03-17 17:48:36 -07:00
Robin Dunn
4444d63c1f Add missing clipboard event type and binder 2020-03-17 15:57:10 -07:00
Robin Dunn
e16401abc4 Use UTI strings for custom data format names.
It seems to be required on macOS now.
2020-03-05 09:52:24 -08:00
Robin Dunn
9096426603 Add __index__ to wx.WindowID, and __bool__ to wx.Region 2020-02-26 11:10:27 -08:00
Robin Dunn
42dd0c6e12 Add wx.NotebookPage alias 2019-12-31 13:46:50 -08:00
jensgoe
8c3f231b0c added unittests for setters
(cherry picked from commit 216b9a824b)
2019-12-18 18:15:16 -08:00
Robin Dunn
49cceecbdf Added wrappers for the wx.CollapsibleHeaderCtrl class 2019-10-30 13:03:51 -07:00
Robin Dunn
e972814cd3 Add wx.ActivityIndicator 2019-10-29 15:23:08 -07:00
Robin Dunn
56e53107a7 Show and Destroy the test dialogs on Macs, yield after update, and more test fixes
(cherry picked from commit 7f2e86a72c)
2019-10-23 18:57:39 -07:00
Robin Dunn
a757f15cab Test fixes 2019-10-17 14:08:13 -07:00
Robin Dunn
8395898ea5 Merge branch 'improve-hypertreelist' of https://github.com/ThomasP0815/Phoenix into ThomasP0815-improve-hypertreelist 2019-10-07 13:35:23 -07:00
Robin Dunn
fea9c980f8 Remove use of some constants that no longer exist in 4.1 2019-09-12 13:13:34 -07:00
Pappenreiter.Thomas
fbe0951950 Feature: Colouring columns in hypertreelist 2019-08-28 14:26:32 +02:00
ricpol
6088d873f8 fixes and tests for CDate.py 2019-05-25 18:53:04 +02:00
ricpol
a8bf4a5113 some new test for wx.lib.calendar 2019-05-25 17:14:07 +02:00
Robin Dunn
0378328d45 Merge pull request #1201 from RobinD42/fix-issue1198
Fix access to members of transient wx.VisualAttributes

(cherry picked from commit d6324a0578)
2019-04-13 16:25:55 -07:00
Robin Dunn
beac13c0bb Merge pull request #1131 from swt2c/fix_access_test
Xfail unimplemented access test instead of failing it
(cherry picked from commit 92fc4afa9d)
2019-01-15 16:02:37 -08:00
Robin Dunn
fde6792936 Merge pull request #1127 from swt2c/fix_vlbox_test
Fix vlbox test on Python 3
(cherry picked from commit 8c9b379bc4)
2019-01-15 16:01:59 -08:00
jensgoe
714a9a222d ignore newline added by Tokenize module since Python 3.6 (fixes #1109) 2018-12-12 16:00:46 +01:00
Robin Dunn
1f735769a1 Merge pull request #1082 from Metallicow/Fix-Image-Issues
Fix image issues
2018-11-30 14:52:26 -08:00
Robin Dunn
ccd9874d1c Merge pull request #1083 from swt2c/fix_pubsub_test
Fix pubsub provider test - restore expected whitespace
(cherry picked from commit f797aec0e6)
2018-11-30 14:45:22 -08:00
Robin Dunn
a023509f9b Merge pull request #1081 from swt2c/fix_filectrl_tests
Fix filectrl tests - wait a little longer to ensure event loop runs
(cherry picked from commit f7d6303690)
2018-11-30 14:44:56 -08:00
Robin Dunn
ad25565baa Merge pull request #1080 from swt2c/fix_dataview_test
Fix dataview test on Python 2
(cherry picked from commit d565a3500f)
2018-11-30 14:44:39 -08:00
Robin Dunn
ba3a638839 Merge pull request #1079 from swt2c/skip_unimplemented_tests
Skip unimplemented tests instead of failing them
(cherry picked from commit 66049df936)
2018-11-30 14:44:24 -08:00
Metallicow
230bf5d6d3 Optimize All PNGs Nov2018
Since I had to fix a image issue and optimize it. I decided to rerun FileOptimizer 13.30.2393 over all pngs. Small bytes for some that had been optimized before, but this comit covers all pngs that may have been missed in the past. Maybe revisit running them all again in 2 years. Total time to process all pngs: approx 8 hours.
As technology improves this will only get better/faster when downloading, loading in browser, embedded, etc...
2018-11-13 16:08:12 -06:00
Robin Dunn
586f9ccd22 Add Enabled property for wx.MenuItem
(cherry picked from commit af7f52b640)
2018-11-01 17:06:46 -07:00
Robin Dunn
ceb2f46720 Merge pull request #1065 from RobinD42/fix-issue1061
Transfer ownership of the wx.aui.AuiNotbook.SetArtProvider art parameter

(cherry picked from commit a55e4ec45d)
2018-10-29 22:18:23 -07:00
Robin Dunn
653d91b372 Merge pull request #1064 from RobinD42/fix-issue1060
Ensure sip knows the pure virtuals are present in wx.html.HtmlPrintout

(cherry picked from commit 17f52dfd14)
2018-10-29 22:18:08 -07:00
Robin Dunn
2f540a91e6 Merge pull request #1034 from RobinD42/fix-issue958-291-wxAccessible
Add wxAccessible and a tool to generate C++ stubs

(cherry picked from commit 3a9f37f2aa)
2018-10-10 19:40:59 -07:00
Robin Dunn
f21c6b812d Add tests for floating point multiplication of Point, Size and RealPoint
(cherry picked from commit 46cc86a34a)
2018-09-25 12:44:35 -07:00
Robin Dunn
10c34f20e7 Merge pull request #980 from RobinD42/fix-issue974
Add wx.StaticBox.GetBordersForSizer
(cherry picked from commit 49d0592e4a)
2018-08-29 23:14:25 -07:00
Robin Dunn
4b6ee40a14 Merge pull request #938 from RobinD42/fix-issue932-b
Restore wx.lib.pubsub, and officially deprecate
(cherry picked from commit 8fad2231a0)
2018-07-20 16:45:05 -07:00
Robin Dunn
cc940d3f30 Merge pull request #935 from RobinD42/fix-issue918
Added wx.Treebook.GetTreeCtrl and wx.Choicebook.GetChoiceCtrl
(cherry picked from commit f85818a25d)
2018-07-18 18:28:37 -07: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
b5bb587145 Merge pull request #897 from RobinD42/add-windowidref
Add wx.WindowIDRef and wx.NewIdRef
2018-06-24 21:37:54 -07:00
Robin Dunn
b1b0c9e297 wx.NewId() --> wx.ID_ANY or wx.Window.NewControlId() as appropriate 2018-06-19 10:31:56 -07:00
Robin Dunn
9dd05ae311 Merge pull request #878 from RobinD42/fix-issue875
Add missing wx.adv.EVT_CALENDAR_WEEK_CLICKED
(cherry picked from commit e1732ee271)
2018-06-04 23:38:25 -07:00
Robin Dunn
4b4e642c4f Merge pull request #874 from RobinD42/fix-issue783
Add a wx.GraphicsContext.Create overload for wx.AutoBufferedPaintDC
(cherry picked from commit c798be08a3)
2018-05-31 21:17:55 -07:00