Open Shadoward opened 2 years ago
@chriskiehl , ok I found a solution for the problem. (not sure is bullet proof yet) https://github.com/chriskiehl/Gooey/blob/329b6954befcb74f0243e1282e77ab7bff8e7abf/gooey/gui/components/config.py#L150
Replacing with hs = wx.BoxSizer(wx.VERTICAL)
.
Ok, not bullet proof, there is a big blank between the Group when using columns': 1
on the parent...try to find how to remove that blank..
I found a solution but the column option is not working on the parent group. Do not know if this is suitable for a pull request....
hs = wx.BoxSizer(wx.VERTICAL)
for e, subgroup in enumerate(group['groups']):
self.makeGroup(parent, hs, subgroup, 1, wx.EXPAND)
if len(group['groups']) != e:
hs.AddSpacer(5)
boxSizer.Add(hs, *args)
hs = wx.BoxSizer(wx.VERTICAL)
# # self.makeGroup(parent, hs, subgroup, 1, wx.ALL | wx.EXPAND, 5)
# itemsPerColumn = getin(group, ['options', 'columns'], 2)
# if e % itemsPerColumn or (e + 1) == len(group['groups']):
# boxSizer.Add(hs, *args)
# hs = wx.BoxSizer(wx.VERTICAL)
Hello,
I am try group create subgroup in a group but the gooey_options={'columns': 1} do not work in the parent one. The subgroups are all align in columns and not in row.
Thanks! ^_^