From 5ac40638c060c29153fc5efc2f11e5553abb0dd5 Mon Sep 17 00:00:00 2001 From: Ian Date: Thu, 26 Sep 2024 15:25:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DesktopTools/feather_hotkey/win_searchbar.py | 6 ++++-- DesktopTools/windows_main.py | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/DesktopTools/feather_hotkey/win_searchbar.py b/DesktopTools/feather_hotkey/win_searchbar.py index eef21cf..8fa6a7b 100644 --- a/DesktopTools/feather_hotkey/win_searchbar.py +++ b/DesktopTools/feather_hotkey/win_searchbar.py @@ -2,7 +2,7 @@ import shelve from PySide6.QtCore import QModelIndex, Qt -from PySide6.QtGui import QIcon, QKeySequence, QShortcut, QClipboard +from PySide6.QtGui import QClipboard, QIcon, QKeySequence, QShortcut from PySide6.QtWidgets import QAbstractItemView, QCompleter, QListWidgetItem, QWidget from ..logger import logger @@ -51,7 +51,9 @@ class WinSearchBar(QWidget): Record_KV = "记录kv" Read_KV = "读取kv" - def __init__(self, clipboard: QClipboard=None, tray=None, dict_windows={}, *args, **kwargs): + def __init__( + self, clipboard: QClipboard = None, tray=None, dict_windows={}, *args, **kwargs + ): super().__init__(*args, **kwargs) self.ui = Ui_SearchBar() self.ui.setupUi(self) diff --git a/DesktopTools/windows_main.py b/DesktopTools/windows_main.py index 6d5b720..bcf9496 100644 --- a/DesktopTools/windows_main.py +++ b/DesktopTools/windows_main.py @@ -12,8 +12,7 @@ import time from PySide6.QtCore import Qt -from PySide6.QtWidgets import QApplication -from PySide6.QtWidgets import QMessageBox, QWidget +from PySide6.QtWidgets import QApplication, QMessageBox, QWidget from .app.msg_systray import TrayIcon from .feather_hotkey.thread import SignalHotKey @@ -30,7 +29,7 @@ class WinMain(QWidget): 所有的子`QWidget`理论上都可以独立运行 """ - def __init__(self, screen=False, app: QApplication=None): + def __init__(self, screen=False, app: QApplication = None): super().__init__(None) self.screen = screen