From 7ba5644edae06bcb839addaaa8d52149e35e84af Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Fri, 20 Aug 2010 22:00:44 +0200 Subject: [PATCH] Force all buttons to the same size --- gui/shipBrowser.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index 5f4184efe..500c868e2 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -182,10 +182,7 @@ class ShipMenu(wx.Panel): for name, art in (("new", wx.ART_NEW), ("rename", bitmapLoader.getBitmap("rename", "icons")), ("copy", wx.ART_COPY), ("delete", wx.ART_DELETE)): bitmap = wx.ArtProvider.GetBitmap(art, wx.ART_BUTTON) if name != "rename" else art btn = wx.BitmapButton(self, wx.ID_ANY, bitmap) - if size is None: - size = btn.GetSize() - else: - btn.SetSize(size) + btn.SetSize((30, 26)) setattr(self, name, btn) btn.Enable(False)