Skip to content

Commit

Permalink
Fix wx.AssertionError - cannot both align and expand at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
perchrh committed Feb 4, 2024
1 parent 9fb5641 commit 3f3db6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GoSync/DriveUsageBox.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def __init__(self, parent, drive_size_bytes, id=wx.ID_ANY):
mainSizer = wx.BoxSizer(wx.VERTICAL)
mainSizer.Add(self.t1, 0, wx.ALL|wx.EXPAND, 5)
#mainSizer.Add(self.basePanel, 0, wx.ALL|wx.FIXED_MINSIZE, 5)
mainSizer.Add(self.basePanel, 0, wx.ALL|wx.EXPAND|wx.ALIGN_CENTER, 10)
mainSizer.Add(self.basePanel, 0, wx.ALL|wx.EXPAND, 10)

legendAudio = wx.Panel(self, size=legendSize, style=legendStyle)
legendAudio.SetBackgroundColour(self.audioPanelColor)
Expand Down Expand Up @@ -125,7 +125,7 @@ def __init__(self, parent, drive_size_bytes, id=wx.ID_ANY):
legendSizer.Add(legendFree, 0, wx.ALL|wx.EXPAND, 5)
legendSizer.Add(legendFreeText, 0, wx.ALL|wx.EXPAND, 5)

mainSizer.Add(legendSizer, 1, wx.ALL|wx.ALIGN_CENTER|wx.EXPAND, 10)
mainSizer.Add(legendSizer, 1, wx.ALL|wx.EXPAND, 10)
self.SetSizerAndFit(mainSizer)

def FileSizeHumanize(self, size):
Expand Down

0 comments on commit 3f3db6f

Please sign in to comment.