我在现有的 GridBagSizer (sizer) 中有一个 GridBagSizer (folderBagSizer)...现在我正在尝试用一些标签填充嵌套的 sizer (folderBagSizer)。他们出现在尺码器下面......?
# Create static box
self.sb_ExtractOptions = wx.StaticBox(panel, label="Options for Extract",
size=(100,100))
folderBoxSizer = wx.GridBagSizer(4, 9)
folderBoxSizer.Add(self.sb_ExtractOptions, pos=(0,0), span=(1,4),
flag=wx.EXPAND, border=10)
# Create the options
label_OptionsCreated = wx.StaticText(panel, label="Created:")
label_OptionsInserted = wx.StaticText(panel, label="Inserted:")
label_OptionsModified = wx.StaticText(panel, label="Modified:")
# Add them to the sizer (folderBoxSizer)
folderBoxSizer.Add(label_OptionsCreated, pos=(1, 0), flag=wx.LEFT|
wx.ALIGN_CENTER_VERTICAL|wx.TOP, border=3)
folderBoxSizer.Add(label_OptionsInserted, pos=(2, 0), flag=wx.LEFT|
wx.ALIGN_CENTER_VERTICAL|wx.TOP, border=3)
folderBoxSizer.Add(label_OptionsModified, pos=(3, 0), flag=wx.LEFT|
wx.ALIGN_CENTER_VERTICAL|wx.TOP, border=3)
folderBoxSizer.AddGrowableCol(2)
sizer.Add(folderBoxSizer, pos=(2, 0), span=(1,6),flag=wx.TOP|wx.LEFT|wx.RIGHT|wx.EXPAND|wx.ALIGN_CENTER_VERTICAL, border=10)
sizer.AddGrowableCol(2)
panel.SetSizer(sizer)
提前致谢。:)