mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 20:34:16 +02:00
Introduce bearhub view util/qt namespace wrappers
This commit is contained in:
@@ -10,7 +10,7 @@ from PyQt5.QtCore import QCoreApplication, Qt
|
|||||||
from bearhub import __app_name__
|
from bearhub import __app_name__
|
||||||
from bearhub import app_args
|
from bearhub import app_args
|
||||||
from bearhub.view.core.config import CoreConfigManager
|
from bearhub.view.core.config import CoreConfigManager
|
||||||
from bauh.view.util import logs
|
from bearhub.view.util import logs
|
||||||
|
|
||||||
|
|
||||||
def main(tray: bool = False):
|
def main(tray: bool = False):
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ from bauh.view.core import gems
|
|||||||
from bearhub.view.core.config import CoreConfigManager
|
from bearhub.view.core.config import CoreConfigManager
|
||||||
from bauh.view.core.controller import GenericSoftwareManager
|
from bauh.view.core.controller import GenericSoftwareManager
|
||||||
from bauh.view.core.downloader import AdaptableFileDownloader
|
from bauh.view.core.downloader import AdaptableFileDownloader
|
||||||
from bauh.view.util import logs, util, resource
|
from bearhub.view.util import logs, util, resource
|
||||||
from bauh.view.util.cache import DefaultMemoryCacheFactory
|
from bearhub.view.util.cache import DefaultMemoryCacheFactory
|
||||||
from bauh.view.util.disk import DefaultDiskCacheLoaderFactory
|
from bearhub.view.util.disk import DefaultDiskCacheLoaderFactory
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ from PyQt5.QtWidgets import QApplication
|
|||||||
|
|
||||||
from bearhub import __app_name__, __version__
|
from bearhub import __app_name__, __version__
|
||||||
from bearhub.stylesheet import process_theme, read_default_themes, read_user_themes, read_theme_metada
|
from bearhub.stylesheet import process_theme, read_default_themes, read_user_themes, read_theme_metada
|
||||||
from bauh.view.util import util, translation
|
from bearhub.view.util import util, translation
|
||||||
from bauh.view.util.translation import I18n
|
from bearhub.view.util.translation import I18n
|
||||||
|
|
||||||
DEFAULT_I18N_KEY = 'en'
|
DEFAULT_I18N_KEY = 'en'
|
||||||
PROPERTY_HARDCODED_STYLESHEET = 'hcqss'
|
PROPERTY_HARDCODED_STYLESHEET = 'hcqss'
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from PyQt5.QtCore import QObject
|
|||||||
from PyQt5.QtWidgets import QApplication
|
from PyQt5.QtWidgets import QApplication
|
||||||
|
|
||||||
from bearhub.context import new_qt_application
|
from bearhub.context import new_qt_application
|
||||||
from bauh.view.qt.systray import TrayIcon
|
from bearhub.view.qt.systray import TrayIcon
|
||||||
|
|
||||||
|
|
||||||
def new_tray_icon(app_config: dict, logger: Logger) -> Tuple[QApplication, QObject]:
|
def new_tray_icon(app_config: dict, logger: Logger) -> Tuple[QApplication, QObject]:
|
||||||
|
|||||||
2
bearhub/view/qt/__init__.py
Normal file
2
bearhub/view/qt/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from bauh.view.qt import * # noqa: F401,F403
|
||||||
|
|
||||||
2
bearhub/view/qt/systray.py
Normal file
2
bearhub/view/qt/systray.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from bauh.view.qt.systray import * # noqa: F401,F403
|
||||||
|
|
||||||
2
bearhub/view/util/__init__.py
Normal file
2
bearhub/view/util/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from bauh.view.util import * # noqa: F401,F403
|
||||||
|
|
||||||
2
bearhub/view/util/cache.py
Normal file
2
bearhub/view/util/cache.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from bauh.view.util.cache import * # noqa: F401,F403
|
||||||
|
|
||||||
2
bearhub/view/util/disk.py
Normal file
2
bearhub/view/util/disk.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from bauh.view.util.disk import * # noqa: F401,F403
|
||||||
|
|
||||||
2
bearhub/view/util/logs.py
Normal file
2
bearhub/view/util/logs.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from bauh.view.util.logs import * # noqa: F401,F403
|
||||||
|
|
||||||
2
bearhub/view/util/resource.py
Normal file
2
bearhub/view/util/resource.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from bauh.view.util.resource import * # noqa: F401,F403
|
||||||
|
|
||||||
2
bearhub/view/util/translation.py
Normal file
2
bearhub/view/util/translation.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from bauh.view.util.translation import * # noqa: F401,F403
|
||||||
|
|
||||||
2
bearhub/view/util/util.py
Normal file
2
bearhub/view/util/util.py
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
from bauh.view.util.util import * # noqa: F401,F403
|
||||||
|
|
||||||
Reference in New Issue
Block a user