Skip to content

Commit

Permalink
no actually, this is better
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Nov 7, 2024
1 parent 3d22fcb commit fc05ed7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wgpu/gui/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc05ed7

Please sign in to comment.