From 8bc33c790ca451bd08f31b708323e06ad231eb5c Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 6 Feb 2026 19:10:02 +0100 Subject: [PATCH] do not emit EVT_TEXT in set value --- mathentry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mathentry.py b/mathentry.py index ad49f23..5347714 100644 --- a/mathentry.py +++ b/mathentry.py @@ -42,7 +42,7 @@ class MathEntry(wx.TextCtrl): def SetValue(self, val): self.value_type = type(val) val = str(val) - super().SetValue(val) + super().ChangeValue(val) #TODO def on_enter(self, event): @@ -94,7 +94,7 @@ class MathEntry(wx.TextCtrl): def clear(self): - super().SetValue("") + super().ChangeValue("") #TODO