aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/layouts/dynamiclayouts.py
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-06-18 13:15:27 +0200
committerCristian Maureira-Fredes <cristian.maureira-fredes@qt.io>2018-06-18 11:52:55 +0000
commit5d88488592f55aa8d81b3256a4e76cfdf1a7f050 (patch)
tree11a197a6fb2b17747edee52bfcd8e2a11e843207 /examples/widgets/layouts/dynamiclayouts.py
parent59694f8bf1c2f81c00d15fffef3060509d2a4b63 (diff)
Remove semicolon from examples
Task-number: PYSIDE-712 Change-Id: Ib91e4fec88bdb7146e54c285c7f4da60deecb6cf Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'examples/widgets/layouts/dynamiclayouts.py')
-rw-r--r--examples/widgets/layouts/dynamiclayouts.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/widgets/layouts/dynamiclayouts.py b/examples/widgets/layouts/dynamiclayouts.py
index fe46c053a..77750ee10 100644
--- a/examples/widgets/layouts/dynamiclayouts.py
+++ b/examples/widgets/layouts/dynamiclayouts.py
@@ -86,27 +86,27 @@ class Dialog(QDialog):
def buttonsOrientationChanged(self, index):
- self.mainLayout.setSizeConstraint(QLayout.SetNoConstraint);
- self.setMinimumSize(0, 0);
+ self.mainLayout.setSizeConstraint(QLayout.SetNoConstraint)
+ self.setMinimumSize(0, 0)
orientation = Qt.Orientation(int(self.buttonsOrientationComboBox.itemData(index)))
if orientation == self.buttonBox.orientation():
return
- self.mainLayout.removeWidget(self.buttonBox);
+ self.mainLayout.removeWidget(self.buttonBox)
spacing = self.mainLayout.spacing()
- oldSizeHint = self.buttonBox.sizeHint() + QSize(spacing, spacing);
+ oldSizeHint = self.buttonBox.sizeHint() + QSize(spacing, spacing)
self.buttonBox.setOrientation(orientation)
newSizeHint = self.buttonBox.sizeHint() + QSize(spacing, spacing)
if orientation == Qt.Horizontal:
- self.mainLayout.addWidget(self.buttonBox, 2, 0);
+ self.mainLayout.addWidget(self.buttonBox, 2, 0)
self.resize(self.size() + QSize(-oldSizeHint.width(), newSizeHint.height()))
else:
- self.mainLayout.addWidget(self.buttonBox, 0, 3, 2, 1);
+ self.mainLayout.addWidget(self.buttonBox, 0, 3, 2, 1)
self.resize(self.size() + QSize(newSizeHint.width(), -oldSizeHint.height()))
self.mainLayout.setSizeConstraint(QLayout.SetDefaultConstraint)