diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-03-22 17:43:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-22 17:43:50 +0100 |
| commit | 40405edfe1ab9735e33fd705b090dc467983611f (patch) | |
| tree | 1c475c7ab627a9959327fef8cba69815a5739397 /lib/gui | |
| parent | ee14e4e28aed2abcfefe05980f7f35ace8634a1c (diff) | |
parent.remove -> delete (#3600)
Diffstat (limited to 'lib/gui')
| -rw-r--r-- | lib/gui/satin_multicolor/main_panel.py | 4 | ||||
| -rw-r--r-- | lib/gui/test_swatches.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/gui/satin_multicolor/main_panel.py b/lib/gui/satin_multicolor/main_panel.py index fd053731..f3f118bc 100644 --- a/lib/gui/satin_multicolor/main_panel.py +++ b/lib/gui/satin_multicolor/main_panel.py @@ -91,7 +91,7 @@ class MultiColorSatinPanel(wx.Panel): self.update_satin_elements() if not self.colorize_panel.keep_original.GetValue(): for element in self.elements: - element.node.getparent().remove(element.node) + element.node.delete() self.close() def render_stitch_plan(self): @@ -124,7 +124,7 @@ class MultiColorSatinPanel(wx.Panel): def update_satin_elements(self): # empty old groups for group in self.output_groups: - group.getparent().remove(group) + group.delete() self.output_groups = [] overflow_left = self.colorize_panel.overflow_left.GetValue() diff --git a/lib/gui/test_swatches.py b/lib/gui/test_swatches.py index e5a43149..4909134a 100644 --- a/lib/gui/test_swatches.py +++ b/lib/gui/test_swatches.py @@ -172,7 +172,7 @@ class GenerateSwatchesFrame(wx.Frame): self._set_param(new_element, param, param_value) param_value += step # remove old element - element.getparent().remove(element) + element.delete() def _set_param(self, element, param, value): element.set(f'inkstitch:{ param }', value) |
