Hello -
4.2.1 gtk3 (phoenix) wxWidgets 3.2.2.1
Just trying to create two pages, with a bit of text and a background color.
On Linux (Ubuntu 22.04, x86_64) when I select page two, page one is still rendered underneath : color and text, so you get a corrupted display that looks like this:
Looks fine on mac: 4.2.1 osx-cocoa (phoenix) wxWidgets 3.2.2.1
Code to reproduce:
#!/usr/bin/python
import wx
app = wx.App()
frame = wx.Frame(None, title='notebook test')
notebook = wx.Notebook(frame)
one = wx.Window(notebook)
one.SetBackgroundColour(wx.GREEN)
wx.StaticText(one, label="one")
print(one.GetBackgroundColour())
notebook.AddPage(one, "One")
two = wx.Window(notebook)
wx.StaticText(two, label="two")
# we didn't set a background color for page two,
# we expect it to be the platform default (gray/white/etc)
print(two.GetBackgroundColour())
notebook.AddPage(two, "Two")
frame.Show()
app.MainLoop()
Thanks for any pointers/workarounds.
-ck