mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
ignore wheel event in figure graph
This commit is contained in:
parent
85ed9910cd
commit
441e459af5
1 changed files with 3 additions and 1 deletions
|
@ -33,13 +33,15 @@ class AnkiFigureCanvas (FigureCanvas):
|
|||
w, h = self.get_width_height()
|
||||
return QSize(w+30, h+30)
|
||||
|
||||
# bug in matplotlib
|
||||
def keyReleaseEvent(self, evt):
|
||||
evt.ignore()
|
||||
|
||||
def keyPressEvent(self, evt):
|
||||
evt.ignore()
|
||||
|
||||
def wheelEvent(self, evt):
|
||||
evt.ignore()
|
||||
|
||||
class AdjustableFigure(QWidget):
|
||||
|
||||
def __init__(self, parent, name, figureFunc, choices=None):
|
||||
|
|
Loading…
Reference in a new issue