From fc05ed7a25ad0f8d130aa148c5f507d8fc7241f3 Mon Sep 17 00:00:00 2001 From: Almar Klein Date: Thu, 7 Nov 2024 10:12:02 +0100 Subject: [PATCH] no actually, this is better --- wgpu/gui/qt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wgpu/gui/qt.py b/wgpu/gui/qt.py index ae226035..acca306a 100644 --- a/wgpu/gui/qt.py +++ b/wgpu/gui/qt.py @@ -184,6 +184,10 @@ def paintEvent(self, event): # noqa: N802 - this is a Qt method # Methods that we add from wgpu (snake_case) + def update(self): + # Overload update() because that's how Qt devs are used to requesting a new draw + self.request_draw() + def _request_draw(self): # Ask Qt to do a paint event QtWidgets.QWidget.update(self)