From f259df85cd79f93d0b1754bbe3a7a45b90e58eaf Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 25 Apr 2020 17:27:29 +0300 Subject: [PATCH] Fix editors --- gui/characterEditor.py | 2 +- gui/patternEditor.py | 2 +- gui/setEditor.py | 2 +- gui/targetProfileEditor.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gui/characterEditor.py b/gui/characterEditor.py index 36999ef7d..39f94078d 100644 --- a/gui/characterEditor.py +++ b/gui/characterEditor.py @@ -402,7 +402,7 @@ class SkillTreeView(wx.Panel): setattr(self, "{}Btn".format(name.lower()), btn) btn.Enable(True) btn.SetToolTip("%s skills %s clipboard" % (name, direction)) - bSizerButtons.Add(btn, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_RIGHT | wx.ALL, 5) + bSizerButtons.Add(btn, 0, wx.ALL, 5) btn.Bind(wx.EVT_BUTTON, getattr(self, "{}Skills".format(name.lower()))) pmainSizer.Add(bSizerButtons, 0, wx.EXPAND, 5) diff --git a/gui/patternEditor.py b/gui/patternEditor.py index 7d96b19be..40a7ecc31 100644 --- a/gui/patternEditor.py +++ b/gui/patternEditor.py @@ -181,7 +181,7 @@ class DmgPatternEditor(AuxiliaryFrame): setattr(self, name, btn) btn.Enable(True) btn.SetToolTip("%s patterns %s clipboard" % (name, direction)) - footerSizer.Add(btn, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_RIGHT) + footerSizer.Add(btn, 0) btn.Bind(wx.EVT_BUTTON, getattr(self, "{}Patterns".format(name.lower()))) if not self.entityEditor.checkEntitiesExist(): diff --git a/gui/setEditor.py b/gui/setEditor.py index 3c24b8f78..eef2077e5 100644 --- a/gui/setEditor.py +++ b/gui/setEditor.py @@ -159,7 +159,7 @@ class ImplantSetEditor(AuxiliaryFrame): setattr(self, name, btn) btn.Enable(True) btn.SetToolTip("%s implant sets %s clipboard" % (name, direction)) - footerSizer.Add(btn, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_RIGHT) + footerSizer.Add(btn, 0) mainSizer.Add(footerSizer, 0, wx.ALL | wx.EXPAND, 5) diff --git a/gui/targetProfileEditor.py b/gui/targetProfileEditor.py index ce626019f..a687b0f6f 100644 --- a/gui/targetProfileEditor.py +++ b/gui/targetProfileEditor.py @@ -183,7 +183,7 @@ class TargetProfileEditor(AuxiliaryFrame): ttText, unitText = self.ATTRIBUTES[attr] bmp = wx.StaticBitmap(self, wx.ID_ANY, BitmapLoader.getBitmap("%s_big" % attr, "gui")) bmp.SetToolTip(wx.ToolTip(ttText)) - miscAttrSizer.Add(bmp, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_RIGHT | wx.LEFT, leftPad) + miscAttrSizer.Add(bmp, 0, wx.LEFT, leftPad) # set text edit editBox = FloatBox(parent=self, id=wx.ID_ANY, value=None, pos=wx.DefaultPosition, size=defSize) editBox.SetToolTip(wx.ToolTip(ttText)) @@ -231,7 +231,7 @@ class TargetProfileEditor(AuxiliaryFrame): setattr(self, name, btn) btn.Enable(True) btn.SetToolTip("%s profiles %s clipboard" % (name, direction)) - footerSizer.Add(btn, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.ALIGN_RIGHT) + footerSizer.Add(btn, 0) btn.Bind(wx.EVT_BUTTON, getattr(self, "{}Patterns".format(name.lower()))) if not self.entityEditor.checkEntitiesExist():