X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02b800ce7c2bb1c1f08075f22be2e7412124b47f..68fc5c8025e38b9d827383fbfe7ce509ae331c1f:/wxPython/wx/lib/foldpanelbar.py diff --git a/wxPython/wx/lib/foldpanelbar.py b/wxPython/wx/lib/foldpanelbar.py index 66a5ab2a15..8b003acea7 100644 --- a/wxPython/wx/lib/foldpanelbar.py +++ b/wxPython/wx/lib/foldpanelbar.py @@ -111,6 +111,7 @@ FoldPanelBar is supported on the following platforms: * Mac OSX (Thanks To Robin Dunn For The CaptionBar Size Patch) +FoldPanelBar is based upon Jorgen Bodde's C++ implementation. Latest Revision: Andrea Gavana @ 05 Nov 2005, 23.30 CET """ @@ -501,7 +502,7 @@ class CaptionBar(wx.Window): iconWidth=16, iconHeight=16, collapsed=False): """ Default Class Constructor.""" - wx.Window.__init__(self, parent, wx.ID_ANY, pos=wx.DefaultPosition, + wx.Window.__init__(self, parent, wx.ID_ANY, pos=pos, size=(20,20), style=wx.NO_BORDER) self._controlCreated = False @@ -1004,7 +1005,7 @@ class FoldPanelBar(wx.Panel): This control is easy to use. Simply create it as a child for a panel or sash window, and populate panels with - `AddFoldPanel`. Then use the AdddFoldPanelWindow` to add + `AddFoldPanel`. Then use the `AddFoldPanelWindow` to add `wx.Window` derived controls to the current fold panel. Use `AddFoldPanelSeparator` to put separators between the groups of controls that need a visual separator to group them @@ -1488,7 +1489,7 @@ class FoldPanelItem(wx.Panel): collapsed=False, cbstyle=EmptyCaptionBarStyle): """ Default Class Constructor. """ - wx.Panel.__init__(self, parent, id, style=wx.CLIP_CHILDREN) + wx.Panel.__init__(self, parent, id, wx.Point(0,0), style=wx.CLIP_CHILDREN) self._controlCreated = False self._UserSize = 0 self._PanelSize = 0