Typo fix, and a bit more info

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-04-30 00:56:41 +00:00
parent 791ed2d3d1
commit c9cc9d67bc

View File

@@ -774,18 +774,19 @@ class _wxPyDeadObject:
def __nonzero__(self): def __nonzero__(self):
return 0 return 0
#---------------------------------------------------------------------- #----------------------------------------------------------------------
class wxNotebookPage(wxPanel): class wxNotebookPage(wxPanel):
""" """
There is an old (and apparently unsolvable) bug when placing a There is an old (and apparently unsolvable) bug when placing a
window with a nonstandard background colour in a wxNotebook, as window with a nonstandard background colour in a wxNotebook on
the notbooks's background colour would always be used when the wxGTK, as the notbooks's background colour would always be used
window is refreshed. The solution is to place a panel in the when the window is refreshed. The solution is to place a panel in
notbook and the coloured window o nthe panel, sized to cover the the notbook and the coloured window on the panel, sized to cover
panel. This simple class does that for you, just put an instance the panel. This simple class does that for you, just put an
of this in the notebook and make your regular window a child of instance of this in the notebook and make your regular window a
this one and it will handle the resize for you. child of this one and it will handle the resize for you.
""" """
def __init__(self, parent, id=-1, def __init__(self, parent, id=-1,
pos=wxDefaultPosition, size=wxDefaultSize, pos=wxDefaultPosition, size=wxDefaultSize,