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.
This commit is contained in:
Scott Talbert
2020-07-14 09:59:20 -04:00
parent f42d2de988
commit 3a7748db47

View File

@@ -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 )