Skip to content

Commit 68dba6d

Browse files
committed
ui_util: Code cleanup
1 parent 248f294 commit 68dba6d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/classes/ui_util.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from PyQt5.QtCore import Qt, QDir, QLocale
4040
from PyQt5.QtGui import QIcon, QPalette, QColor
4141
from PyQt5.QtWidgets import (
42-
QApplication, QWidget, QStyleFactory, QTabWidget, QAction)
42+
QApplication, QWidget, QTabWidget, QAction)
4343
from PyQt5 import uic
4444

4545
from classes.app import get_app
@@ -284,13 +284,14 @@ def init_ui(window):
284284

285285
def center(window):
286286
"""Center a window on the main window"""
287-
from classes.app import get_app
288-
289287
frameGm = window.frameGeometry()
290288
centerPoint = get_app().window.frameGeometry().center()
291289
frameGm.moveCenter(centerPoint)
292290
window.move(frameGm.topLeft())
293291

294292

295293
def transfer_children(from_widget, to_widget):
296-
log.info("Transferring children from '{}' to '{}'".format(from_widget.objectName(), to_widget.objectName()))
294+
log.info(
295+
"Transferring children from '%s' to '%s'",
296+
from_widget.objectName(), to_widget.objectName())
297+

0 commit comments

Comments
 (0)