Add 'self' to mouse function

This commit is contained in:
sdaqo 2023-05-01 15:03:10 +02:00 committed by jaseg
parent 3036f64b68
commit f6d1269531

2
mpv.py
View file

@ -1448,7 +1448,7 @@ class MPV(object):
"""Mapped mpv discnav command, see man mpv(1)."""
self.command('discnav', command)
def mouse(x, y, button=None, mode='single'):
def mouse(self, x, y, button=None, mode='single'):
"""Mapped mpv mouse command, see man mpv(1)."""
if button is None:
self.command('mouse', x, y, mode)