mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user