ON XP when pages are added to a Notebook their colours (and their
children's) are modified to match the theme colours for notebook pages rather than normal panel colours. When items are added dynamically after the fact to the notebook pages then we need to fiddle with the colours ourself. Also, since xrced is importing from wxPython.wx then DC.Draw methods now need to use the old parameter syntax. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -165,6 +165,8 @@ class Panel(wxNotebook):
|
||||
class ParamPage(wxPanel):
|
||||
def __init__(self, parent, xxx):
|
||||
wxPanel.__init__(self, parent, -1)
|
||||
self.SetBackgroundColour(parent.GetBackgroundColour())
|
||||
self.SetForegroundColour(parent.GetForegroundColour())
|
||||
self.xxx = xxx
|
||||
# Register event handlers
|
||||
for id in paramIDs.values():
|
||||
|
Reference in New Issue
Block a user