Commit Graph

4639 Commits

Author SHA1 Message Date
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
Robin Dunn
00640cab39 Merge pull request #1568 from pbrod/Fix_1553
Fixes issue #1553: Replace wait with communicate to avoid potential d…
2020-03-23 15:30:52 -07:00
Robin Dunn
ac7e407763 Merge pull request #1565 from wxWidgets/fix-1311
Don't use relative imports in the tools scripts
2020-03-23 15:27:55 -07:00
Robin Dunn
0b1602f059 Merge pull request #1566 from wxWidgets/fix-1488
Use WX_CONFIG from the environment if set
2020-03-23 15:27:23 -07:00
Robin Dunn
29189feb60 Merge pull request #1573 from wxWidgets/new-azure-image
Switch to the macOS-10.14 image on Azure
2020-03-23 15:26:21 -07:00
Robin Dunn
52c00542eb Streamline fetching WX_CONFIG from the environment 2020-03-23 14:50:52 -07:00
Robin Dunn
cb7f95d9b7 Switch to the macOS-10.14 image on Azure 2020-03-23 14:10:08 -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
Per A. Brodtkorb
95d1df0383 Fixes issue #1553: Replace wait with communicate to avoid potential deadlock. 2020-03-23 11:16:33 +01:00
Robin Dunn
9b122237c9 if WX_CONFIG is set in the environment then use that instead of defaulting to "wx-config" 2020-03-20 15:25:34 -07:00
Robin Dunn
764abb41bf Don't use relative imports in the tools scripts 2020-03-20 15:21:23 -07: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
68e8650a4d Merge pull request #1563 from pbrod/Fix_issue1555
Fixes issue 1555
2020-03-20 15:06:21 -07:00
Robin Dunn
460e69aec3 Merge pull request #1562 from pbrod/fix-issue1557
Fixes issue #1557 by replacing call to tempfile.mktemp with tempfile.…
2020-03-20 15:04:12 -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
Robin Dunn
7eaf6b1d86 Add snippet for GridFitMode 2020-03-20 13:30:04 -07:00
Robin Dunn
9813e50502 Don't generate docs for the wxObjectDataPtr template 2020-03-20 13:29:43 -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
05ac589e2d Fixes issue 1555
Replace open-close statements by the use of "with"-blocks.

With the "With" statement, you get better syntax and exceptions handling.

"The with statement simplifies exception handling by encapsulating common
preparation and cleanup tasks."

In addition, it will automatically close the file. The with statement provides
a way for ensuring that a clean-up is always used.
2020-03-20 15:03:09 +01:00
Per A. Brodtkorb
f2dbd64253 Fixes issue #1557 by replacing call to tempfile.mktemp with tempfile.NamedTemporaryFile. 2020-03-20 14:51:28 +01:00
Per A. Brodtkorb
2830ccf783 Fixes issue #1549: test_propgridprops12 fails on windows 2020-03-20 12:40:36 +01:00
Robin Dunn
ef1edacc20 Merge pull request #1552 from wxWidgets/fix-issue1084
skip the pyi tests for now, also allow wchar_t global name strings
2020-03-17 23:24:47 -07: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
b503793e5e Add ability to make global name strings from a wchar_t constant 2020-03-17 17:46:56 -07:00
Robin Dunn
29b7095888 Merge pull request #1551 from wxWidgets/fix-issue1476
Fix inconsistencies and missing event
2020-03-17 17:38:26 -07:00
Robin Dunn
4444d63c1f Add missing clipboard event type and binder 2020-03-17 15:57:10 -07:00
Robin Dunn
2c378393a9 Remove the very outdated classic_vs_phoenix document 2020-03-17 15:43:38 -07:00
Robin Dunn
45245cd97f Ensure DisplayContextPopup is seen in HTMLHelpController 2020-03-17 15:43:19 -07:00
Robin Dunn
2cdd15cbe7 Merge pull request #1550 from wxWidgets/fix-issue1536
wxHelpControllerBase does not need to be explicitly tagged as abstract
2020-03-16 23:21:46 -07:00
Robin Dunn
3f4d57ac9c wxHelpControllerBase does not need to be explicitly tagged as abstract 2020-03-16 23:21:04 -07:00
Robin Dunn
9e42750b59 Fix typo 2020-03-13 16:10:10 -07:00
Robin Dunn
d012cbcd2c Merge pull request #1548 from wxWidgets/fix-issue1527
Add missing IsAcceptedKey
2020-03-13 16:09:56 -07:00
Robin Dunn
9212a7196a Merge pull request #1547 from wxWidgets/fix-issue1535
Fix middle icon issue in SpeedMeter
2020-03-13 11:56:21 -07:00
Robin Dunn
e41fd89a1e Fix minor issue in GridCustEditor demo 2020-03-13 11:53:56 -07:00
Robin Dunn
5154f21923 Update wxWidgets ref to get IsAcceptedKey and other updates 2020-03-13 11:53:20 -07:00
Robin Dunn
1f33298627 Add new font families and weights 2020-03-13 10:42:08 -07:00
Robin Dunn
f55917037e Resizing of Bitmaps and Icons no longer supported on OSX. Load into a wx.Image and Rescale there. 2020-03-13 10:41:15 -07:00
Robin Dunn
ad4fd0db53 Initialize self._middleicon, verify it is valid before trying to use it 2020-03-13 10:40:00 -07:00
Robin Dunn
8f7a1fd417 Another name fix for wxObjectDataPtr 2020-03-12 15:10:11 -07:00
Robin Dunn
2783a03ed7 Merge branch 'copyright-dates' 2020-03-10 11:42:06 -07:00
Robin Dunn
9f2cc54b48 Update copyright years 2020-03-10 11:41:39 -07:00
Robin Dunn
adaaf76670 Merge pull request #1541 from wxWidgets/update-wx-ref
Update wxWidgets reference to current
2020-03-09 12:28:09 -07:00
Robin Dunn
627594f53a Merge pull request #1540 from wxWidgets/fix-issue1539
Inform SIP about the pure virtuals implemented in HtmlHelpController
2020-03-09 12:27:50 -07:00
Robin Dunn
b7449a7459 Merge pull request #1534 from notgiven688/tabheightissue
Fixed a bug in the tabHeight calculation.
2020-03-09 12:27:12 -07:00
Robin Dunn
5fb8b1a772 Fix some return types 2020-03-05 12:58:10 -08:00
Robin Dunn
c7a6d16793 Inform SIP about the pure virtuals implemented in HtmlHelpController 2020-03-05 09:54:37 -08: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
3b36621130 Update wxWidgets ref to current 2020-03-05 09:48:09 -08:00