Skip to content

Commit 5cf7fcd

Browse files
committed
removes unnecessary redraw on moving background events
1 parent ab514bf commit 5cf7fcd

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/artisanlib/canvas.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3457,11 +3457,12 @@ def onrelease_after_pick(self, _event:'Optional[Event]') -> None:
34573457
self.timeB[time_idx],
34583458
event_ydata,
34593459
tempo)
3460-
# redraw
3461-
if self.flagon:
3462-
self.redraw_keep_view(recomputeAllDeltas=False)
3463-
else:
3464-
self.fig.canvas.draw_idle()
3460+
# # redraw
3461+
# if self.flagon:
3462+
# self.redraw_keep_view(recomputeAllDeltas=False)
3463+
# else:
3464+
# self.fig.canvas.draw_idle()
3465+
self.fig.canvas.draw_idle() # seems to be fine even while logging!
34653466
elif self.legend is not None:
34663467
QTimer.singleShot(1,self.updateBackground)
34673468

src/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ prettytable==3.16.0; python_version >= '3.9'
6565
lxml==5.3.1
6666
matplotlib==3.7.3; python_version < '3.9' # last Python 3.8 release
6767
matplotlib==3.10.0; python_version >= '3.9'
68-
jinja2==3.1.5
68+
jinja2==3.1.6
6969
aiohttp==3.10.11; python_version < '3.9' # last Python 3.8 release
7070
aiohttp==3.11.17; python_version >= '3.9'
7171
aiohttp_jinja2==1.6

0 commit comments

Comments
 (0)