mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 13:00:07 +01:00
⁉️ Not sure if the generated .rst stuff is intended to have
whitespace like this in it or not, so seperating this from the other
commits, so easy to revert if necessary.
13 lines
510 B
Python
13 lines
510 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)
|