mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 00:12:25 -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()
|
w, h = self.get_width_height()
|
||||||
return QSize(w+30, h+30)
|
return QSize(w+30, h+30)
|
||||||
|
|
||||||
# bug in matplotlib
|
|
||||||
def keyReleaseEvent(self, evt):
|
def keyReleaseEvent(self, evt):
|
||||||
evt.ignore()
|
evt.ignore()
|
||||||
|
|
||||||
def keyPressEvent(self, evt):
|
def keyPressEvent(self, evt):
|
||||||
evt.ignore()
|
evt.ignore()
|
||||||
|
|
||||||
|
def wheelEvent(self, evt):
|
||||||
|
evt.ignore()
|
||||||
|
|
||||||
class AdjustableFigure(QWidget):
|
class AdjustableFigure(QWidget):
|
||||||
|
|
||||||
def __init__(self, parent, name, figureFunc, choices=None):
|
def __init__(self, parent, name, figureFunc, choices=None):
|
||||||
|
|
Loading…
Reference in a new issue