From 73dc056e612cf861b8397d50b0e73f7dbf1f27d1 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Fri, 21 Oct 2022 07:21:57 +0400 Subject: [PATCH] Fix creating of new implant sets / damage patterns / target profiles on new wx --- gui/patternEditor.py | 2 +- gui/setEditor.py | 2 +- gui/targetProfileEditor.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/patternEditor.py b/gui/patternEditor.py index 36f812f0e..c02fc57d6 100644 --- a/gui/patternEditor.py +++ b/gui/patternEditor.py @@ -42,7 +42,7 @@ class DmgPatternNameValidator(BaseValidator): return DmgPatternNameValidator() def Validate(self, win): - entityEditor = win.parent + entityEditor = win.Parent.parent textCtrl = self.GetWindow() text = textCtrl.GetValue().strip() diff --git a/gui/setEditor.py b/gui/setEditor.py index 9d4fa6ed3..96a6ba26e 100644 --- a/gui/setEditor.py +++ b/gui/setEditor.py @@ -39,7 +39,7 @@ class ImplantTextValidor(BaseValidator): return ImplantTextValidor() def Validate(self, win): - entityEditor = win.parent + entityEditor = win.Parent.parent textCtrl = self.GetWindow() text = textCtrl.GetValue().strip() diff --git a/gui/targetProfileEditor.py b/gui/targetProfileEditor.py index 7430931c0..4838fc837 100644 --- a/gui/targetProfileEditor.py +++ b/gui/targetProfileEditor.py @@ -62,7 +62,7 @@ class TargetProfileNameValidator(BaseValidator): return TargetProfileNameValidator() def Validate(self, win): - entityEditor = win.parent + entityEditor = win.Parent.parent textCtrl = self.GetWindow() text = textCtrl.GetValue().strip()