From 594a98eff17c12029e98a249ab7587f89e412d19 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Tue, 13 Apr 2021 11:38:35 +0200 Subject: [PATCH] Move previewer.py into browser folder --- qt/aqt/browser/__init__.py | 3 +++ qt/aqt/browser/browser.py | 4 ++-- qt/aqt/{ => browser}/previewer.py | 0 3 files changed, 5 insertions(+), 2 deletions(-) rename qt/aqt/{ => browser}/previewer.py (100%) diff --git a/qt/aqt/browser/__init__.py b/qt/aqt/browser/__init__.py index 4ce6d4e92..6d1de886b 100644 --- a/qt/aqt/browser/__init__.py +++ b/qt/aqt/browser/__init__.py @@ -8,6 +8,7 @@ import aqt from .browser import Browser from .dialogs import CardInfoDialog, ChangeModel, FindAndReplaceDialog, FindDupesDialog +from .previewer import BrowserPreviewer, MultiCardPreviewer, Previewer from .sidebar import ( SidebarItem, SidebarItemType, @@ -39,3 +40,5 @@ sys.modules["aqt.find_and_replace"] = sys.modules["aqt.browser.dialogs"] aqt.find_and_replace = sys.modules["aqt.browser.dialogs"] # type: ignore sys.modules["aqt.sidebar"] = sys.modules["aqt.browser.sidebar"] aqt.sidebar = sys.modules["aqt.browser.sidebar"] # type: ignore +sys.modules["aqt.previewer"] = sys.modules["aqt.browser.previewer"] +aqt.previewer = sys.modules["aqt.browser.previewer"] # type: ignore diff --git a/qt/aqt/browser/browser.py b/qt/aqt/browser/browser.py index 71623f12b..e053bf37d 100644 --- a/qt/aqt/browser/browser.py +++ b/qt/aqt/browser/browser.py @@ -24,6 +24,8 @@ from aqt.browser.dialogs import ( FindAndReplaceDialog, FindDupesDialog, ) +from aqt.browser.previewer import BrowserPreviewer as PreviewDialog +from aqt.browser.previewer import Previewer from aqt.browser.sidebar import SidebarTreeView from aqt.browser.table import Table from aqt.editor import Editor @@ -44,8 +46,6 @@ from aqt.operations.tag import ( clear_unused_tags, remove_tags_from_notes, ) -from aqt.previewer import BrowserPreviewer as PreviewDialog -from aqt.previewer import Previewer from aqt.qt import * from aqt.switch import Switch from aqt.utils import ( diff --git a/qt/aqt/previewer.py b/qt/aqt/browser/previewer.py similarity index 100% rename from qt/aqt/previewer.py rename to qt/aqt/browser/previewer.py