diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-02-13 13:08:50 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-02-13 16:54:39 +0100 |
| commit | 4b6390ae3919e5e24e4b48c127c3af41bd827b9c (patch) | |
| tree | 5535b5408aed1f2250c67693c08e866e424cd9d8 /sources/pyside6/doc/tutorials/datavisualize | |
| parent | f9736b9c50f69f2c7089d7dd9dccec8284577323 (diff) | |
PySide6: Fix flake8 warnings in tutorials
Pick-to: 6.8
Change-Id: I90fe3e854af90618cc2e450a473110306d651b4f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Ece Cinucen <ece.cinucen@qt.io>
Diffstat (limited to 'sources/pyside6/doc/tutorials/datavisualize')
3 files changed, 4 insertions, 7 deletions
diff --git a/sources/pyside6/doc/tutorials/datavisualize/datavisualize3/main_window.py b/sources/pyside6/doc/tutorials/datavisualize/datavisualize3/main_window.py index 8ce8f9ace..6ee8fa61b 100644 --- a/sources/pyside6/doc/tutorials/datavisualize/datavisualize3/main_window.py +++ b/sources/pyside6/doc/tutorials/datavisualize/datavisualize3/main_window.py @@ -2,7 +2,6 @@ # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause from __future__ import annotations -from PySide6.QtCore import Slot from PySide6.QtGui import QAction, QKeySequence from PySide6.QtWidgets import QMainWindow diff --git a/sources/pyside6/doc/tutorials/datavisualize/datavisualize5/main_widget.py b/sources/pyside6/doc/tutorials/datavisualize/datavisualize5/main_widget.py index 40954ea34..77ea4e776 100644 --- a/sources/pyside6/doc/tutorials/datavisualize/datavisualize5/main_widget.py +++ b/sources/pyside6/doc/tutorials/datavisualize/datavisualize5/main_widget.py @@ -2,11 +2,10 @@ # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause from __future__ import annotations -from PySide6.QtCore import QDateTime, Qt from PySide6.QtGui import QPainter from PySide6.QtWidgets import (QWidget, QHeaderView, QHBoxLayout, QTableView, QSizePolicy) -from PySide6.QtCharts import QChart, QChartView, QLineSeries, QDateTimeAxis, QValueAxis +from PySide6.QtCharts import QChart, QChartView from table_model import CustomTableModel @@ -41,12 +40,12 @@ class Widget(QWidget): self.main_layout = QHBoxLayout() size = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Preferred) - ## Left layout + # Left layout size.setHorizontalStretch(1) self.table_view.setSizePolicy(size) self.main_layout.addWidget(self.table_view) - ## Right Layout + # Right Layout size.setHorizontalStretch(4) self.chart_view.setSizePolicy(size) self.main_layout.addWidget(self.chart_view) diff --git a/sources/pyside6/doc/tutorials/datavisualize/datavisualize6/main_window.py b/sources/pyside6/doc/tutorials/datavisualize/datavisualize6/main_window.py index 21842cff1..f37268df8 100644 --- a/sources/pyside6/doc/tutorials/datavisualize/datavisualize6/main_window.py +++ b/sources/pyside6/doc/tutorials/datavisualize/datavisualize6/main_window.py @@ -2,8 +2,7 @@ # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause from __future__ import annotations -from PySide6.QtCore import Slot -from PySide6.QtGui import QAction, QKeySequence, QScreen +from PySide6.QtGui import QAction, QKeySequence from PySide6.QtWidgets import QMainWindow |
