Skip to content

Commit

Permalink
Style: various smaller fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Dec 18, 2023
1 parent 6cdc849 commit 7d46b45
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
5 changes: 1 addition & 4 deletions nitrokeyapp/gui.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# use "pbs" for packaging...
# pip-run -> pyqt5
# pip-dev -> pyqt5-stubs
import functools

import logging
import platform
import webbrowser
Expand Down
2 changes: 1 addition & 1 deletion nitrokeyapp/nk3_button.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PySide6 import QtGui, QtWidgets
from PySide6 import QtWidgets
from qt_material import apply_stylesheet

from nitrokeyapp import get_theme_path
Expand Down
3 changes: 1 addition & 2 deletions nitrokeyapp/qt_utils_mix_in.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
from typing import Optional, Type, TypeVar

from PySide6 import QtGui, QtWidgets
from PySide6.QtCore import QDir, QMetaObject, QObject, QSize
from PySide6.QtWidgets import QWidget
from PySide6.QtCore import QDir, QObject, QSize

from nitrokeyapp.ui_loader import UiLoader

Expand Down
2 changes: 1 addition & 1 deletion nitrokeyapp/secrets_tab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Optional

from PySide6.QtCore import Qt, QThread, QTimer, Signal, Slot
from PySide6.QtGui import QGuiApplication, QIcon
from PySide6.QtGui import QGuiApplication
from PySide6.QtWidgets import QDialog, QListWidgetItem, QWidget

from nitrokeyapp.add_secret_dialog import AddSecretDialog
Expand Down
2 changes: 1 addition & 1 deletion nitrokeyapp/ui_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def createWidget(self, class_name, parent=None, name=""):
try:
widget = self.customWidgets[class_name](parent)

except (TypeError, KeyError) as e:
except (TypeError, KeyError):
raise Exception(
"No custom widget "
+ class_name
Expand Down

0 comments on commit 7d46b45

Please sign in to comment.