mirror of https://github.com/chriskiehl/Gooey.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
374 B
17 lines
374 B
import wx
|
|
|
|
|
|
def standard_layout(title, subtitle, widget):
|
|
container = wx.BoxSizer(wx.VERTICAL)
|
|
|
|
container.Add(title)
|
|
container.AddSpacer(2)
|
|
|
|
if subtitle:
|
|
container.Add(subtitle, 1, wx.EXPAND)
|
|
container.AddSpacer(2)
|
|
else:
|
|
container.AddStretchSpacer(1)
|
|
|
|
container.Add(widget, 0, wx.EXPAND)
|
|
return container
|