Robin Dunn
de25f3091f
Merge pull request #1576 from pbrod/Fix_issue1570_use_of_tempfile
...
Fixes issue #1570 :
2020-04-01 15:40:07 -07:00
Robin Dunn
8c9446bd28
Merge pull request #1578 from pbrod/Fix_issue1577_memory_leak
...
Fixes issue #1577 : possible memory leak
2020-03-27 13:22:35 -07:00
Robin Dunn
e4fd5f1fb6
Merge pull request #1575 from pbrod/fix_issue1574
...
Fixes issue #1574 : Still missing close for open, replace with a "with" block
2020-03-27 13:14:24 -07:00
Robin Dunn
7e58190020
Switch recent joins to posixjoins, use relpath with scp
2020-03-25 12:15:54 -07:00
Per A. Brodtkorb
5cf6dc565e
Fixes #1570
...
Replaced the unsafe "tfname = tempfile.mktemp()" call with
"with tempfile.NamedTemporaryFile(delete=False) as fid: tfname = fid.name"
Also removed unused "import glob"
2020-03-25 11:27:49 +01:00
Per A. Brodtkorb
b525fbb037
Fixes #1577
...
Allocated array should be deallocated with delete [].
Deallocating it with delete can cause memory leaks.
2020-03-25 10:49:44 +01: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
Robin Dunn
386558c757
Fix tarfile filename problems due to changing when the CWD is changed
2020-03-24 12:52:59 -07:00
Robin Dunn
53cc1f28bf
Add missing wx.MemoryDC.GetSelectedBitmap
2020-03-23 20:19:29 -07:00
Robin Dunn
e67fcca9dd
Update wxWidgets ref
2020-03-23 20:18:59 -07:00
Robin Dunn
f1aaa8b6d3
Update wxWidgets ref
2020-03-23 16:08:03 -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
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