Files
Phoenix/docs/sphinx/rest_substitutions/snippets/python/converted/CollapsiblePane.1.py
Andrea Gavana 14c7c36924 Phoenix:
- Latest Phoenix development integrated in the documentation builder;
- Added the latest `BitmapComboBox`, `RichToolTip` etc..., with their sample;
- Adapted the existing `adv` samples to use `wx.adv` in the code;
- Fixed wrong rendering of various snippets.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-07 21:07:40 +00:00

13 lines
522 B
Python

collpane = wx.CollapsiblePane(self, wx.ID_ANY, "Details:")
# add the pane with a zero proportion value to the 'sz' sizer which contains it
sz.Add(collpane, 0, wx.GROW | wx.ALL, 5)
# now add a test label in the collapsible pane using a sizer to layout it:
win = collpane.GetPane()
paneSz = wx.BoxSizer(wx.VERTICAL)
paneSz.Add(wx.StaticText(win, wx.ID_ANY, "test!"), 1, wx.GROW | wx.ALL, 2)
win.SetSizer(paneSz)
paneSz.SetSizeHints(win)