mirror of
https://github.com/arsenetar/dupeguru.git
synced 2026-02-05 04:41:39 +00:00
Apply pyupgrade changes
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Created By: Virgil Dupras
|
||||
# Created On: 2009-10-16
|
||||
# Copyright 2015 Hardcoded Software (http://www.hardcoded.net)
|
||||
|
||||
@@ -38,7 +38,7 @@ class ClearableEdit(QLineEdit):
|
||||
self._clearButton = LineEditButton(self)
|
||||
frame_width = self.style().pixelMetric(QStyle.PM_DefaultFrameWidth)
|
||||
padding_right = self._clearButton.sizeHint().width() + frame_width + 1
|
||||
stylesheet = "QLineEdit {{ padding-right:{0}px; }}".format(padding_right)
|
||||
stylesheet = f"QLineEdit {{ padding-right:{padding_right}px; }}"
|
||||
self.setStyleSheet(stylesheet)
|
||||
self._updateClearButton()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user