From 3f3db6f2b621deb384d30901aac37c2098c281ea Mon Sep 17 00:00:00 2001 From: Per Christian Henden Date: Sun, 4 Feb 2024 12:40:52 +0100 Subject: [PATCH] Fix wx.AssertionError - cannot both align and expand at the same time --- GoSync/DriveUsageBox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GoSync/DriveUsageBox.py b/GoSync/DriveUsageBox.py index ec2676b..a5fedd2 100644 --- a/GoSync/DriveUsageBox.py +++ b/GoSync/DriveUsageBox.py @@ -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) @@ -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):