From e74c9b2c104e1635556f83de3bd0532b26621952 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 29 May 2019 19:18:50 -0700 Subject: [PATCH 1/2] Use an overlay to highlight widgets when running on GTK3 --- wx/lib/inspection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/lib/inspection.py b/wx/lib/inspection.py index 8958eaf5c1..1f51121267 100644 --- a/wx/lib/inspection.py +++ b/wx/lib/inspection.py @@ -823,7 +823,7 @@ class _InspectionHighlighter(object): highlightTime = 3000 # how long to display the highlights # how to draw it - useOverlay = 'wxMac' in wx.PlatformInfo + useOverlay = 'wxMac' in wx.PlatformInfo or 'gtk3' in wx.PlatformInfo def __init__(self): From 3409c0b57790bc4972bca354ab21a19ce97a3f4e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 29 May 2019 19:23:26 -0700 Subject: [PATCH 2/2] Add changelog entry --- CHANGES.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 65bdc2679e..573b6ece04 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -43,6 +43,8 @@ Other changes in this release: possible; key navigation now sets the date and fires the EVT_CALENDAR event; setter APIs now set the date correctly (#1230). +* Switch to using a wx.Overlay in the Widget Inspection Tool to highlight + widgets when running on a GTK3 port.