From: "Dr. Georg Beinlich" <coryne@web.de>
> hi everybody,
> is there a possibility to change the background-colour of a
> notebook?
i didnt try it - but maybe in this way:
parent = notebookchild.GetParent()
parent.SetBackgroundColour( ...)
No, that doesn't (quite) work.
notebook.SetBackgroundColour() sets the border and the clear area behind the
tabs, but *not* the colour of the tabs themselves. Which looks very ugly.
notebook.SetForegroundColour() seems to do nothing. There is no way I can
find to change the tab text colour (or font, or anything else, for that
matter...)
This is on Windows 2000, wxPython 2.3.1, Python 2.1.
Paul.
···
From: ssh-gmx [mailto:heinlr@gmx.de]
another idea:
use EVT_PAINT in your parent.
in OnPaint you can call GetClientRect and GetRect -
the difference of the two rectangles migth be the Area which you want to
fill.
best regard
···
----- Original Message -----
From: "Moore, Paul" <Paul.Moore@atosorigin.com>
To: <wxpython-users@lists.wxwindows.org>
Sent: Thursday, October 04, 2001 3:18 PM
Subject: RE: [wxPython] change colour of notebook
From: ssh-gmx [mailto:heinlr@gmx.de]
> From: "Dr. Georg Beinlich" <coryne@web.de>
> > hi everybody,
> > is there a possibility to change the background-colour of a
> > notebook?
>
> i didnt try it - but maybe in this way:
>
> parent = notebookchild.GetParent()
> parent.SetBackgroundColour( ...)
No, that doesn't (quite) work.
notebook.SetBackgroundColour() sets the border and the clear area behind
the
tabs, but *not* the colour of the tabs themselves. Which looks very ugly.
notebook.SetForegroundColour() seems to do nothing. There is no way I can
find to change the tab text colour (or font, or anything else, for that
matter...)
This is on Windows 2000, wxPython 2.3.1, Python 2.1.
Paul.
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users