From 3a7748db47a6faeda821962039e5ccb4bc859964 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Tue, 14 Jul 2020 09:59:20 -0400 Subject: [PATCH] PG Demo: OR the "help as tooltips" flag instead of setting This fixes an issue on GTK3 platforms with HiDPI screens. When using SetExtraStyle(), all of the existing flags, including native double buffering, were being cleared. GTK3 currently has issues when native double buffering is disabled, so this ensures that the existing default flags aren't overwritten. --- demo/PropertyGrid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/PropertyGrid.py b/demo/PropertyGrid.py index 3d9265e4..784b138e 100644 --- a/demo/PropertyGrid.py +++ b/demo/PropertyGrid.py @@ -678,7 +678,7 @@ class TestPanel( wx.Panel ): wxpg.PG_TOOLBAR) # Show help as tooltips - pg.SetExtraStyle(wxpg.PG_EX_HELP_AS_TOOLTIPS) + pg.ExtraStyle |= wxpg.PG_EX_HELP_AS_TOOLTIPS pg.Bind( wxpg.EVT_PG_CHANGED, self.OnPropGridChange ) pg.Bind( wxpg.EVT_PG_PAGE_CHANGED, self.OnPropGridPageChange )