mirror of
https://github.com/ankitects/anki.git
synced 2025-12-30 23:32:57 -05:00
formatting
This commit is contained in:
parent
e98d730441
commit
ed1f56a122
3 changed files with 7 additions and 4 deletions
|
|
@ -1738,7 +1738,6 @@ where id in %s"""
|
||||||
else:
|
else:
|
||||||
av_player.maybe_interrupt()
|
av_player.maybe_interrupt()
|
||||||
|
|
||||||
|
|
||||||
txt = self.mw.prepare_card_text_for_display(txt)
|
txt = self.mw.prepare_card_text_for_display(txt)
|
||||||
txt = gui_hooks.card_will_show(
|
txt = gui_hooks.card_will_show(
|
||||||
txt, c, "preview" + self._previewState.capitalize()
|
txt, c, "preview" + self._previewState.capitalize()
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,12 @@ from aqt.utils import checkInvalidFilename, getSaveFile, showInfo, showWarning,
|
||||||
|
|
||||||
|
|
||||||
class ExportDialog(QDialog):
|
class ExportDialog(QDialog):
|
||||||
def __init__(self, mw: aqt.main.AnkiQt, did: Optional[int] = None, cids: Optional[List[int]] = None):
|
def __init__(
|
||||||
|
self,
|
||||||
|
mw: aqt.main.AnkiQt,
|
||||||
|
did: Optional[int] = None,
|
||||||
|
cids: Optional[List[int]] = None,
|
||||||
|
):
|
||||||
QDialog.__init__(self, mw, Qt.Window)
|
QDialog.__init__(self, mw, Qt.Window)
|
||||||
self.mw = mw
|
self.mw = mw
|
||||||
self.col = mw.col
|
self.col = mw.col
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,7 @@ from typing import Dict
|
||||||
from anki.utils import isMac
|
from anki.utils import isMac
|
||||||
from aqt import QApplication, gui_hooks, isWin
|
from aqt import QApplication, gui_hooks, isWin
|
||||||
from aqt.colors import colors
|
from aqt.colors import colors
|
||||||
from aqt.qt import QColor, QIcon, QPalette, QPixmap, QStyleFactory, Qt, \
|
from aqt.qt import QColor, QIcon, QPalette, QPixmap, QStyleFactory, Qt, qtminor
|
||||||
qtminor
|
|
||||||
|
|
||||||
|
|
||||||
class ThemeManager:
|
class ThemeManager:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue