refactor: исправлены ВСЕ замечания pylint (#72)

This commit is contained in:
2023-10-04 14:38:42 +03:00
committed by GitHub
parent d387a79d6d
commit a89d7896e3
17 changed files with 99 additions and 103 deletions

View File

@@ -17,13 +17,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from PySide2.QtCore import Slot, QSize
from PySide2.QtGui import QIcon
from PySide2.QtCore import Slot
from PySide2.QtWidgets import QDialog
from statapp.ui.ui_generate_factor_window import Ui_GenerateFactorWindow
from statapp.models.combobox_model import ComboBoxModel
from statapp.utils import resource_path
from statapp.utils import addIcon
DIRECT_LINK = 0
INDIRECT_LINK = 1
@@ -44,9 +43,7 @@ class GenerateFactorWindow(QDialog):
self.ui.setupUi(self)
self.ui.typeComboBox.setModel(self._typeComboBox)
icon = QIcon()
icon.addFile(resource_path("ui/images/logo.ico"), QSize(), QIcon.Normal, QIcon.Off)
self.setWindowIcon(icon)
addIcon(self)
@Slot()
def on_generatePushButton_clicked(self):