Skip to content

Commit 09c8995

Browse files
committed
Docstring and formatting updates.
1 parent 73a17d6 commit 09c8995

File tree

3 files changed

+16
-25
lines changed

3 files changed

+16
-25
lines changed

app_simple_pyqt5.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
"""A simple, sample programmatic gui application, PySide6.
1+
"""Simple demo app for common Qt features.
22
3-
Covers:
4-
- App startup
5-
- Basic layouts and widgets
6-
- Basic popup dialogs
7-
- Signals and slots
3+
This demo shows basic app init and startup, custom widgets, layouts,
4+
commonly used standard widgets, signals and slots, and popup dialogs.
85
"""
96

107

@@ -15,8 +12,8 @@
1512

1613
from PyQt5.QtCore import Qt, pyqtSignal
1714
from PyQt5.QtWidgets import (QApplication, QWidget, QVBoxLayout, QTextEdit, QPushButton,
18-
QHBoxLayout, QSplitter, QLabel, QMessageBox, QFileDialog, QLineEdit, QRadioButton,
19-
QGroupBox, QCheckBox)
15+
QHBoxLayout, QSplitter, QLabel, QMessageBox, QFileDialog, QLineEdit,
16+
QRadioButton, QGroupBox, QCheckBox)
2017

2118

2219
class ChildWidget(QWidget):

app_simple_pyside2.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
"""A simple, sample programmatic gui application, PySide2.
1+
"""Simple demo app for common Qt features.
22
3-
Covers:
4-
- App startup
5-
- Basic layouts and widgets
6-
- Basic popup dialogs
7-
- Signals and slots
3+
This demo shows basic app init and startup, custom widgets, layouts,
4+
commonly used standard widgets, signals and slots, and popup dialogs.
85
"""
96

107

@@ -15,8 +12,8 @@
1512

1613
from PySide2.QtCore import Qt, Signal
1714
from PySide2.QtWidgets import (QApplication, QWidget, QVBoxLayout, QTextEdit, QPushButton,
18-
QHBoxLayout, QSplitter, QLabel, QMessageBox, QFileDialog, QLineEdit, QRadioButton,
19-
QGroupBox, QCheckBox)
15+
QHBoxLayout, QSplitter, QLabel, QMessageBox, QFileDialog, QLineEdit,
16+
QRadioButton, QGroupBox, QCheckBox)
2017

2118

2219
class ChildWidget(QWidget):
@@ -301,7 +298,7 @@ def run_gui():
301298
my_widget = CustomWidget()
302299

303300
# Run the program/start the event loop with exec()
304-
sys.exit(app.exec())
301+
sys.exit(app.exec_())
305302

306303

307304
if __name__ == '__main__':

app_simple_pyside6.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
"""A simple, sample programmatic gui application, PySide6.
1+
"""Simple demo app for common Qt features.
22
3-
Covers:
4-
- App startup
5-
- Basic layouts and widgets
6-
- Basic popup dialogs
7-
- Signals and slots
3+
This demo shows basic app init and startup, custom widgets, layouts,
4+
commonly used standard widgets, signals and slots, and popup dialogs.
85
"""
96

107

@@ -15,8 +12,8 @@
1512

1613
from PySide6.QtCore import Qt, Signal
1714
from PySide6.QtWidgets import (QApplication, QWidget, QVBoxLayout, QTextEdit, QPushButton,
18-
QHBoxLayout, QSplitter, QLabel, QMessageBox, QFileDialog, QLineEdit, QRadioButton,
19-
QGroupBox, QCheckBox)
15+
QHBoxLayout, QSplitter, QLabel, QMessageBox, QFileDialog, QLineEdit,
16+
QRadioButton, QGroupBox, QCheckBox)
2017

2118

2219
class ChildWidget(QWidget):

0 commit comments

Comments
 (0)