From f450aabafa78761ddd4888be9175ed41aa8977f5 Mon Sep 17 00:00:00 2001 From: ego-lay_atman-bay <70973578+ego-lay-atman-bay@users.noreply.github.com> Date: Fri, 5 Jul 2024 23:14:44 -0600 Subject: [PATCH] Make sure name is actually edited I think... I have not tested this code (I wrote it on my phone on github). --- src/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.py b/src/main.py index 2617b10..0b66f75 100644 --- a/src/main.py +++ b/src/main.py @@ -1228,6 +1228,11 @@ def updatePosition(value, column): obj.pos = tuple(pos) self.updateObject(obj) + + def updateObjectName(name): + obj.name = name + self.updateObject(obj) + self.updateObjectSelector() sizes : list[int] = [] @@ -1240,6 +1245,7 @@ def updatePosition(value, column): 'text', label_editable = False, show_button = False, + entry_callback = lambda value, col : updateObjectName(value), row=0, ) sizes.append(self.objectProperties['name']['size'])